Commit Graph

217 Commits

Author SHA1 Message Date
spx
9d96ec61c1 - Fixed: Multibang [] not assumed when [Measure] is replaced in CConfigParser::ReadString().
- Minor changes of ConvertToXXX(): Get an appropriate buffer size to convert the string. And using [] when deleting arrays.
- Fixed a few memory leaks.
- It's now possible to send the !BANG command when all windows are "On Desktop". (Rainmeter.exe and WebParser)
2009-09-12 11:11:40 +00:00
8ea3c6780a Additional code changes by spx268 to address issues with other image meter types (MeterBar, MeterBitmap, MeterButton, MeterRotator) and dynamic variables.
http://code.google.com/p/rainmeter/issues/detail?id=108
2009-09-07 20:00:50 +00:00
48bee2c6fe 1) Added MattKing's code for supporting the middle mouse button in [Rainmeter] and [MeasureName].
MiddleMouseUpAction | MiddleMouseDownAction

2) Updated the manual entries for the middle mouse functionality

3) Added  spx268's code to fix a problem with BUTTON and dynamic variables addressed in:

http://code.google.com/p/rainmeter/issues/detail?id=108
2009-09-07 16:37:58 +00:00
11528ab3cc New manual entry for MeterStyle functionality 2009-09-05 00:46:14 +00:00
483784d570 Updated the History.htm for the beta release. 2009-09-04 17:49:27 +00:00
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
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
4bf4e51126 Reverted the changes from r209. 2009-09-04 16:37:51 +00:00
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
863c17bd57 Removing LocalFont tag/branch. Reconciled with the trunk version. 2009-09-03 00:37:00 +00:00
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
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
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
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
6d7ad1edbc Removing tag/branch due to merge of code with main trunk. 2009-08-31 17:49:13 +00:00
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
de48407138 Edited wiki page through web user interface. 2009-08-31 00:42:16 +00:00
aa908014af Edited wiki page through web user interface. 2009-08-31 00:41:29 +00:00
21249eb02a Edited wiki page through web user interface. 2009-08-31 00:39:01 +00:00
a4209f3740 2009-08-30 21:55:14 +00:00
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
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
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
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
f5f257a595 Previous beta changed everything to be case sensitive. Fixed. 2009-08-27 15:42:24 +00:00
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
9cf291517a Updated the version number in the build scripts. 2009-08-26 17:50:13 +00:00
9246161739 Skin information and instructions can be added to [Metadata] section. 2009-08-26 17:48:12 +00:00
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
7b22d717a3 The windows stay visible with Aero Peek on Windows 7. 2009-08-23 12:09:17 +00:00
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
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
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
8d6fd32613 Added couple of NULL checks for the iTunesPlugin. 2009-08-14 16:06:42 +00:00
a6c20aad64 Edited wiki page through web user interface. 2009-08-14 15:03:30 +00:00
c258738d1b Fix HELP file of iTunes 2009-08-14 04:41:55 +00:00
d6444b7dff RainThemes wasn't started correctly if the path had spaces. Fixed. 2009-08-12 19:02:51 +00:00
49661dd928 Updated the history for the next beta. 2009-08-12 18:06:07 +00:00
29e1dfba5b Removed duplicated code. 2009-08-12 18:02:24 +00:00
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
1d1290e3fa Added Themes submenu to the Rainmeter's context and tray menus. 2009-08-12 17:11:52 +00:00
c895803238 The IgnoreRemovable now defaults to true (1) which should help with the missing disk errors. 2009-08-12 16:15:54 +00:00
425e0c7b15 Applied the new changes to the correct version of the iTunesPlugin. 2009-08-12 16:14:17 +00:00
cbd88496b9 Addition of an insufficient part in HELP. 2009-08-12 12:49:12 +00:00
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
cf8bb22e3a Fix ToggleiTunes command 2009-08-11 04:44:11 +00:00
7c3c4e1bf1 2009-08-10 19:48:27 +00:00
74cd1be585 Tips, tricks, examples and Various extra knowledge, such a technical information was moved to RainWIKI. 2009-08-10 12:50:38 +00:00
42087d6ed0 a fix for misspelling. 2009-08-10 05:00:20 +00:00
1c9a3b87e7 2009-08-08 21:58:30 +00:00