themewidget.h

00001 /*
00002  * Copyright (C) 2005 Petri Damstén <petri.damsten@iki.fi>
00003  *
00004  * This file is part of SuperKaramba.
00005  *
00006  *  SuperKaramba is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  SuperKaramba is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with SuperKaramba; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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(QWidget *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(QString text);
00045     void setHeaderText(QString text);
00046     void showButton(bool show);
00047 
00048   protected:
00049     void updateRunning();
00050     void setDescriptionMaxHeight();
00051 
00052   private:
00053     ThemeFile* m_themeFile;
00054     QValueList<int> m_instancePool;
00055 };
00056 
00057 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys