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 public:
00034 ThemeWidget(TQWidget *parent = 0, const char *name = 0);
00035 ThemeWidget(ThemeFile* tf);
00036 ~ThemeWidget();
00037
00038 ThemeFile* themeFile() const { return m_themeFile; };
00039
00040 int addInstance();
00041 int instances() const { return m_instancePool.count(); };
00042 void removeInstance(int instance);
00043
00044 void setDescriptionText(TQString text);
00045 void setHeaderText(TQString text);
00046 void showButton(bool show);
00047
00048 protected:
00049 void updateRunning();
00050 void setDescriptionMaxHeight();
00051
00052 private:
00053 ThemeFile* m_themeFile;
00054 TQValueList<int> m_instancePool;
00055 };
00056
00057 #endif