Skip to content

Commit 8422f5f

Browse files
committed
Updated Source Code to v0.5.2
* Added installer meta-data * Added single instance application support * Added cross instance messaging to open the SettingsForm when another instance is launched * Updated MetroForm and added features and tooltips * Extended Logsystem * Application temporary disables the windows standby while StandBye is running * Added Copyright notes in all files * Added option to disable messages from icon * Fixed Bugs: * Fixed too many IO operations of the settingsProvider * Fixed long loading time of SettingsForm * Fixed missing icons * Fixed too many instances of SystemAccess * Fixed RefreshTimer issue on SettingsForm * Fixed LogFiles Directory (IO AccessRights) * Fixed maxLength and Formatting of TextBoxes * Fixed presentation mode issue after messagebox * Fixed option to add processes twice * Fixed disposed error on closing SettingsForm * Fixed Downloading issue, if no internet connection is available * Fixed decimal separator in textboxes
1 parent ea27fdf commit 8422f5f

50 files changed

Lines changed: 7135 additions & 2369 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SourceCode/AssemblyInfo.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: AssemblyInfo.cpp
7+
* Author: Florian Baader
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#include "stdafx.h"
213

314
using namespace System;

SourceCode/AverageBuffer.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: AverageBuffer.cpp
7+
* Author: Matthias Weirich
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#include "stdafx.h"
213
#include "AverageBuffer.h"
314

SourceCode/AverageBuffer.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: AverageBuffer.h
7+
* Author: Matthias Weirich
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#pragma once
2-
313
#define lock(X, B) System::Threading::Monitor::Enter(X, B)
414
#define ulock(X)if(System::Threading::Monitor::IsEntered(X)) System::Threading::Monitor::Exit(X)
515

SourceCode/BasicFunc.cpp

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: BasicFunc.cpp
7+
* Author: Florian Baader
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#pragma once
213
#include "stdafx.h"
314
#include "BasicFunc.h"
@@ -49,7 +60,8 @@ System::String ^ BasicFunc::getLogFilePath()
4960
DateTime^ starttime = Process::GetCurrentProcess()->StartTime;
5061

5162
//Path
52-
String^ mainFolder = System::IO::Directory::GetCurrentDirectory();
63+
//String^ mainFolder = System::IO::Directory::GetCurrentDirectory(); //Programm Directory
64+
String^ mainFolder = getStandByeAppDataFolderPath();
5365
String^ log_folder = Path::Combine(mainFolder, "logs");
5466
String^ current_date_folder = Path::Combine(log_folder, starttime->ToString("yyyy_MM_dd"));
5567
String^ file_path = Path::Combine(current_date_folder, starttime->ToString("HH_mm") + ".txt");
@@ -76,8 +88,9 @@ void BasicFunc::Log(System::String^ text)
7688
try {
7789
sw = File::AppendText(BasicFunc::getLogFilePath());
7890
}
79-
catch (System::Exception^) {
80-
//Could not find / open the file
91+
catch (System::Exception^ e) {
92+
System::Diagnostics::Debug::WriteLine(e->Message);
93+
System::Diagnostics::Debug::WriteLine(e->StackTrace);
8194
return;
8295
}
8396

@@ -103,6 +116,13 @@ bool BasicFunc::isNumerique(System::String ^ text)
103116
return isNumerique(BasicFunc::StringToString(text));
104117
}
105118

119+
System::String ^ BasicFunc::getStandByeAppDataFolderPath()
120+
{
121+
String^ path = Environment::GetFolderPath(Environment::SpecialFolder::ApplicationData);
122+
path = System::IO::Path::Combine(path, "StandBye");
123+
return path;
124+
}
125+
106126
void BasicFunc::Log(std::string text)
107127
{
108128
Log(gcnew String(text.c_str()));

SourceCode/BasicFunc.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: BasicFunc.h
7+
* Author: Florian Baader
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#pragma once
213
#include <string>
314
#include <msclr\marshal_cppstd.h> //Converting System::String to std::string
@@ -37,4 +48,7 @@ namespace BasicFunc {
3748

3849
///<summary>Checks if string only contains numerique characters</summary>
3950
bool isNumerique(System::String^ text);
51+
52+
///<summary>Returns the path to the StandBye AppData Folder</summary>
53+
System::String^ getStandByeAppDataFolderPath();
4054
}

SourceCode/Changelog.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Changelog:
2+
3+
## v.0.5.2
4+
* Added installer meta-data
5+
* Added single instance application support
6+
* Added cross instance messaging to open the SettingsForm when another instance is launched
7+
* Updated MetroForm and added features and tooltips
8+
* Extended Logsystem
9+
* Application temporary disables the windows standby while StandBye is running
10+
* Added Copyright notes in all files
11+
* Added option to disable messages from icon
12+
* Fixed Bugs:
13+
* Fixed too many IO operations of the settingsProvider
14+
* Fixed long loading time of SettingsForm
15+
* Fixed missing icons
16+
* Fixed too many instances of SystemAccess
17+
* Fixed RefreshTimer issue on SettingsForm
18+
* Fixed LogFiles Directory (IO AccessRights)
19+
* Fixed maxLength and Formatting of TextBoxes
20+
* Fixed presentation mode issue after messagebox
21+
* Fixed option to add processes twice
22+
* Fixed disposed error on closing SettingsForm
23+
* Fixed Downloading issue, if no internet connection is available
24+
* Fixed decimal separator in textboxes
25+
26+
### in Progress:
27+
- [x] Fixing Bugs
28+
- [ ] @vavido minimalistic design of the homepage
29+
- [ ] Fixing problems with multi-user systems
30+
- [ ] Designing software as a service
31+
32+
### older versions
33+
34+
#### v0.4.3
35+
* Added sound detection (audio peak measurement)
36+
* Added Option to cancel shutdown while sound is playing
37+
* Added debug window to show detailed information
38+
* Implemented Log System
39+
* Fixed some bugs
40+
* Code improvements and code commenting
41+
* Improved exception handling
42+
43+
#### v0.3
44+
* Added tooltips to system tray icon
45+
* Leftclick on icon opens settingsform
46+
* Some GUI updates
47+
* code improvements
48+
49+
#### v0.2
50+
* System-Usage monitoring
51+
* Buffering Usage over 30 seconds
52+
* Settings with current usage
53+
* Multi-Threaded
54+
* Wait-Time
55+
* Exception processes from file / current running processes
56+
* Autostart
57+
* Presentationmode
58+
59+
#### v0.1
60+
* Some tests
61+
* first code

SourceCode/DebugForm.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//////////////////////////////////////////////////////////////////////////
2+
/*!
3+
* STAND_BYE! SOURCE CODE
4+
* ----------------------------------------------------------------------
5+
* for more information see: http://www.stand-bye.de
6+
* FILE: DebugForm.cpp
7+
* Author: Florian Baader
8+
* Contact: flobaader@web.de
9+
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich
10+
*/
11+
//////////////////////////////////////////////////////////////////////////
112
#include "stdafx.h"
213
#include "DebugForm.h"
314
using namespace StandBye;
@@ -9,8 +20,7 @@ System::Void StandBye::DebugForm::DebugForm_Load(System::Object ^, System::Event
920

1021
System::Void StandBye::DebugForm::buttonSettingsForm_Click(System::Object ^, System::EventArgs ^)
1122
{
12-
MetroSettingsForm^ form = gcnew MetroSettingsForm(system_watcher, settings_prov);
13-
form->ShowDialog();
23+
parent->OpenSettingsForm();
1424
}
1525

1626
System::Void StandBye::DebugForm::buttonProcessForm_Click(System::Object ^, System::EventArgs ^)
@@ -54,7 +64,6 @@ System::String ^ StandBye::DebugForm::getLogText()
5464
}
5565

5666
return return_string;
57-
5867
}
5968

6069
void DebugForm::OnTick(System::Object ^, System::EventArgs ^)

0 commit comments

Comments
 (0)