kcmkabc.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <qcombobox.h>
00022 #include <qstringlist.h>
00023 #include <qwidget.h>
00024
00025 #include <kcmodule.h>
00026 #include <klineedit.h>
00027 #include <klistview.h>
00028 #include <kpushbutton.h>
00029
00030 class KAboutData;
00031
00032 #ifndef KCMKABC_H
00033 #define KCMKABC_H
00034
00035 class ConfigPage : public QWidget
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 ConfigPage( QWidget *parent = 0, const char *name = 0 );
00041
00042 void load();
00043 void save();
00044 void defaults();
00045
00046
00047 public slots:
00048 void slotAdd();
00049 void slotRemove();
00050 void slotEdit();
00051 void slotConvert();
00052 void slotStandard();
00053 void slotSelectionChanged();
00054
00055 signals:
00056 void changed(bool);
00057
00058 private:
00059 KConfig *config;
00060
00061 KListView* mListView;
00062 QPushButton* mAddButton;
00063 QPushButton* mRemoveButton;
00064 QPushButton* mEditButton;
00065 QPushButton* mConvertButton;
00066 QPushButton* mStandardButton;
00067
00068 QListViewItem* mLastItem;
00069 };
00070
00071 class KCMkabc : public KCModule
00072 {
00073 Q_OBJECT
00074
00075 public:
00076 KCMkabc( QWidget *parent = 0, const char *name = 0 );
00077
00078 void load();
00079 void save();
00080 void defaults();
00081 const KAboutData* aboutData() const;
00082
00083
00084 private:
00085 ConfigPage *mConfigPage;
00086 };
00087
00088 class ConfigViewItem : public QObject, public QCheckListItem
00089 {
00090 Q_OBJECT
00091
00092 public:
00093 ConfigViewItem( QListView *parent, QString name, QString type,
00094 QString identifier = QString::null );
00095
00096 void setStandard( bool value );
00097 bool standard();
00098
00099 QString key;
00100 QString type;
00101 bool readOnly;
00102
00103 signals:
00104 void changed( bool );
00105
00106 protected:
00107 void stateChange( bool value );
00108
00109 private:
00110 bool isStandard;
00111 };
00112
00113
00114 #endif
This file is part of the documentation for kdelibs Version 3.1.0.