summaryrefslogtreecommitdiffstats
path: root/kteatime/toplevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'kteatime/toplevel.h')
-rw-r--r--kteatime/toplevel.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/kteatime/toplevel.h b/kteatime/toplevel.h
index 02d8c20..fafbe7c 100644
--- a/kteatime/toplevel.h
+++ b/kteatime/toplevel.h
@@ -23,27 +23,27 @@
#ifndef TOPLEVEL_H
#define TOPLEVEL_H
-#include <tdeapplication.h>
-#include <tqpopupmenu.h>
-#include <tqtimer.h>
-#include <tqlineedit.h>
#include <tqvaluevector.h>
-#include <tqlistview.h>
-#include <tqpushbutton.h>
-#include <tqgroupbox.h>
-#include <knuminput.h>
#include <ksystemtray.h>
#include <tqpixmap.h>
-class TDEAction;
-class KDialogBase;
class TQCheckBox;
+class TQGroupBox;
+class TQLineEdit;
+class TQListView;
+class TQListViewItem;
+class TQPopupMenu;
+class TQPushButton;
+
+class KDialogBase;
+class KPassivePopup;
+class TDEAction;
+
class TimeEdit;
class TopLevel : public KSystemTray
{
- Q_OBJECT
-
+ TQ_OBJECT
public:
@@ -64,6 +64,7 @@ private slots:
void teaStartSelected(int index);
void start();
void stop();
+ void popupClicked();
void config();
void help();
void anonymous();
@@ -82,6 +83,8 @@ private slots:
void disable_properties();
void enable_properties();
void enable_controls();
+ void eventEnableToggled(bool on);
+ void popupEnableToggled(bool on);
void actionEnableToggled(bool on);
private:
@@ -107,7 +110,7 @@ private:
TQString current_name; // name of currently +running+ tea (if any)
bool shooting; // anonymous tea currently steeping?
- bool useNotify, usePopup, useAction;
+ bool useNotify, usePopup, useResetOnPopup, useAction;
TQString action;
bool useTrayVis; // visualize progress in tray icon
@@ -120,11 +123,12 @@ private:
TimeEdit *timeEdit;
TQGroupBox *editgroup;
TQPushButton *btn_new, *btn_del, *btn_up, *btn_down, *btn_conf;
+ KPassivePopup *popupBox;
TQString lastTip;
KDialogBase *anondlg, *confdlg;
TimeEdit *anon_time;
- TQCheckBox *eventEnable, *popupEnable, *actionEnable, *visEnable;
+ TQCheckBox *eventEnable, *popupEnable, *actionEnable, *visEnable, *resetOnPopupEnable;
};
#endif