Commit Graph

1213 Commits

Author SHA1 Message Date
spx
cfd525c2fc Fixed AnchorX/Y issue (caused by ef1cf223)
http://rainmeter.net/forum/viewtopic.php?f=14&t=16798
2013-10-20 20:44:57 +09:00
Birunthan Mohanathas
30fc135abc Manage: Include country in language list 2013-10-13 18:54:55 +03:00
Brian Ferguson
6d705f5c95 String: Strip carriage returns in strings for compatibility between GDI+ and D2D 2013-10-13 16:28:57 +03:00
Birunthan Mohanathas
b539c19b8f Minor tweaks to 176a941 2013-10-13 16:19:51 +03:00
Birunthan Mohanathas
06cc2a3cf0 Language: Update translations 2013-10-06 18:17:14 +03:00
Birunthan Mohanathas
6248f07634 Disable skin menu "Use D2D rendering" item if D2D is globally disabled 2013-10-06 17:12:19 +03:00
Birunthan Mohanathas
ded19a42fa Enable D2D by default 2013-10-06 17:08:11 +03:00
Birunthan Mohanathas
2fb733ef75 Gfx: Remove __D2DParams 2013-10-06 17:07:00 +03:00
Birunthan Mohanathas
6df7d5d509 Add "Use D2D rendering" option to skin context menu 2013-10-06 10:57:24 +03:00
Birunthan Mohanathas
21d9c0698f Gfx: Additional changes to d003db6 2013-09-29 17:57:21 +03:00
jsmorley
2029cea23f Revert "Added #NBSP# built-in variable to support using a Unicode no-break space in strings."
This reverts commit 73069b692f.

Reverted due to some risk of issues when used in Lua when the .lua file is not encoded and the user's local code page does not support the ANSI "no-break space".
2013-09-22 10:26:58 -04:00
jsmorley
73069b692f Added #NBSP# built-in variable to support using a Unicode no-break space in strings. 2013-09-22 07:53:17 -04:00
Birunthan Mohanathas
7558666b13 Script: Add default value support for SKIN:GetVariable 2013-09-19 17:16:26 +03:00
Birunthan Mohanathas
5fd98509cf Script: Fix that default value is not used in Meter:GetOption 2013-09-19 17:07:47 +03:00
Birunthan Mohanathas
08eb662e1f Add #ROOTCONFIG# variable 2013-09-15 15:05:06 +03:00
Birunthan Mohanathas
8b68092cf1 Tweak some log messages to remove redundant info 2013-09-14 12:57:33 +03:00
Brian Ferguson
b0423cd3ff CommandHandler: Fixed typo in eca5dd0 2013-09-12 11:44:49 -06:00
Brian Ferguson
e53b984bde Cosmetics 2013-09-01 00:01:50 -06:00
Brian Ferguson
e62a1aa262 Fixed issue where the width/height of a meter would not update when using the Padding option. 2013-08-31 23:58:12 -06:00
Brian Ferguson
df84ba961c Cosmetics 2013-08-25 22:47:20 -06:00
Brian Ferguson
fb059da295 Added "Clear" button to About dialog (Log tab) 2013-08-25 12:09:54 -06:00
Brian Ferguson
eca5dd0010 Added optional parameters to the "!Manage" bang for the "Skins" tab.
Usage: !Manage Skins Config File (both "Config" and "File" are optional).
Example: !Manage Skins "illustro\Clock" "Clock.ini"

To use the "File" parameter, you must specify a "Config" parameter as well.
2013-08-25 11:28:15 -06:00
Brian Ferguson
dfc804d50e MeasureCalc: Allow for LowBound to equal HighBound. If LowBound is greater then HighBound, set HighBound equal to LowBound (and show error). 2013-08-19 14:41:45 -06:00
Birunthan Mohanathas
b0c4f83424 Minor tweaks 2013-08-17 11:16:01 +03:00
Brian Ferguson
cd140ff0f6 MeasureCalc: Only report "HighBound" error message after initial update 2013-08-16 13:19:22 -06:00
Brian Ferguson
9c2d75ce69 Removed test code from a3a464b 2013-08-16 13:00:53 -06:00
Brian Ferguson
a3a464b9cf Fixed resetting of internal bounds in f414b5f 2013-08-16 12:58:16 -06:00
Brian Ferguson
f414b5feba MeasureCalc: Added "UniqueRandom" option. When "1", random numbers are only used once within the range {LowBound, HighBound}.
Also updated the URNG (Uniform Random Number Generator) engine to the C++11 library <random>.
2013-08-15 18:12:36 -06:00
Birunthan Mohanathas
79b9af3320 Common: Add UnitTest.h 2013-08-11 14:29:07 +03:00
Birunthan Mohanathas
0afbdac9fe Gfx: Add some tests for TextFormatD2D 2013-08-11 14:12:23 +03:00
Birunthan Mohanathas
176a9414f5 Gfx: Make D2D acknowledge trailing whitespace followed by a NBSP/MMSP
This hacky workaround makes D2D behavior consistent with GDI+.
2013-08-11 12:11:59 +03:00
Birunthan Mohanathas
a3efbbac3f Script: Improve 6560518
The Unicode state is not tracked using a stack instead of a raw boolean. This means that a Unicode script that e.g. updates a non-Unicode script measure will now work properly.
2013-08-07 17:48:13 +03:00
Birunthan Mohanathas
20393df751 Script: Change Unicode script support to require UTF-16 LE files rather than UTF-8 2013-08-07 17:09:25 +03:00
Birunthan Mohanathas
d0466c5588 Script: Additional change to f8c3867 for print() 2013-08-06 22:06:21 +03:00
Birunthan Mohanathas
bbb101cbd5 Cosmetics 2013-08-06 22:03:20 +03:00
Birunthan Mohanathas
f8c386793a Script: Fix memory corruption caused by 6560518 2013-08-06 21:58:41 +03:00
Birunthan Mohanathas
6560518037 Script: Add Unicode support
If the script file is UTF-8 encoded, all Lua strings are converted to/from as if they were UTF-8. Otherwise things continue to work as they have until now. Additionally, UTF-8 scripts cannot use deprecated features at all (PROPERTIES, GetStringValue).
2013-08-06 20:43:57 +03:00
Birunthan Mohanathas
d97128e2ab Additional change to 9c3808e 2013-08-04 21:25:43 +03:00
Birunthan Mohanathas
9c3808ea46 Logger: Fixed regression in 7960dfe 2013-08-04 21:24:06 +03:00
Birunthan Mohanathas
3e316ba19a Fix typo in 7960dfe 2013-08-02 15:07:03 +03:00
Birunthan Mohanathas
7960dfe2ab Logger: Tweaks 2013-08-02 15:00:36 +03:00
Birunthan Mohanathas
a1f15d9adc Minor tweaks 2013-08-02 14:46:42 +03:00
Birunthan Mohanathas
923215c0da ConfigParser: Implement ReadBool
This may break backwards compatibility in some cases. For example, the FreeDiskSpace measure treated only `Type=1` as true and `Type={0, 2, 3, ...}` as false. Now `Type=0` is false and everything else is true like with most other boolean options.
2013-07-31 13:36:53 +03:00
Birunthan Mohanathas
20cac72e9b Gfx: Implement GDI+ fallback 2013-07-30 22:57:46 +03:00
Brian Ferguson
2418c3692f Manage Dialog: Added "UseD2D" option in the Settings Tab
If changed, all skins are refreshed
Option is disabled on systems that do not support D2D
2013-07-25 16:44:06 -06:00
Brian Ferguson
05cbcb9aa8 Temporarily added "__UseD2D" to [Rainmeter] section of skin that overrides global "UseD2D" value to help in testing. 2013-07-25 15:03:14 -06:00
Brian Ferguson
b27bf1ee63 Added "AccurateText" option [Rainmeter] section of a skin.
When AccurateText=0 (default) and UseD2D=0, inaccurate GDI+ measuring of text is used
When AccurateText=1 and UseD2D=0, Accurate measuring occurs similar to D2D
When AccurateText=0 and UseD2D=1, D2D adds padding to the text similar to GDI+
When AccurateText=1 and UseD2D=1, Accurate measuring occurs using D2D
2013-07-25 14:53:02 -06:00
Brian Ferguson
e3c8ae2dfa Fixed issues with Padding 2013-07-21 09:49:16 -06:00
spx
5f1d1c5888 Fixed hittest of Button meter due to lack of compatibility with new "Padding" option 2013-07-21 19:46:13 +09:00
Brian Ferguson
369f8c7082 Meter.cpp: Typo in commented section 2013-07-20 10:11:34 -06:00
Brian Ferguson
d67db33ecf Added "Padding" option to meters.
Usage: Padding = left, top, right, bottom
2013-07-20 10:07:51 -06:00
spx
8f2f65c1fc !SetWallpaper: Additional fix to 3104a53
http://rainmeter.net/forum/viewtopic.php?f=14&t=16074

If it still causes crash, it might need to create a clone image first before saving as a bitmap.
2013-07-17 06:17:34 +09:00
spx
ed9ea73e6b Changed Button meter behavior. Now ignores transparent area of the button when mouseover. 2013-07-16 12:26:31 +09:00
Brian Ferguson
8bf1f6aec8 Add "Paused=0/1" to measures. This is an addition to a883e9d. 2013-07-15 11:59:58 -06:00
Birunthan Mohanathas
239e61fd14 Additional changes to dca5795 2013-07-13 13:49:53 +03:00
Birunthan Mohanathas
ff24a06827 Revert ConfigParser change in f9ab4ee 2013-07-12 23:14:48 +03:00
Birunthan Mohanathas
dca5795929 Plugin API: Add RmReplaceVariables function 2013-07-12 23:01:02 +03:00
Birunthan Mohanathas
19551cbb6c Tweaks and cosmetics 2013-07-12 10:34:40 +03:00
Birunthan Mohanathas
92b1e7af8d Tweaks 2013-07-12 10:11:39 +03:00
Brian Ferguson
f66f858180 MeterWindow: Fixed previous typo in commented section 2013-07-11 14:30:17 -06:00
Brian Ferguson
a883e9d47d Add !PauseMeasure, !UnpauseMeasure, and !TogglePauseMeasure bangs. This is similar to a disabled measure, only it retains its value instead of changing to 0.
Also, group bangs !PauseMeasureGroup, !UnpauseMeasureGroup, and !TogglePauseMeasureGroup bangs have been added.
2013-07-11 14:29:23 -06:00
Brian Ferguson
f9ab4ee414 Added DynamicVariables support for WebParser 2013-07-10 17:01:15 -06:00
spx
3104a53107 Fixed !SetWallpaper issue
http://rainmeter.net/forum/viewtopic.php?f=14&t=16018
2013-07-10 23:00:27 +09:00
spx
ca787306b5 Additional fix to 7849b2a
http://rainmeter.net/forum/viewtopic.php?f=14&t=16014
2013-07-09 21:59:37 +09:00
Brian Ferguson
05964e9f7f CommandHandler: Cosmetics 2013-06-29 11:03:24 -06:00
Brian Ferguson
eb74f359ba CommandHandler: Fixed error in log message 2013-06-29 11:00:27 -06:00
Brian Ferguson
eeef84dfa0 Added skin/section (if available) to logging. 2013-06-29 10:59:18 -06:00
Birunthan Mohanathas
6d87614d4c Fix drawing skin with zero width/height (regression in ef1cf22) 2013-06-23 14:21:04 +03:00
Birunthan Mohanathas
13ebeccfd7 Script: Fix that some meter related operations (e.g. !HideMeterGroup) did not work in Initialize() 2013-06-23 14:03:44 +03:00
spx
f15a8fa72e Fixed mistake in previous commits 2013-06-17 21:05:31 +09:00
spx
bda6e3aa47 Additional fix to 4a625d0 2013-06-17 20:57:50 +09:00
spx
4a625d0c2f Fixed issue that ImageName is ignored if MeasureName is set
http://rainmeter.net/forum/viewtopic.php?p=88820

Reverted this part: 136689bcfb (L4L167)
2013-06-17 20:24:33 +09:00
Birunthan Mohanathas
7c76cf8b2d Additional tweaks to a4c7e83 2013-06-16 20:02:28 +03:00
Birunthan Mohanathas
a4c7e83391 Move context menu related code into ContextMenu.cpp 2013-06-16 19:54:22 +03:00
Birunthan Mohanathas
a4b36423b9 Fix double call of DestroyMenu 2013-06-16 19:52:25 +03:00
Birunthan Mohanathas
5c91ab365d Refactor skin scanning and skin folder indexing into SkinRegistry.cpp
This also adds tests.
2013-06-16 19:36:09 +03:00
Birunthan Mohanathas
531eee06da Remove DisableThreadLibraryCalls.h
By default, VC++ links in a stub entry point, which already calls DisableThreadLibraryCalls(). See: %VS110COMNTOOLS%..\..\VC\crt\src\dllmain.c
2013-06-14 17:23:14 +03:00
Birunthan Mohanathas
096023ba6e Cosmetics 2013-06-14 16:58:53 +03:00
Birunthan Mohanathas
9a62ebef95 Fix crash caused by 04090b2 2013-06-14 16:58:42 +03:00
Birunthan Mohanathas
8a086ffdcb Make unit tests available in Release builds 2013-06-13 21:13:57 +03:00
Birunthan Mohanathas
c5e2a7a2cb Actually fix running debug projects that use unit testing 2013-06-13 20:52:15 +03:00
Birunthan Mohanathas
d63bb00f94 Revert "Fix running debug projects that use unit testing"
This reverts commit ced3dd2.
2013-06-13 20:23:42 +03:00
Birunthan Mohanathas
ced3dd20ca Fix running debug projects that use unit testing 2013-06-13 20:17:24 +03:00
Birunthan Mohanathas
384298a43e Add some tests for ConfigParser 2013-06-13 17:32:35 +03:00
Birunthan Mohanathas
bcbfc4d4db Logger: Cosmetics 2013-06-13 17:22:42 +03:00
Birunthan Mohanathas
04090b232a Make Rainmeter a singleton class
This change is part of making the Libray project more testable. The old g_Rainmeter global pointer has been replaced with a GetRainmeter() function to guarantee that the object exists in some state.
2013-06-13 17:20:27 +03:00
Birunthan Mohanathas
be3efa7531 Move MathParser to Common 2013-06-13 17:00:24 +03:00
Birunthan Mohanathas
cd4bf6d17a Create Common.vcxproj to use files under Common as a static library 2013-06-12 21:54:23 +03:00
Birunthan Mohanathas
d079d13da6 Move path related functions into PathUtil 2013-06-12 21:15:16 +03:00
Birunthan Mohanathas
68430b54db Revert "Script: Extend Measure:GetStringValue to support a parameter table"
This reverts commit b0d101e.
2013-06-10 18:19:33 +03:00
Birunthan Mohanathas
b0d101ed71 Script: Extend Measure:GetStringValue to support a parameter table
Example usage: GetStringValue({AutoScale = 0, Scale = 1.0, NumOfDecimals = 0, Percentual = false})
All keys are optional.
2013-06-09 23:15:43 +03:00
Birunthan Mohanathas
72bf8dc317 String: Fix issue with Angle= since 59b3dea 2013-06-09 19:05:46 +03:00
Birunthan Mohanathas
5b60d6c400 Enable /MP for large projects to reduce Release build time 2013-06-08 13:23:44 +03:00
Brian Ferguson
f1cb311723 ImagePath: Fixed that the image was not reloaded when changing with !SetOption 2013-06-07 23:45:28 -06:00
Brian Ferguson
136689bcfb Added ImagePath to all meters with general image options. This deprecates the Path option for Image meters.
Also fixes bug in MeterHistogram that crashes Rainmeter when the PrimaryImage is invalid.
Note: For Histogram the option is called PrimaryImagePath, SecondaryImagePath, and BothImagePath
2013-06-07 13:35:36 -06:00
spx
c6ec9093b7 Fixed that !Toggle causes infinite loop 2013-06-05 01:05:02 +09:00
spx
f1a77bb482 Fixed that some group bangs can't be executed 2013-06-04 06:04:23 +09:00
spx
7849b2a6e1 Fixed crash when group bang is executed on exiting Rainmeter 2013-06-04 05:58:30 +09:00
Birunthan Mohanathas
bdb5605d24 Move RawString.h into Common 2013-05-31 17:34:36 +03:00
Birunthan Mohanathas
1934c5db72 Change NULL to nullptr 2013-05-31 17:28:39 +03:00