• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
themesdlg.h
1 /*
2  * Copyright (C) 2005 Petri Damstén <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 <themes_layout.h>
25 #include "karambaapp.h"
26 
27 #ifdef HAVE_CONFIG_H
28  #include <config.h>
29 #endif
30 
34 #ifdef HAVE_TDENEWSTUFF
35 class SKNewStuff;
36 #endif
37 class ThemeFile;
38 class KArchiveDirectory;
39 
40 class ThemesDlg : public ThemesLayout
41 {
42  TQ_OBJECT
43 
44 
45  public:
46  ThemesDlg(TQWidget *parent = 0, const char *name = 0);
47  ~ThemesDlg();
48 
49  int addTheme(const TQString &appId, const TQString &file);
50  void removeTheme(const TQString &appId, const TQString &file, int instance);
51  int addThemeToList(const TQString &file);
52  void addSkzThemeToDialog(const TQString &file);
53  void addThemeToDialog(const KArchiveDirectory *archiveDir, const TQString& destDir);
54  void writeNewStuffConfig(const TQString &file);
55  void configSanityCheck();
56  bool isDownloaded(const TQString &path);
57  void saveUserAddedThemes();
58  TQStringList runningThemes();
59 
60  protected slots:
61  virtual void addToDesktop();
62  virtual void selectionChanged(int);
63  virtual void openLocalTheme();
64  virtual void getNewStuff();
65  virtual void search(const TQString& text);
66  virtual void uninstall();
67 
68  protected:
69  static bool filter(int index, TQWidget* widget, void* data);
70  void populateListbox();
71  int themeIndex(TQString file);
72  TQStringList themes();
73 
74 #ifdef HAVE_TDENEWSTUFF
75  private:
76  SKNewStuff *mNewStuff;
77  TQStringList m_newStuffStatus;
78 #endif
79 };
80 
81 #endif
ThemeFile
Definition: themefile.h:42

superkaramba

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

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.