From 198b0d886817f2c5bc97cfd11857d4b314dffae3 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 10 Jun 2010 07:03:06 +0000 Subject: Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros. --- client/viewer.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'client/viewer.h') 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 #include +//#define WITH_FROGS + +#ifdef WITH_FROGS #include "netcom.h" class Status : public QWidget { @@ -49,6 +52,7 @@ private: QMap 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 statuses; +#endif }; #endif/*__PRACRO_VIEWER_H__*/ -- cgit v1.2.3