libtdepim
prefsmodule.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KOMPOSER_PREFSMODULE_H
00022 #define KOMPOSER_PREFSMODULE_H
00023
00024 #include <kprefsdialog.h>
00025 #include <kservice.h>
00026 #include <tqmap.h>
00027 class TQGroupBox;
00028 class TQListViewItem;
00029
00030 class TDEAboutData;
00031 class KComboBox;
00032
00033 namespace Komposer {
00034
00035 class PrefsModule : public KPrefsModule
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 PrefsModule( TQWidget *parent=0, const char *name=0 );
00041 virtual const TDEAboutData *aboutData() const;
00042 };
00043
00044 class EditorSelection : public KPrefsWid
00045 {
00046 Q_OBJECT
00047
00048
00049 public:
00050 EditorSelection( const TQString &text, TQString &reference, TQWidget *parent );
00051 ~EditorSelection();
00052
00053 void readConfig();
00054 void writeConfig();
00055
00056 TQGroupBox *groupBox() const;
00057
00058 private slots:
00059 void slotActivated( const TQString & );
00060
00061 private:
00062 void setItem( const TQString & );
00063 private:
00064 TQString &m_reference;
00065
00066 TQGroupBox *m_box;
00067 KComboBox *m_editorsCombo;
00068 TQMap<TQString, KService::Ptr> m_services;
00069 };
00070 }
00071
00072 #endif
|