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

kresources

  • kresources
configpage.h
1 /*
2  This file is part of libkresources.
3 
4  Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
6  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 #ifndef KRESOURCES_CONFIGPAGE_H
24 #define KRESOURCES_CONFIGPAGE_H
25 
26 #include <ksharedptr.h>
27 #include <tqstringlist.h>
28 #include <tqwidget.h>
29 
30 #include "manager.h"
31 
32 class KComboBox;
33 class KListView;
34 
35 class TQListViewItem;
36 class TQPushButton;
37 
38 namespace KRES {
39 
40 class KRESOURCES_EXPORT ResourcePageInfo : public KShared
41 {
42  public:
43  ResourcePageInfo();
44  ~ResourcePageInfo();
45  Manager<Resource> *mManager;
46  KConfig *mConfig;
47 };
48 
49 class Resource;
50 class ConfigViewItem;
51 
52 class KRESOURCES_EXPORT ConfigPage : public TQWidget, public ManagerObserver<Resource>
53 {
54  Q_OBJECT
55 
56  public:
57  ConfigPage( TQWidget *parent = 0, const char *name = 0 );
58  virtual ~ConfigPage();
59 
60  void load();
61  void save();
62  virtual void defaults();
63 
64  public slots:
65  void slotFamilyChanged( int );
66  void slotAdd();
67  void slotRemove();
68  void slotEdit();
69  void slotStandard();
70  void slotSelectionChanged();
71 
72  public:
73  // From ManagerObserver<Resource>
74  virtual void resourceAdded( Resource *resource );
75  virtual void resourceModified( Resource *resource );
76  virtual void resourceDeleted( Resource *resource );
77 
78  protected:
79  ConfigViewItem *findItem( Resource *resource );
80 
81  protected slots:
82  void slotItemClicked( TQListViewItem * );
83 
84  signals:
85  void changed( bool );
86 
87  private:
88  void loadManager( const TQString& family );
89  void saveResourceSettings();
90 
91  Manager<Resource>* mCurrentManager;
92  KConfig* mCurrentConfig;
93  KConfig* mConfig;
94  TQString mFamily;
95  TQStringList mFamilyMap;
96  TQValueList<KSharedPtr<ResourcePageInfo> > mInfoMap;
97 
98  KComboBox* mFamilyCombo;
99  KListView* mListView;
100  TQPushButton* mAddButton;
101  TQPushButton* mRemoveButton;
102  TQPushButton* mEditButton;
103  TQPushButton* mStandardButton;
104 
105  TQListViewItem* mLastItem;
106 };
107 
108 }
109 
110 #endif

kresources

Skip menu "kresources"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kresources

Skip menu "kresources"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kresources by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |