Commit Graph

60 Commits

Author SHA1 Message Date
8541cce5f4 A bit of work on app's UI and integration between .net and native. 2014-07-23 13:47:09 +03:00
Birunthan Mohanathas
4ad05ffdea MeasurePlugin: Log error code when loading plugin fails 2014-06-01 15:10:41 +03:00
Brian Ferguson
eeef84dfa0 Added skin/section (if available) to logging. 2013-06-29 10:59:18 -06: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
1934c5db72 Change NULL to nullptr 2013-05-31 17:28:39 +03:00
Birunthan Mohanathas
da9384cfad Remove "C" prefix in class names 2013-05-31 17:18:52 +03:00
Birunthan Mohanathas
a3d8f73f6c Tweak f4429ad 2013-05-30 17:19:42 +03:00
Birunthan Mohanathas
f4429ad8cc Refactor logging logic into new CLogger class 2013-05-29 22:05:41 +03:00
Birunthan Mohanathas
aa3c7eb8ce Tweaks to reduce OnChangeAction overhead 2013-04-10 19:00:22 +03:00
spx
940b4ff55e Measure: Tweaked Max/Min value logging. 2012-10-03 02:36:11 -07:00
spx
6c5cd602bc Minor fixes 2012-06-21 02:06:17 -07:00
Birunthan Mohanathas
1e66d1a3c2 Cosmetics 2012-06-17 18:36:59 +03:00
Birunthan Mohanathas
87817bc050 Moved addons and non-default plugins to #SETTINGSPATH# 2012-06-09 18:38:45 +03:00
Birunthan Mohanathas
74ffb0a9d1 Plugin: Fixed error when using forward slash in Plugin= 2012-06-04 17:41:06 +03:00
Birunthan Mohanathas
922dd098c9 Cosmetics: Changed "config" to more consistent and descriptive terms 2012-06-01 16:06:36 +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
cfd50acd3c Disallowed plugins in ProgramPath\ (instead of ProgramPath\Plugins\) 2012-05-30 08:37:03 +03:00
Birunthan Mohanathas
cb0fd823e7 Added support for @Resources 2012-05-20 17:51:15 +03:00
Birunthan Mohanathas
38ca3fc08c Additional change to 56679f0 2012-04-07 19:38:13 +03:00
spx
0bcd078525 Minor fix for 56679f0 2012-04-07 08:10:41 -07:00
Birunthan Mohanathas
56679f0922 PerfMon.dll: Fixed issues with MaxValue 2012-04-07 14:25:38 +03:00
Birunthan Mohanathas
ea67809d9b Replaced throw with Log where possible 2012-04-06 19:54:20 +03:00
Birunthan Mohanathas
fb5a425eb8 PerfMon.dll: Fixed incorrect measure value (http://rainmeter.net/forum/viewtopic.php?f=14&t=11599) 2012-03-26 19:13:00 +03:00
Birunthan Mohanathas
bb44c29f6c Cosmetic changes to function comment blocks. 2012-02-20 19:10:40 +00:00
spx
4bd8e7db7d Added workaround for loading C# plugins. (For some reason, C# x86 plugin with uncanonicalized path is not loaded correctly in Win7 32bit/WOW64.)
http://rainmeter.net/forum/viewtopic.php?f=18&t=239&start=30#p56921
http://rainmeter.net/forum/viewtopic.php?f=18&t=239&start=80#p64237
2012-02-09 08:57:20 +00:00
Birunthan Mohanathas
85e59b5583 New plugin API: Added rm parameter to Initialize. 2012-02-02 07:39:14 +00: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
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
Birunthan Mohanathas
c3ed2e5fa3 Reintegrated 2.3 branch into trunk 2012-01-08 17:35:29 +00:00
Birunthan Mohanathas
71b8d6395d Reverted trunk to r1085. 2011-12-30 17:18:34 +00:00
Birunthan Mohanathas
7b3b0277ec Added new plugin API. 2011-12-30 16:16:22 +00:00
spx
8e8b7d1268 Code tweaks and cleanup. 2011-12-04 22:18:40 +00:00
Birunthan Mohanathas
1e9d424c99 Made log messages more consistent. 2011-11-09 09:27:06 +00:00
spx
86fd454277 Code cleanup. 2011-09-29 17:14:51 +00:00
Birunthan Mohanathas
13c17b9d1a - Removed support for using Rainmeter.dll as Litestep module
- Merged Rainmeter.dll and Rainmeter.exe
- Language resource file now located in \Language\<LanguageName>.dll
- Build.bat now automatically builds and packages all languages
2011-09-28 18:28:35 +00:00
Birunthan Mohanathas
477610f832 DynamicVariables are now supported with plugins on settings that are common to all measures (e.g. MaxValue). 2011-09-26 14:05:07 +00:00
Birunthan Mohanathas
f14d751604 - Added #CURRENTFILE# variable
- Changes to log strings
2011-09-09 16:31:55 +00:00
Birunthan Mohanathas
f17602ee1d - Manage Skins: Load order can now be changed
- Fixed that the PLAY/PLAYLOOP commands didn't work with relative paths
- Errors that used to display in a messagebox are now logged and shown in the About Log dialog (which is opened when an error occurs)
- Some minor tweaks
2011-09-08 14:39:25 +00:00
spx
15eba97cba Minor tweaks and cosmetics. 2011-07-18 00:32:09 +00:00
spx
31e3091e34 Reverted r815 and stopped changing the working directory for the plugins. 2011-05-23 20:21:19 +00:00
spx
3356448dbe Minor optimizations & fixes. 2011-05-22 16:02:43 +00:00
Birunthan Mohanathas
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +00:00
spx
9f152e0076 Removed unneeded codes, for VC2010. 2011-02-20 23:03:15 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
7ea3a762ac - Fixed that r716 (precompiled header) doesn't work on x64.
- Now uses constructor initialization list in each class.
- TintedImage: Code cleanup.
2011-01-29 00:11:01 +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
JamesAC
c50f1c27f2 - Replace DebugLog() with LogWithArgs(int nLevel, const WCHAR* format, ... ), so that variable strings can be logged but the log level can be set to those other than LOG_DEBUG
- Note: DebugLog() is still in the code as I was not sure whether it is required to maintain Litestep interoperability
- Replaced instances of LOG_DEBUG where other log levels would be more appropriate
2010-12-19 23:06:13 +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
3324084c7f Fixed an issue that TrayMeasure doesn't work with Measure=PLUGIN. 2010-12-08 02:46:41 +00:00