diff options
Diffstat (limited to 'LogReceiver/ndgui.h')
-rw-r--r-- | LogReceiver/ndgui.h | 67 |
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 |