From 87dc3eae8eeb774aecf005465ddd9eecdd829b8a Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 28 Jul 2011 16:00:49 +0200 Subject: better version of the logwriter.c and started to devide gui and logic --- workspace/LogReceiver/ndgui.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 workspace/LogReceiver/ndgui.h (limited to 'workspace/LogReceiver/ndgui.h') diff --git a/workspace/LogReceiver/ndgui.h b/workspace/LogReceiver/ndgui.h new file mode 100644 index 0000000..01b9d01 --- /dev/null +++ b/workspace/LogReceiver/ndgui.h @@ -0,0 +1,38 @@ +#ifndef NDGUI_H +#define NDGUI_H + +#include +#include "ui_ndgui.h" + +class ndgui: public QWidget { +Q_OBJECT + +public: + ndgui(QWidget *parent = 0); + ~ndgui(); + +public slots: + void handleProgress(int iFaceIndex, int newValue); + +private: + Ui::ndguiClass ui; + + /*gui elements*/ + QMap progressBars; + QLabel *ndStatusLabel; + QGroupBox *interfaceGroupBox; + QVBoxLayout *mainLayout; + QVBoxLayout *interfaceGroupBoxLayout; + /**/ + + /*gui functions*/ + void buildGui(); + void createInterfaceGroupBox(); + void addInterfacesToGroupBox(QList &interfaces); + + + + +}; + +#endif // NDGUI_H -- cgit v1.2.3-55-g7522