• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
themewidget.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005 Petri Damst� <petri.damsten@iki.fi>
3  *
4  * This file is part of SuperKaramba.
5  *
6  * SuperKaramba is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * SuperKaramba is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SuperKaramba; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  ****************************************************************************/
20 #ifndef THEMEWIDGET_H
21 #define THEMEWIDGET_H
22 
23 #include "themefile.h"
24 #include "ui_themewidget_layout.h"
25 
30 class ThemeWidget : public QWidget, public Ui::ThemeWidgetLayout
31 {
32  Q_OBJECT
33 public:
34  ThemeWidget(QWidget *parent = 0);
35  ThemeWidget(ThemeFile* tf);
36  ~ThemeWidget();
37 
38  ThemeFile* themeFile() const
39  {
40  return m_themeFile;
41  }
42 
43  int addInstance();
44  int instances() const
45  {
46  return m_instancePool.count();
47  }
48  void removeInstance(int instance);
49 
50  void setDescriptionText(const QString &text);
51  void setHeaderText(const QString &text);
52  void showButton(bool show);
53 
54  QPixmap icon();
55  QString path();
56 
57 protected:
58  void updateRunning();
59  void setDescriptionMaxHeight();
60 
61 private:
62  ThemeFile* m_themeFile;
63  QList<int> m_instancePool;
64 };
65 
66 #endif
ThemeWidget::~ThemeWidget
~ThemeWidget()
Definition: themewidget.cpp:52
ThemeFile
Definition: themefile.h:41
QWidget
ThemeWidget::showButton
void showButton(bool show)
Definition: themewidget.cpp:93
ThemeWidget::removeInstance
void removeInstance(int instance)
Definition: themewidget.cpp:68
ThemeWidget::updateRunning
void updateRunning()
Definition: themewidget.cpp:74
themefile.h
ThemeWidget::instances
int instances() const
Definition: themewidget.h:44
ThemeWidget::icon
QPixmap icon()
Definition: themewidget.cpp:113
ThemeWidget::themeFile
ThemeFile * themeFile() const
Definition: themewidget.h:38
ThemeWidget::path
QString path()
Definition: themewidget.cpp:118
ThemeWidget::ThemeWidget
ThemeWidget(QWidget *parent=0)
Definition: themewidget.cpp:23
ThemeWidget
Definition: themewidget.h:30
ThemeWidget::addInstance
int addInstance()
Definition: themewidget.cpp:57
ThemeWidget::setDescriptionText
void setDescriptionText(const QString &text)
Definition: themewidget.cpp:83
ThemeWidget::setDescriptionMaxHeight
void setDescriptionMaxHeight()
Definition: themewidget.cpp:102
ThemeWidget::setHeaderText
void setHeaderText(const QString &text)
Definition: themewidget.cpp:88
show
int show(long widget)
Definition: misc.cpp:600
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal