Save window maximized state

This commit is contained in:
Charles J. Cliffe
2015-07-16 18:57:03 -04:00
parent 291ec7038a
commit 9c9e82cffc
3 changed files with 37 additions and 0 deletions
+5
View File
@@ -43,12 +43,16 @@ private:
class AppConfig {
public:
AppConfig();
std::string getConfigDir();
DeviceConfig *getDevice(std::string deviceId);
void setWindow(wxPoint winXY, wxSize winWH);
wxRect *getWindow();
void setWindowMaximized(bool max);
bool getWindowMaximized();
void setTheme(int themeId);
int getTheme();
@@ -59,5 +63,6 @@ public:
private:
std::map<std::string, DeviceConfig *> deviceConfig;
std::atomic_int winX,winY,winW,winH;
std::atomic_bool winMax;
std::atomic_int themeId;
};