summaryrefslogtreecommitdiffstats
path: root/LogReceiver/ndgui.h
diff options
context:
space:
mode:
authorNiklas2011-09-01 09:31:39 +0200
committerNiklas2011-09-01 09:31:39 +0200
commit4e1b9faba7503f99ee2fbcd7458f66ade42fa309 (patch)
tree4f9668c17d4dbf103ba71302624a387b080301a3 /LogReceiver/ndgui.h
parentsome minor changes (diff)
downloadfbgui-4e1b9faba7503f99ee2fbcd7458f66ade42fa309.tar.gz
fbgui-4e1b9faba7503f99ee2fbcd7458f66ade42fa309.tar.xz
fbgui-4e1b9faba7503f99ee2fbcd7458f66ade42fa309.zip
tried to clean the git. deleted old unused files and folders. moved customdhcpcd and LogReceiver to the fbgui folder
Diffstat (limited to 'LogReceiver/ndgui.h')
-rw-r--r--LogReceiver/ndgui.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/LogReceiver/ndgui.h b/LogReceiver/ndgui.h
new file mode 100644
index 0000000..e8b0b85
--- /dev/null
+++ b/LogReceiver/ndgui.h
@@ -0,0 +1,67 @@
+#ifndef NDGUI_H
+#define NDGUI_H
+
+#include <QtGui/QWidget>
+#include "qprogressbar.h"
+#include "qlabel.h"
+#include "qgroupbox.h"
+#include "qboxlayout.h"
+#include "ui_ndgui.h"
+#include "logreceiver.h"
+#include "chooseinterfacedialog.h"
+#include "abortbootdialog.h"
+
+class ndgui: public QWidget {
+Q_OBJECT
+
+public:
+ ndgui(QWidget *parent = 0);
+ ~ndgui();
+
+public slots:
+ void handleProgress(QString ifName, int newValue);
+ void addNewInterface(QString ifName);
+ void handleConnectionEstablished(QString ifName);
+ void handleAbortBoot(QString msg);
+ void handleUpdateStatusLabel(QString ifName, QString status);
+ void handleAllProcessesFinished();
+
+ void restartSystem();
+ void shutDownSystem();
+ void continueBoot(QString ifName);
+ void showLog();
+
+ void showAbortBootDialog();
+ void showChooseInterfaceDialog();
+
+private:
+ Ui::ndguiClass ui;
+
+ LogReceiver logReceiver;
+
+ QStringList finalUsableInterfaces;
+
+ int numberOfInterfaces;
+
+ ChooseInterfaceDialog *cID;
+ AbortBootDialog *aBD;
+
+ /*gui elements*/
+ QMap<QString, QProgressBar *> progressBars;
+ QMap<QString, QLabel*> statusLabels;
+ QLabel *ndStatusLabel;
+ QGroupBox *interfaceGroupBox;
+ QVBoxLayout *mainLayout;
+ QVBoxLayout *interfaceGroupBoxLayout;
+ /**/
+
+
+
+
+ /*gui functions*/
+ void buildGui();
+ void createInterfaceGroupBox();
+
+};
+
+#endif // NDGUI_H