Skip to content

Commit

Permalink
Updated Source Code to v0.5.2
Browse files Browse the repository at this point in the history
* 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
flobaader committed Feb 29, 2016
1 parent ea27fdf commit 8422f5f
Show file tree
Hide file tree
Showing 50 changed files with 7,135 additions and 2,369 deletions.
11 changes: 11 additions & 0 deletions SourceCode/AssemblyInfo.cpp
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;
Expand Down
11 changes: 11 additions & 0 deletions SourceCode/AverageBuffer.cpp
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"

Expand Down
12 changes: 11 additions & 1 deletion SourceCode/AverageBuffer.h
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)

Expand Down
26 changes: 23 additions & 3 deletions SourceCode/BasicFunc.cpp
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"
Expand Down Expand Up @@ -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");
Expand All @@ -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;
}

Expand All @@ -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()));
Expand Down
14 changes: 14 additions & 0 deletions SourceCode/BasicFunc.h
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
Expand Down Expand Up @@ -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();
}
61 changes: 61 additions & 0 deletions SourceCode/Changelog.txt
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
15 changes: 12 additions & 3 deletions SourceCode/DebugForm.cpp
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;
Expand All @@ -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 ^)
Expand Down Expand Up @@ -54,7 +64,6 @@ System::String ^ StandBye::DebugForm::getLogText()
}

return return_string;

}

void DebugForm::OnTick(System::Object ^, System::EventArgs ^)
Expand Down
Loading

0 comments on commit 8422f5f

Please sign in to comment.