Adding more configuration options to GUI (username and shared folder name)
Signed-off-by: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
diff --git a/gui/chronosharegui.h b/gui/chronosharegui.h
index b0d459e..098a48e 100644
--- a/gui/chronosharegui.h
+++ b/gui/chronosharegui.h
@@ -21,6 +21,7 @@
#ifndef CHRONOSHAREGUI_H
#define CHRONOSHAREGUI_H
+#include <QtGui>
#include <QWidget>
#include <QSystemTrayIcon>
#include <QMenu>
@@ -35,7 +36,7 @@
#include "fs-watcher.h"
-class ChronoShareGui : public QWidget
+class ChronoShareGui : public QDialog
{
Q_OBJECT
@@ -59,6 +60,9 @@
// view chronoshare settings
void viewSettings();
+ // change chronoshare settings
+ void changeSettings();
+
private:
// create actions that result from clicking a menu option
void createActions();
@@ -94,8 +98,21 @@
QAction* m_quitProgram; // quit program action
QString m_dirPath; // shared directory
+ QString m_username; // username
+ QString m_sharedFolderName; // shared folder name
- FsWatcher *m_watcher;
+ FsWatcher* m_watcher;
+
+ QLabel* labelUsername;
+ QPushButton* button;
+ QLabel* labelSharedFolder;
+ QLabel* labelSharedFolderPath;
+ QLineEdit* editUsername;
+ QLineEdit* editSharedFolder;
+ QLineEdit* editSharedFolderPath;
+ QLabel *label;
+ QVBoxLayout *mainLayout;
+
// QString m_settingsFilePath; // settings file path
// QString m_settings;
};