• 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
themesdlg.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 
21 #ifndef THEMESDLG_H
22 #define THEMESDLG_H
23 
24 #include <KNS/Engine>
25 
26 #include "ui_themes_layout.h"
27 #include "karambaapp.h"
28 #include "themewidget.h"
29 
33 class KArchiveDirectory;
34 
35 class ThemesDlg : public QDialog, public Ui::ThemesLayout
36 {
37  Q_OBJECT
38 
39 public:
40  explicit ThemesDlg(QWidget *parent = 0, const char *name = 0);
41  ~ThemesDlg();
42 
43  int addTheme(const QString &appId, const QString &file);
44  void removeTheme(const QString &appId, const QString &file, int instance);
45  int addThemeToList(const QString &file);
46  void addSkzThemeToDialog(const QString &file);
47  void addThemeToDialog(const KArchiveDirectory *archiveDir, const QString& destDir);
48  void writeNewStuffConfig(const QString &file);
49  void configSanityCheck();
50  bool isDownloaded(const QString &path);
51  void saveUserAddedThemes();
52  QStringList runningThemes();
53 
54 protected slots:
55  virtual void addToDesktop();
56  virtual void addToDesktop(QPoint, ThemeWidget*);
57  virtual void selectionChanged(int);
58  virtual void openLocalTheme();
59  virtual void getNewStuff();
60  virtual void search(const QString& text);
61  virtual void uninstall();
62  virtual void installNewTheme(const QString &newTheme);
63 
64 protected:
65  static bool filter(int index, QWidget* widget, void* data);
66  void populateListbox();
67  int themeIndex(const QString &file);
68  QStringList themes();
69 
70 private:
71  bool m_newStuffInitialized;
72  QStringList m_newStuffStatus;
73 };
74 
75 #endif
ThemesDlg::uninstall
virtual void uninstall()
Definition: themesdlg.cpp:404
ThemesDlg::configSanityCheck
void configSanityCheck()
ThemesDlg::addToDesktop
virtual void addToDesktop()
Definition: themesdlg.cpp:168
QDialog
ThemesDlg::saveUserAddedThemes
void saveUserAddedThemes()
Definition: themesdlg.cpp:60
QWidget
ThemesDlg::~ThemesDlg
~ThemesDlg()
Definition: themesdlg.cpp:54
ThemesDlg::populateListbox
void populateListbox()
Definition: themesdlg.cpp:99
ThemesDlg::openLocalTheme
virtual void openLocalTheme()
Definition: themesdlg.cpp:189
ThemesDlg
Definition: themesdlg.h:35
ThemesDlg::isDownloaded
bool isDownloaded(const QString &path)
Definition: themesdlg.cpp:397
ThemesDlg::ThemesDlg
ThemesDlg(QWidget *parent=0, const char *name=0)
Definition: themesdlg.cpp:38
ThemesDlg::selectionChanged
virtual void selectionChanged(int)
Definition: themesdlg.cpp:275
themewidget.h
ThemesDlg::addThemeToDialog
void addThemeToDialog(const KArchiveDirectory *archiveDir, const QString &destDir)
Definition: themesdlg.cpp:309
ThemesDlg::installNewTheme
virtual void installNewTheme(const QString &newTheme)
Definition: themesdlg.cpp:220
ThemesDlg::themeIndex
int themeIndex(const QString &file)
Definition: themesdlg.cpp:289
ThemesDlg::addTheme
int addTheme(const QString &appId, const QString &file)
Definition: themesdlg.cpp:345
ThemesDlg::themes
QStringList themes()
Definition: themesdlg.cpp:86
ThemesDlg::removeTheme
void removeTheme(const QString &appId, const QString &file, int instance)
Definition: themesdlg.cpp:357
ThemesDlg::getNewStuff
virtual void getNewStuff()
Definition: themesdlg.cpp:204
ThemesDlg::filter
static bool filter(int index, QWidget *widget, void *data)
Definition: themesdlg.cpp:373
ThemeWidget
Definition: themewidget.h:30
ThemesDlg::writeNewStuffConfig
void writeNewStuffConfig(const QString &file)
ThemesDlg::addSkzThemeToDialog
void addSkzThemeToDialog(const QString &file)
Definition: themesdlg.cpp:303
karambaapp.h
ThemesDlg::search
virtual void search(const QString &text)
Definition: themesdlg.cpp:368
ThemesDlg::runningThemes
QStringList runningThemes()
Definition: themesdlg.cpp:475
ThemesDlg::addThemeToList
int addThemeToList(const QString &file)
Definition: themesdlg.cpp:329
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