-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
50 changed files
with
7,135 additions
and
2,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: AssemblyInfo.cpp | ||
* Author: Florian Baader | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#include "stdafx.h" | ||
|
||
using namespace System; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: AverageBuffer.cpp | ||
* Author: Matthias Weirich | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#include "stdafx.h" | ||
#include "AverageBuffer.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: AverageBuffer.h | ||
* Author: Matthias Weirich | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#pragma once | ||
|
||
#define lock(X, B) System::Threading::Monitor::Enter(X, B) | ||
#define ulock(X)if(System::Threading::Monitor::IsEntered(X)) System::Threading::Monitor::Exit(X) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: BasicFunc.cpp | ||
* Author: Florian Baader | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#pragma once | ||
#include "stdafx.h" | ||
#include "BasicFunc.h" | ||
|
@@ -49,7 +60,8 @@ System::String ^ BasicFunc::getLogFilePath() | |
DateTime^ starttime = Process::GetCurrentProcess()->StartTime; | ||
|
||
//Path | ||
String^ mainFolder = System::IO::Directory::GetCurrentDirectory(); | ||
//String^ mainFolder = System::IO::Directory::GetCurrentDirectory(); //Programm Directory | ||
String^ mainFolder = getStandByeAppDataFolderPath(); | ||
String^ log_folder = Path::Combine(mainFolder, "logs"); | ||
String^ current_date_folder = Path::Combine(log_folder, starttime->ToString("yyyy_MM_dd")); | ||
String^ file_path = Path::Combine(current_date_folder, starttime->ToString("HH_mm") + ".txt"); | ||
|
@@ -76,8 +88,9 @@ void BasicFunc::Log(System::String^ text) | |
try { | ||
sw = File::AppendText(BasicFunc::getLogFilePath()); | ||
} | ||
catch (System::Exception^) { | ||
//Could not find / open the file | ||
catch (System::Exception^ e) { | ||
System::Diagnostics::Debug::WriteLine(e->Message); | ||
System::Diagnostics::Debug::WriteLine(e->StackTrace); | ||
return; | ||
} | ||
|
||
|
@@ -103,6 +116,13 @@ bool BasicFunc::isNumerique(System::String ^ text) | |
return isNumerique(BasicFunc::StringToString(text)); | ||
} | ||
|
||
System::String ^ BasicFunc::getStandByeAppDataFolderPath() | ||
{ | ||
String^ path = Environment::GetFolderPath(Environment::SpecialFolder::ApplicationData); | ||
path = System::IO::Path::Combine(path, "StandBye"); | ||
return path; | ||
} | ||
|
||
void BasicFunc::Log(std::string text) | ||
{ | ||
Log(gcnew String(text.c_str())); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: BasicFunc.h | ||
* Author: Florian Baader | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#pragma once | ||
#include <string> | ||
#include <msclr\marshal_cppstd.h> //Converting System::String to std::string | ||
|
@@ -37,4 +48,7 @@ namespace BasicFunc { | |
|
||
///<summary>Checks if string only contains numerique characters</summary> | ||
bool isNumerique(System::String^ text); | ||
|
||
///<summary>Returns the path to the StandBye AppData Folder</summary> | ||
System::String^ getStandByeAppDataFolderPath(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Changelog: | ||
|
||
## v.0.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 | ||
|
||
### in Progress: | ||
- [x] Fixing Bugs | ||
- [ ] @vavido minimalistic design of the homepage | ||
- [ ] Fixing problems with multi-user systems | ||
- [ ] Designing software as a service | ||
|
||
### older versions | ||
|
||
#### v0.4.3 | ||
* Added sound detection (audio peak measurement) | ||
* Added Option to cancel shutdown while sound is playing | ||
* Added debug window to show detailed information | ||
* Implemented Log System | ||
* Fixed some bugs | ||
* Code improvements and code commenting | ||
* Improved exception handling | ||
|
||
#### v0.3 | ||
* Added tooltips to system tray icon | ||
* Leftclick on icon opens settingsform | ||
* Some GUI updates | ||
* code improvements | ||
|
||
#### v0.2 | ||
* System-Usage monitoring | ||
* Buffering Usage over 30 seconds | ||
* Settings with current usage | ||
* Multi-Threaded | ||
* Wait-Time | ||
* Exception processes from file / current running processes | ||
* Autostart | ||
* Presentationmode | ||
|
||
#### v0.1 | ||
* Some tests | ||
* first code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
////////////////////////////////////////////////////////////////////////// | ||
/*! | ||
* STAND_BYE! SOURCE CODE | ||
* ---------------------------------------------------------------------- | ||
* for more information see: http://www.stand-bye.de | ||
* FILE: DebugForm.cpp | ||
* Author: Florian Baader | ||
* Contact: [email protected] | ||
* Copyright (c) 2016 Florian Baader, Stephan Le, Matthias Weirich | ||
*/ | ||
////////////////////////////////////////////////////////////////////////// | ||
#include "stdafx.h" | ||
#include "DebugForm.h" | ||
using namespace StandBye; | ||
|
@@ -9,8 +20,7 @@ System::Void StandBye::DebugForm::DebugForm_Load(System::Object ^, System::Event | |
|
||
System::Void StandBye::DebugForm::buttonSettingsForm_Click(System::Object ^, System::EventArgs ^) | ||
{ | ||
MetroSettingsForm^ form = gcnew MetroSettingsForm(system_watcher, settings_prov); | ||
form->ShowDialog(); | ||
parent->OpenSettingsForm(); | ||
} | ||
|
||
System::Void StandBye::DebugForm::buttonProcessForm_Click(System::Object ^, System::EventArgs ^) | ||
|
@@ -54,7 +64,6 @@ System::String ^ StandBye::DebugForm::getLogText() | |
} | ||
|
||
return return_string; | ||
|
||
} | ||
|
||
void DebugForm::OnTick(System::Object ^, System::EventArgs ^) | ||
|
Oops, something went wrong.