summaryrefslogtreecommitdiff
path: root/client/viewer.h
diff options
context:
space:
mode:
authordeva <deva>2010-06-10 07:03:06 +0000
committerdeva <deva>2010-06-10 07:03:06 +0000
commit198b0d886817f2c5bc97cfd11857d4b314dffae3 (patch)
tree4fc2d51de46ab69b9e67149abf0ab6a332032f27 /client/viewer.h
parent730eb796bbce6f124be9194f1565b7dda1daddf1 (diff)
Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros.
Diffstat (limited to 'client/viewer.h')
-rw-r--r--client/viewer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/viewer.h b/client/viewer.h
index 7877b8e..c9f1b41 100644
--- a/client/viewer.h
+++ b/client/viewer.h
@@ -36,6 +36,9 @@
#include <QMap>
#include <QHBoxLayout>
+//#define WITH_FROGS
+
+#ifdef WITH_FROGS
#include "netcom.h"
class Status : public QWidget {
@@ -49,6 +52,7 @@ private:
QMap<QString, QLabel*> icons;
QHBoxLayout *hl;
};
+#endif
class Viewer : public QWidget {
Q_OBJECT
@@ -71,10 +75,13 @@ private:
QString cpr;
QString journalpath;
QStringList templs;
- NetCom *netcom;
QTextEdit *journal;
+
+#ifdef WITH_FROGS
+ NetCom *netcom;
QMap<QString, Status* > statuses;
+#endif
};
#endif/*__PRACRO_VIEWER_H__*/