Commit Graph

58 Commits

Author SHA1 Message Date
69913fa251 Work on exporting stuff, revert some changes for better diff 2014-08-01 22:54:35 +03:00
7cba5cc109 Fixed line endings and applied gitignore 2014-07-26 09:43:40 +03:00
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
3190fc267f Use decltype instead of typedefs for function pointers 2014-02-28 18:35:32 +02:00
Brian Ferguson
67aeaf5392 Remove Platform version helpers and use <VersionHelpers.h> per http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v=vs.85%29.aspx 2014-02-12 14:42:02 -07:00
Birunthan Mohanathas
a577608835 Unignore and fix warnings in Library/ 2013-12-23 19:42:31 +00: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
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
f9e4230ddd Move CSystem::GetOSPlatform() to Platform.h 2013-03-12 17:53:55 +02:00
spx
f929109f01 Code cleanup 2012-11-12 11:10:40 +09:00
Birunthan Mohanathas
b2d245016a Code cleanup 2012-10-09 18:33:49 +03:00
spx
940b4ff55e Measure: Tweaked Max/Min value logging. 2012-10-03 02:36:11 -07:00
Birunthan Mohanathas
48f06677c4 Net: Removed TrafficAction (broken since 0.14) 2012-09-21 13:13:02 +03:00
Birunthan Mohanathas
d245e552f0 Tweaks 2012-06-26 20:41:40 +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
f20170406e Tweaks 2012-05-29 19:43:24 +03:00
Birunthan Mohanathas
cb0fd823e7 Added support for @Resources 2012-05-20 17:51:15 +03:00
spx
5615b412c9 Changed network stats format (Rainmeter.stats) 2012-04-08 07:00:17 -07:00
Birunthan Mohanathas
bb44c29f6c Cosmetic changes to function comment blocks. 2012-02-20 19:10:40 +00:00
spx
dbd43ddfbc - Changed an interval of writing network statistics from a minute to two minutes.
- Code cosmetic changes.
2012-02-15 02:51:27 +00:00
Birunthan Mohanathas
e459e3df34 Fix to r1142. 2012-01-28 19:55:38 +00:00
Birunthan Mohanathas
92864ea360 Rainmeter.stats is now updated periodically only if NetTotal measure has been used in current session. 2012-01-28 18:44:19 +00:00
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
spx
3bebd7002a Minor tweaks. 2011-12-09 19:49:06 +00:00
Birunthan Mohanathas
b02371276f Minor tweaks. 2011-11-16 16:47:20 +00:00
Birunthan Mohanathas
f8f31a527e Switched from _snwprintf_s to _itow_s where possible. 2011-11-09 08:52:32 +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
spx
31f040ed28 Fixed that Net measure Cumulative=1 doesn't work correctly because network statistics are gathered only once per minute.
Code cleanup.
2011-08-07 09:40:08 +00:00
spx
02251ed412 Additional change for r860. Improved writing the network statistics to
Rainmeter.stats.
2011-08-03 19:44:40 +00:00
spx
b41d94e684 Reverted to r888. 2011-08-02 01:20:05 +00:00
spx
74640d0fb2 Modified CMesureNet to ignore the unwanted interfaces.
Note: Recommend that you remove [Statistics] section from Rainmeter.ini and Rainmeter.stats beforehand. It's because there is a possibility that the interface index is different between old and new.
2011-08-01 21:05:56 +00:00
spx
c2e3b6292d Additional change for r852,r856. Improved reading the network statistics from Rainmeter.stats.
Some cosmetic changes.
2011-07-08 22:50:02 +00:00
spx
a2396a7d0f Tweaks. 2011-06-08 23:56:27 +00:00
Birunthan Mohanathas
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
1ba57f2adf Fixed some Lua related issues.
Removed some internal functions from exposed functions for Lua.
Code cleanup and optimizing for VC2010.
2011-02-15 13:22:19 +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
f4bfe8f4fc - Added #CURRENTSECTION# variable.
For instance:
-----
[Variables]
Var=#CURRENTSECTION#

[StyleString]
Text=#CURRENTSECTION#

[MeterString]
Meter=String
MeterStyle=StyleString
Prefix="#CURRENTSECTION# / "
Postfix=" / #Var#"
-----
Displays:
MeterString / MeterString / Variables

- Additional changes for r677.
* Obsoleted DebugLog(). Use LogWithArgs() with LOG_DEBUG instead.
* Added Log().
2010-12-20 08:57:37 +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
6ef688f387 Code cleanups. 2010-11-06 23:13:12 +00:00
spx
1668de5a3b Code cleanup & cosmetics. 2010-10-31 20:13:32 +00:00
spx
2cb88b0733 Shrunk some string buffer size. 2010-09-13 20:06:52 +00:00
spx
3da0aa3f4c [Application]
- Added some codes to avoid loading a dll from current directory.

[Library]
- Added new functions to avoid loading a dll from current directory. (CSystem::RmSetDllDirectory(), CSystem::RmLoadLibrary())
2010-09-11 19:39:45 +00:00