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

tderesources

  • tderesources
configpage.h
1 /*
2  This file is part of libtderesources.
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 TDERESOURCES_CONFIGPAGE_H
24 #define TDERESOURCES_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 TDEListView;
34 
35 class TQListViewItem;
36 class TQPushButton;
37 
38 namespace KRES {
39 
40 class TDERESOURCES_EXPORT ResourcePageInfo : public TDEShared
41 {
42  public:
43  ResourcePageInfo();
44  ~ResourcePageInfo();
45  Manager<Resource> *mManager;
46  TDEConfig *mConfig;
47 };
48 
49 class Resource;
50 class ConfigViewItem;
51 
52 class TDERESOURCES_EXPORT ConfigPage : public TQWidget, public ManagerObserver<Resource>
53 {
54  TQ_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  TDEConfig* mCurrentConfig;
93  TDEConfig* mConfig;
94  TQString mFamily;
95  TQStringList mFamilyMap;
96  TQValueList<TDESharedPtr<ResourcePageInfo> > mInfoMap;
97 
98  KComboBox* mFamilyCombo;
99  TDEListView* mListView;
100  TQPushButton* mAddButton;
101  TQPushButton* mRemoveButton;
102  TQPushButton* mEditButton;
103  TQPushButton* mStandardButton;
104 
105  TQListViewItem* mLastItem;
106 };
107 
108 }
109 
110 #endif

tderesources

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

tderesources

Skip menu "tderesources"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tderesources by doxygen 1.9.1
This website is maintained by Timothy Pearson.