Ksetiwatch API Documentation


dockwidget.h

Go to the documentation of this file.
00001 /***************************************************************************/
00014 #ifndef DOCKWIDGET_H
00015 #define DOCKWIDGET_H
00016 
00017 #include <ksystemtray.h>
00018 
00019 class QWidget;
00020 class QPixmap;
00021 class SetiLoc;
00022 
00032 class DockWidget : public KSystemTray
00033 {
00034    Q_OBJECT
00035 public: 
00041   DockWidget(QWidget *parent=0, const char *name=0);
00043   ~DockWidget();
00047   const bool isDocked() {return docked;}
00048 
00049 public slots:
00055   void dock(SetiLoc* loc=0);
00057   void undock();
00063   void updateDockWidget(SetiLoc* loc);
00064 
00065 protected: // methods
00070   void paintEvent(QPaintEvent *e);
00079   void timerEvent(QTimerEvent* e);
00080 
00081 private slots:
00088   void handlePopupCommand(int id);
00094   void preparePopupMenu();
00101   void paintIcon(int st, int ls);
00109   void slotBlinkIcon();
00114   void updateProgress();
00124   void updateState(int st, int ls);
00125 
00126 private:
00127   SetiLoc* location;
00128   bool docked;
00129   int newID;
00130   QPixmap mini_seti;
00131   QPixmap mini_setigrey;
00132   QPixmap mini_setistopped;
00133   QPixmap mini_setifinished;
00134   QPixmap mini_setiloading;
00135   QPixmap picsmall_pixmap;
00136   bool showIcon;
00137   int loadingState;
00139   enum popupIDs {StartClient, StopClient};
00140 };
00141 
00142 #endif
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:14 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002