superkaramba
themewidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef THEMEWIDGET_H
00021 #define THEMEWIDGET_H
00022
00023 #include "themefile.h"
00024 #include <themewidget_layout.h>
00025
00030 class ThemeWidget : public ThemeWidgetLayout
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 ThemeWidget(TQWidget *parent = 0, const char *name = 0);
00036 ThemeWidget(ThemeFile* tf);
00037 ~ThemeWidget();
00038
00039 ThemeFile* themeFile() const { return m_themeFile; };
00040
00041 int addInstance();
00042 int instances() const { return m_instancePool.count(); };
00043 void removeInstance(int instance);
00044
00045 void setDescriptionText(TQString text);
00046 void setHeaderText(TQString text);
00047 void showButton(bool show);
00048
00049 protected:
00050 void updateRunning();
00051 void setDescriptionMaxHeight();
00052
00053 private:
00054 ThemeFile* m_themeFile;
00055 TQValueList<int> m_instancePool;
00056 };
00057
00058 #endif