Commit Graph

2312 Commits

Author SHA1 Message Date
Kimmo Pekkola
8eccc8ddec Got rid of the "Not a meter or measure" error.
The handling of the MeterStyle is now done in the CConfigParser.
2009-09-04 17:40:02 +00:00
Kimmo Pekkola
4274397806 The m_FontCollection wasn't initialized so it could cause a crash on exit.
Some code cleanup.
2009-09-04 17:18:15 +00:00
Kimmo Pekkola
4bf4e51126 Reverted the changes from r209. 2009-09-04 16:37:51 +00:00
jsmorley
8239919333 Added MeterStyle functionality:
Rainy, given the "issues" listed at the bottom of this comment, I leave it to you whether to create a build using this revision or use r208 for the build.  I would like to start testing MeterStyle, but there are a few more things it needs work on.

What is MeterStyle?

MeterStyle
This will allow users to create CSS-like "Styles" for meters. This means that all the parameters of a meter can be defined in the style, and then many meters can use the style to eliminate copy / pasting the same parameters over and over on multiple meters. (Examples: FontColor=, FontSize= etc.)

How do I use it?

You will create a new [Section] (as many as you want) in the .ini. The section(s) can have any name.

[MyStringStyle]

Then you will tell Rainmeter that this is a "MeterStyle" and not a measure or meter

Style=Meter

Note: The "value" of the key "Style" can be anything. It can be used to add a description of the style if you like. Style=This style is for the AccuWeather part of this skin
It is however required, both to tell Rainmeter it is not a meter or measure and to have the MeterStyle routines parse it.

Then you define parameters you want to use in the style

FontColor=#FontColor#
FontFace=TheSansBold-Caps
FontSize=11
StringEffect=SHADOW
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1

Then in any or all meters, you just use

[MeterName]
Meter=STRING (or any other meter type)
MeterStyle=MyStringStyle

None of the parameters in the style are then required to be actually in the meter(s). They are "inherited" from the MeterStyle.

Note: This works and has had preliminary testing with dynamic variables like FontColor=[MeasureName] and regular variables like FontColor=#FontColor#. It doesn't matter if the [Variables] section or the [MeasureName] measure is before or after the [StyleName] in the .ini file.

What if I want to override a MeterStyle parameter on a meter?

Sure. Just put in any parameter with a value different from the one defined in the MeterStyle and the one in the meter will take presidence. All non-defined parameters will still use the MeterStyle value.

[MeterName]
Meter=STRING
MeterStyle=MyStringStyle
FontColor=100,100,100,50

What are these "known issues" you are on about?

This is still a bit of a work in progress. Right now you cannot define X or Y in a style. You can define W and H, but NOT for a STRING meter. You cannot define a "Transformation Matrix" in a style. MattKing will be looking into these tomorrow. W and H in a string meter is our top priority. We will also look at X and Y and hope for an easy solution. Transformation Matrix may have to come later.
2009-09-04 14:48:28 +00:00
jsmorley
863c17bd57 Removing LocalFont tag/branch. Reconciled with the trunk version. 2009-09-03 00:37:00 +00:00
jsmorley
dc365cfb6e Reconciled all changes by Rainy and the branch with MattKing's LocalFont function. The trunk now contains all current code changes.
Added changes to RANDOM function based on Rainy's input.  If there were multiple RANDOM statements in multiple CALC measure, they would all get the same random number.  Fixed.

Added new RANDOM function and LocalFont to the help files and History.htm
2009-09-03 00:33:46 +00:00
Kimmo Pekkola
9b949a12e0 Fixed: Rainmeter drops commands in !Execute series that are too long. (http://code.google.com/p/rainmeter/issues/detail?id=103) 2009-09-02 18:05:07 +00:00
Kimmo Pekkola
9fcd6896de Added NULL checks for the CConfigParser::ReadString()'s parameters (http://code.google.com/p/rainmeter/issues/detail?id=105).
The font and registry handle are now free'ed properly if Initialize() is called multiple times.
2009-09-02 17:04:47 +00:00
jsmorley
81f674117d Creating a branch/tag for MattKing's work on the "Font Repository" feature. Need a day or two of testing to be sure there are no issues and then we can look at merging it with the trunk/head version.
Based on r203
2009-09-01 17:23:14 +00:00
jsmorley
6d7ad1edbc Removing tag/branch due to merge of code with main trunk. 2009-08-31 17:49:13 +00:00
jsmorley
c4f95ca973 Committed MattKing's code to generate a random number in a CALC measure.
RANDOM Function:
Returns a random number between "LowBound" and "HighBound" defined in the measure.

Sample usage:
							[MeasureCalc]
Measure=Calc
Formula=(Random)
LowBound=5
HighBound=100
2009-08-31 17:47:09 +00:00
evmckay
de48407138 Edited wiki page through web user interface. 2009-08-31 00:42:16 +00:00
evmckay
aa908014af Edited wiki page through web user interface. 2009-08-31 00:41:29 +00:00
evmckay
21249eb02a Edited wiki page through web user interface. 2009-08-31 00:39:01 +00:00
jsmorley
a4209f3740 2009-08-30 21:55:14 +00:00
jsmorley
7a32578f27 Posting a branch with MattKing's changes to MeasureCalc.cpp and MeasureCalc.h to support generating random numbers in a calc measure. 2009-08-30 21:52:22 +00:00
kenz0
5a4304f020 aspect ratio of the image is preserved when the image is scaled.
(Thanks to px268 for the code)
2009-08-28 07:42:28 +00:00
Kimmo Pekkola
c6fdbf7b60 Dynamic variables can be used to change the font in the string Meter.cpp.
Removed the error message if the meter's dimensions are 0.
2009-08-27 17:05:10 +00:00
Kimmo Pekkola
c09ff5cf61 Using variables in other variables should work again.
Increased the number of decimals used in dynamic measures from 1 to 5.
2009-08-27 16:04:06 +00:00
Kimmo Pekkola
f5f257a595 Previous beta changed everything to be case sensitive. Fixed. 2009-08-27 15:42:24 +00:00
Kimmo Pekkola
ffdec7be65 Some of the plugins don't work with the dynamic variables so the feature is now disabled for them. 2009-08-26 19:29:49 +00:00
Kimmo Pekkola
9cf291517a Updated the version number in the build scripts. 2009-08-26 17:50:13 +00:00
Kimmo Pekkola
9246161739 Skin information and instructions can be added to [Metadata] section. 2009-08-26 17:48:12 +00:00
Kimmo Pekkola
dc3c767efa It's now possible to use the measures as if they were variables (use [MeasureName] instead #VariableName#). Set DynamicVariables=1 for all meters and measures which refer to other measures.
New bang !RainmeterSetVariable can be used to change the value of a variable (DynamicVariables must be 1 in places where the variable is used).
2009-08-26 17:37:15 +00:00
Kimmo Pekkola
7b22d717a3 The windows stay visible with Aero Peek on Windows 7. 2009-08-23 12:09:17 +00:00
Kimmo Pekkola
d98c79e0fc WebParser reads the resource now only if it has been modified. This can be overridden with ForceReload=1. 2009-08-19 18:07:56 +00:00
Kimmo Pekkola
40f11d3934 !RainmeterRefresh and !RainmeterQuit are now handled only during the event loop since they can crash the application if executed during Update(). 2009-08-19 17:57:09 +00:00
jsmorley
77415cfc0f Changed RainThemes to automatically create a theme called "AutoSave" which will contain your current setup. This is to protect folks who have an existing 0.14 setup, Install 1.0+, load the Enigma theme to "check it out" but don't think to save their current setup first. This provides a recovery method if you load a theme without saving first.
Files impacted:
RainThemes.au3
Loading.htm
2009-08-16 18:25:26 +00:00
Kimmo Pekkola
8d6fd32613 Added couple of NULL checks for the iTunesPlugin. 2009-08-14 16:06:42 +00:00
Kimmo Pekkola
a6c20aad64 Edited wiki page through web user interface. 2009-08-14 15:03:30 +00:00
kenz0
c258738d1b Fix HELP file of iTunes 2009-08-14 04:41:55 +00:00
Kimmo Pekkola
d6444b7dff RainThemes wasn't started correctly if the path had spaces. Fixed. 2009-08-12 19:02:51 +00:00
Kimmo Pekkola
49661dd928 Updated the history for the next beta. 2009-08-12 18:06:07 +00:00
Kimmo Pekkola
29e1dfba5b Removed duplicated code. 2009-08-12 18:02:24 +00:00
Kimmo Pekkola
122fb8f90f Variables can be used under the [Variables] section (as long as they have been defined before the current variable is read). 2009-08-12 17:26:34 +00:00
Kimmo Pekkola
1d1290e3fa Added Themes submenu to the Rainmeter's context and tray menus. 2009-08-12 17:11:52 +00:00
Kimmo Pekkola
c895803238 The IgnoreRemovable now defaults to true (1) which should help with the missing disk errors. 2009-08-12 16:15:54 +00:00
Kimmo Pekkola
425e0c7b15 Applied the new changes to the correct version of the iTunesPlugin. 2009-08-12 16:14:17 +00:00
kenz0
cbd88496b9 Addition of an insufficient part in HELP. 2009-08-12 12:49:12 +00:00
jsmorley
9aaa7ecbf2 Made a change to the way APPDATA was resolved due to a bug with the built in @AppDataDir macro in AutoIt on some systems.
Now using a function to get the DOS environment variable "APPDATA" instead of the AutoIt macro.

************
From:
************

If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then 
	$DataFolder = "..\..\"
ElseIf FileFindFirstFile(@AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then
	$DataFolder = @AppDataDir & "\Rainmeter\"
Else
	MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini")
	Exit
EndIf

**************
To:
**************

$AppDataDir = EnvGet("APPDATA")

If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then 
	$DataFolder = "..\..\"
ElseIf FileFindFirstFile($AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then
	$DataFolder = $AppDataDir & "\Rainmeter\"
Else
	MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini")
	Exit
EndIf
2009-08-11 19:00:49 +00:00
kenz0
cf8bb22e3a Fix ToggleiTunes command 2009-08-11 04:44:11 +00:00
jsmorley
7c3c4e1bf1 2009-08-10 19:48:27 +00:00
kenz0
74cd1be585 Tips, tricks, examples and Various extra knowledge, such a technical information was moved to RainWIKI. 2009-08-10 12:50:38 +00:00
kenz0
42087d6ed0 a fix for misspelling. 2009-08-10 05:00:20 +00:00
jsmorley
1c9a3b87e7 2009-08-08 21:58:30 +00:00
jsmorley
8d441e92a7 2009-08-08 12:54:51 +00:00
kenz0
eb2c2ac4cd Since most of these issues was solved by v1.0, this article already became needless. 2009-08-08 11:54:42 +00:00
Kimmo Pekkola
56cb50d95f version update 2009-08-07 08:28:24 +00:00
Kimmo Pekkola
5d058c0d20 Version update 2009-08-07 08:28:02 +00:00
Kimmo Pekkola
10fa32c465 Updated the release date in the history list. 2009-08-07 08:10:16 +00:00