23 #ifndef TDERESOURCES_CONFIGPAGE_H
24 #define TDERESOURCES_CONFIGPAGE_H
26 #include <ksharedptr.h>
27 #include <tqstringlist.h>
40 class TDERESOURCES_EXPORT ResourcePageInfo :
public TDEShared
45 Manager<Resource> *mManager;
52 class TDERESOURCES_EXPORT ConfigPage :
public TQWidget,
public ManagerObserver<Resource>
57 ConfigPage( TQWidget *parent = 0,
const char *name = 0 );
58 virtual ~ConfigPage();
62 virtual void defaults();
65 void slotFamilyChanged(
int );
70 void slotSelectionChanged();
74 virtual void resourceAdded( Resource *resource );
75 virtual void resourceModified( Resource *resource );
76 virtual void resourceDeleted( Resource *resource );
79 ConfigViewItem *findItem( Resource *resource );
82 void slotItemClicked( TQListViewItem * );
88 void loadManager(
const TQString& family );
89 void saveResourceSettings();
91 Manager<Resource>* mCurrentManager;
92 TDEConfig* mCurrentConfig;
95 TQStringList mFamilyMap;
96 TQValueList<TDESharedPtr<ResourcePageInfo> > mInfoMap;
98 KComboBox* mFamilyCombo;
99 TDEListView* mListView;
100 TQPushButton* mAddButton;
101 TQPushButton* mRemoveButton;
102 TQPushButton* mEditButton;
103 TQPushButton* mStandardButton;
105 TQListViewItem* mLastItem;