]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/MiscGui.h
Add layers for OE
[eurobot/public.git] / src / robomon / MiscGui.h
1 /*
2  * MiscGui.h                            07/10/31
3  *
4  * Miscellaneous GUI functions.
5  *
6  * Copyright: (c) 2007 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11
12 #ifndef MISC_GUI_H
13 #define MISC_GUI_H
14
15 #include <QDialog>
16
17 class QLabel;
18
19 #define WDBG(f, a...)   do { \
20         if (debugWindowEnabled) \
21                 debugWindow->append(QTime::currentTime().toString().append(": ").append(f, ## a)); \
22         } while(0)
23
24 class MiscGui
25 {
26 public:
27         MiscGui();
28         static QLabel *createLabel(const QString &text);
29         static QLabel *createLabel(const QString &text, Qt::Alignment alignment);
30
31 protected:
32
33 private slots:
34
35 private:
36 };
37
38 #endif /* MISC_GUI_H */