Commit Graph

45 Commits

Author SHA1 Message Date
Birunthan Mohanathas
da9384cfad Remove "C" prefix in class names 2013-05-31 17:18:52 +03:00
Birunthan Mohanathas
8c184a3dbb Simplify aa3c7eb 2013-04-10 19:04:28 +03:00
Birunthan Mohanathas
aa3c7eb8ce Tweaks to reduce OnChangeAction overhead 2013-04-10 19:00:22 +03:00
spx
533d53e446 Code cleanup 2013-02-26 03:57:37 +09:00
Birunthan Mohanathas
f81b4ff8bb Added __declspec(novtable) to interface classes 2013-02-19 16:53:00 +02:00
spx
8ce97640dd OnChangeAction: Tweaks 2013-01-29 16:02:16 +09:00
spx
4e27d71d97 Additional changes to c3982da 2013-01-15 04:30:10 +09:00
spx
c3982da712 Code cleanup 2013-01-15 01:37:13 +09:00
Brian Ferguson
69762e1b05 Revised previous commit 2013-01-11 00:23:21 -07:00
Brian Ferguson
61f088e59c Fixed issue with 8330415 2013-01-10 23:48:31 -07:00
Brian Ferguson
90b80a2ca9 Added OnChangeAction to measures 2013-01-10 23:03:07 -07:00
Brian Ferguson
9800692f19 Added OnUpdateAction to measures, meters and the [Rainmeter] section. 2013-01-10 15:50:38 -07:00
spx
940b4ff55e Measure: Tweaked Max/Min value logging. 2012-10-03 02:36:11 -07:00
spx
4cecb4957e IfEqualAction: Now compares the values as 64bit integer.
http://rainmeter.net/forum/viewtopic.php?p=76312#p76312
2012-09-06 00:39:01 -07:00
spx
489f2c5a30 Code cleanup & cosmetics: Moved Measure/Meter shared part to Section.h 2012-08-09 06:50:58 -07:00
Birunthan Mohanathas
ea124f5ccd Changed MeasureName(N) to work dynamically 2012-07-18 17:55:32 +03:00
Birunthan Mohanathas
1fece1e4d8 Additional change to f2a494b 2012-06-03 12:56:33 +03:00
Birunthan Mohanathas
f2a494b675 Fixed that IfAction state is not reset after disabling since 4a8bc1b 2012-06-03 12:53:01 +03:00
Birunthan Mohanathas
e3d92d354c Cosmetics 2012-05-30 21:53:44 +03:00
Birunthan Mohanathas
9623766a61 Fixed: IfActions not fired when measure is disabled 2012-05-30 09:46:11 +03:00
Birunthan Mohanathas
43f726271d Fixed typo 2012-04-10 18:33:55 +03:00
Birunthan Mohanathas
7168634bb6 Disabled RTTI and removed dynamic_cast 2012-04-09 19:45:54 +03:00
Birunthan Mohanathas
b21658b1cd - Partially refactored bang handling code
- Renamed CMeasure::ExecuteBang to CMeasure::Command
- Minor cosmetic changes and tweaks
2012-02-01 15:55:29 +00:00
Birunthan Mohanathas
430e287bec Minor tweaks. 2012-01-23 15:43:31 +00:00
Birunthan Mohanathas
e99403ce1e Tweaks. 2012-01-23 09:35:32 +00:00
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
Birunthan Mohanathas
13b3241307 Minor tweaks and cleanup. 2011-12-09 08:40:19 +00:00
spx
2835739b12 Code tweaks and cleanup. 2011-12-09 03:28:19 +00:00
spx
3c1338b4c5 - Renamed bool ReadFormula() to ParseFormula.
- Changed ReadConfig() in Measure/Meter to protected.
- Other code tweaks and cleanups.
2011-11-26 02:49:52 +00:00
spx
efc8275ed1 Minor tweaks. 2011-11-18 22:40:58 +00:00
Birunthan Mohanathas
f8f31a527e Switched from _snwprintf_s to _itow_s where possible. 2011-11-09 08:52:32 +00:00
JamesAC
d7dedcfc75 Adding support for RegExp in Substitute strings when RegExpSubstitute=1 is set. 2011-07-29 11:49:46 +00:00
Birunthan Mohanathas
822c10060a - Added !SetOption/!SetOptionGroup bangs.
- Script: Added GetOption() function
2011-07-27 10:42:35 +00:00
spx
341e9d2bd0 Removed trailing zeros when DynamicVariables=1 even if a value is such as "1.01000".
E.g.
 1.00000 -> 1
 1.01000 -> 1.01
 1.01001 -> 1.01001
2011-07-02 10:16:38 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
b0af82a25d Cleaned up header dependencies to avoid unnecessary compiling. 2011-02-07 08:02:12 +00:00
spx
235841e01f Added AutoScale=2 and "k" postfix to Meter=STRING.
----
For instance:
A=2800000000, B=0

- AutoScale=0
AutoScale is disabled. Uses Scale value. (Same as before.)
A="2800000000", B="0"

- AutoScale=1
Scales value by 1024. (Same as before.)
A="2.6 G", B="0.0 "

- AutoScale=2
Scales value by 1000.
A="2.8 G", B="0.0 "

- AutoScale=1k
Scales value by 1024, and uses kilo as the lowest unit.
A="2.6 G", B="0.0 k"

- AutoScale=2k
Scales value by 1000, and uses kilo as the lowest unit.
A="2.8 G", B="0.0 k"
----
2011-01-19 15:31:45 +00:00
spx
2fafb5dcdc - Added !RainmeterUpdate/!RainmeterUpdateMeter(Group)/!RainmeterUpdateMeasure(Group).
- Changed Update= and UpdateDivider= behaviors. If you specify < 0 to them, measures/meters are not updated automatically.
2010-12-28 13:31:17 +00:00
spx
d1a7b604df Core dll:
- Replace swprintf/wsprintf/wcscpy/wcscat to _snwprintf_s/wcsncpy_s/wcsncat_s.
- Changed printf format parameter strictly for supporting both 32bit and 64bit.
- Fixed an issue that !RainmeterWriteKeyValue doesn't accept %APPDATA%\Rainmeter path.
- Code cleanup.
2010-12-16 20:35:44 +00:00
spx
2186b2eb2a Fixed an issue that ReadConfig() is called unnecessarily when DynamicVariables=1 and UpdateDivider=* are set. 2010-11-25 23:57:10 +00:00
spx
f61a35a64d - Added "Group" option to Measure/Meter to operate Measures/Meters in bulk.
Usage:
    Group=group1 | group2 | group3
    * Concatenate group with the "|" if you'd like to assign multiple groups.

- Added !Bangs for Group. (!RainmeterShowMeterGroup, !RainmeterHideMeterGroup, !RainmeterToggleMeterGroup, !RainmeterEnableMeasureGroup, !RainmeterDisableMeasureGroup, !RainmeterToggleMeasureGroup)
Usage:
    !RainmeterShowMeterGroup [group] (Config)
    !RainmeterHideMeterGroup [group] (Config)
    !RainmeterToggleMeterGroup [group] (Config)
    !RainmeterEnableMeasureGroup [group] (Config)
    !RainmeterDisableMeasureGroup [group] (Config)
    !RainmeterToggleMeasureGroup [group] (Config)

- Modified logging feature. Added new "Logging" menu to the context menu.

- Added the manifest to Rainmeter.exe to apply visual style to button etc.
2010-07-07 23:46:44 +00:00
spx
f2682eaee0 Changed the behavior of DynamicVariables. The fixed value definition of the following settings is handled as the starting value. If the value definition of these settings contains variables or measures, related !bangs are ignored.
[Measure]
Disabled

[Meter]
Hidden
X
Y

In case of "Hidden":
- Hidden not added or Hidden=0/1 (=fixed value specified) and DynamicVariables=1
The specified value is handled as the starting value. After that the value is not re-read on every update. !RainmeterShowMeter etc. are enabled.

- Hidden=#VAR# or Hidden=[Measure] and DynamicVariables=1
The value is re-read on every update. !RainmeterShowMeter etc. are disabled by re-reading value.
2010-06-01 14:55:52 +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
5d2f960552 Code cleanup. 2009-02-14 10:11:28 +00:00
Kimmo Pekkola
30edc895f2 2009-02-10 18:37:48 +00:00