libkdepim
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 KAboutData;
00031 class KComboBox;
00032
00033 namespace Komposer {
00034
00035 class PrefsModule : public KPrefsModule
00036 {
00037 Q_OBJECT
00038 public:
00039 PrefsModule( TQWidget *parent=0, const char *name=0 );
00040 virtual const KAboutData *aboutData() const;
00041 };
00042
00043 class EditorSelection : public KPrefsWid
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 EditorSelection( const TQString &text, TQString &reference, TQWidget *parent );
00049 ~EditorSelection();
00050
00051 void readConfig();
00052 void writeConfig();
00053
00054 TQGroupBox *groupBox() const;
00055
00056 private slots:
00057 void slotActivated( const TQString & );
00058
00059 private:
00060 void setItem( const TQString & );
00061 private:
00062 TQString &m_reference;
00063
00064 TQGroupBox *m_box;
00065 KComboBox *m_editorsCombo;
00066 TQMap<TQString, KService::Ptr> m_services;
00067 };
00068 }
00069
00070 #endif
|