25 #include <ksystemtray.h>
32 class TrayWindow : public KSystemTray
37 TrayWindow(MainWindow* parent, const char* name = 0);
39 void removeWindow(MainWindow*);
40 MainWindow* assocMainWindow() const { return mAssocMainWindow; }
41 void setAssocMainWindow(MainWindow* win) { mAssocMainWindow = win; }
42 bool inSystemTray() const;
43 void tooltipAlarmText(TQString& text) const;
52 virtual void contextMenuAboutToShow(TDEPopupMenu*);
53 virtual void mousePressEvent(TQMouseEvent*);
54 virtual void mouseReleaseEvent(TQMouseEvent*);
55 virtual void dragEnterEvent(TQDragEnterEvent*);
56 virtual void dropEvent(TQDropEvent*);
60 void slotNewFromTemplate( const KAEvent&);
61 void slotPreferences();
62 void setEnabledStatus( bool status);
65 friend class TrayTooltip;
67 MainWindow* mAssocMainWindow;
68 TQPixmap mPixmapEnabled, mPixmapDisabled;
69 TrayTooltip* mTooltip;
KAEvent corresponds to a KCal::Event instance.
|