From 4e1b9faba7503f99ee2fbcd7458f66ade42fa309 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 1 Sep 2011 09:31:39 +0200 Subject: tried to clean the git. deleted old unused files and folders. moved customdhcpcd and LogReceiver to the fbgui folder --- LogReceiver/ndgui.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 LogReceiver/ndgui.h (limited to 'LogReceiver/ndgui.h') 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 +#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 progressBars; + QMap statusLabels; + QLabel *ndStatusLabel; + QGroupBox *interfaceGroupBox; + QVBoxLayout *mainLayout; + QVBoxLayout *interfaceGroupBoxLayout; + /**/ + + + + + /*gui functions*/ + void buildGui(); + void createInterfaceGroupBox(); + +}; + +#endif // NDGUI_H -- cgit v1.2.3-55-g7522