Update of gui. Now it builds and .app bundle, which doesn't show icon in the dock bar
diff --git a/gui/chronosharegui.h b/gui/chronosharegui.h
index 76b73ba..f0cbe76 100644
--- a/gui/chronosharegui.h
+++ b/gui/chronosharegui.h
@@ -35,65 +35,66 @@
class ChronoShareGui : public QWidget
{
- Q_OBJECT
-
-public:
- // constructor
- explicit ChronoShareGui(QWidget* parent = 0);
+ Q_OBJECT
- // destructor
- ~ChronoShareGui();
+ public:
+ // constructor
+ explicit ChronoShareGui(QWidget* parent = 0);
+
+ // destructor
+ ~ChronoShareGui();
private slots:
- // open the shared folder
- void openSharedFolder();
+ // open the shared folder
+ void openSharedFolder();
- // open file dialog
- void openFileDialog();
+ // open file dialog
+ void openFileDialog();
- // handle left click of tray icon
- void trayIconClicked(QSystemTrayIcon::ActivationReason reason);
+ // handle left click of tray icon
+ void trayIconClicked(QSystemTrayIcon::ActivationReason reason);
- // view chronoshare settings
- void viewSettings();
+ // view chronoshare settings
+ void viewSettings();
private:
- // create actions that result from clicking a menu option
- void createActions();
+ // create actions that result from clicking a menu option
+ void createActions();
- // create tray icon
- void createTrayIcon();
+ // create tray icon
+ void createTrayIcon();
- // set icon image
- void setIcon();
+ // set icon image
+ void setIcon();
- // load persistent settings
- bool loadSettings();
+ // load persistent settings
+ bool loadSettings();
- // save persistent settings
- void saveSettings();
+ // save persistent settings
+ void saveSettings();
- // prompt user dialog box
- void openMessageBox(QString title, QString text);
+ // prompt user dialog box
+ void openMessageBox(QString title, QString text);
- // overload
- void openMessageBox(QString title, QString text, QString infotext);
+ // overload
+ void openMessageBox(QString title, QString text, QString infotext);
- // capture close event
- void closeEvent(QCloseEvent* event);
+ // capture close event
+ void closeEvent(QCloseEvent* event);
private:
- QSystemTrayIcon* m_trayIcon; // tray icon
- QMenu* m_trayIconMenu; // tray icon menu
+ QSystemTrayIcon* m_trayIcon; // tray icon
+ QMenu* m_trayIconMenu; // tray icon menu
- QAction* m_openFolder; // open the shared folder action
- QAction* m_viewSettings; // chronoShare settings
- QAction* m_changeFolder; // change the shared folder action
- QAction* m_quitProgram; // quit program action
+ QAction* m_openFolder; // open the shared folder action
+ QAction* m_viewSettings; // chronoShare settings
+ QAction* m_changeFolder; // change the shared folder action
+ QAction* m_quitProgram; // quit program action
- QString m_dirPath; // shared directory
+ QString m_dirPath; // shared directory
- QString m_settingsFilePath; // settings file path
+ // QString m_settingsFilePath; // settings file path
+ // QString m_settings;
};
#endif // CHRONOSHAREGUI_H