diff options
| author | Niklas | 2011-07-28 16:00:49 +0200 |
|---|---|---|
| committer | Niklas | 2011-07-28 16:00:49 +0200 |
| commit | 87dc3eae8eeb774aecf005465ddd9eecdd829b8a (patch) | |
| tree | 99f798a021e94540b82973bafe886139d3be4952 /workspace/LogReceiver/ndgui.h | |
| parent | log messages are delivered to qt app. (diff) | |
| download | fbgui-87dc3eae8eeb774aecf005465ddd9eecdd829b8a.tar.gz fbgui-87dc3eae8eeb774aecf005465ddd9eecdd829b8a.tar.xz fbgui-87dc3eae8eeb774aecf005465ddd9eecdd829b8a.zip | |
better version of the logwriter.c and started to devide gui and logic
Diffstat (limited to 'workspace/LogReceiver/ndgui.h')
| -rw-r--r-- | workspace/LogReceiver/ndgui.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 <QtGui/QWidget> +#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<int, QProgressBar *> progressBars; + QLabel *ndStatusLabel; + QGroupBox *interfaceGroupBox; + QVBoxLayout *mainLayout; + QVBoxLayout *interfaceGroupBoxLayout; + /**/ + + /*gui functions*/ + void buildGui(); + void createInterfaceGroupBox(); + void addInterfacesToGroupBox(QList<QNetworkInterface> &interfaces); + + + + +}; + +#endif // NDGUI_H |
