prefsmodule.h
1 /*
2  * prefsmodule.h
3  *
4  * Copyright (C) 2003 Zack Rusin <zack@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #ifndef KOMPOSER_PREFSMODULE_H
22 #define KOMPOSER_PREFSMODULE_H
23 
24 #include <kprefsdialog.h>
25 #include <kservice.h>
26 #include <tqmap.h>
27 class TQGroupBox;
28 class TQListViewItem;
29 
30 class TDEAboutData;
31 class KComboBox;
32 
33 namespace Komposer {
34 
35  class PrefsModule : public KPrefsModule
36  {
37  TQ_OBJECT
38 
39  public:
40  PrefsModule( TQWidget *parent=0, const char *name=0 );
41  virtual const TDEAboutData *aboutData() const;
42  };
43 
44  class EditorSelection : public KPrefsWid
45  {
46  TQ_OBJECT
47 
48 
49  public:
50  EditorSelection( const TQString &text, TQString &reference, TQWidget *parent );
51  ~EditorSelection();
52 
53  void readConfig();
54  void writeConfig();
55 
56  TQGroupBox *groupBox() const;
57 
58  private slots:
59  void slotActivated( const TQString & );
60 
61  private:
62  void setItem( const TQString & );
63  private:
64  TQString &m_reference;
65 
66  TQGroupBox *m_box;
67  KComboBox *m_editorsCombo;
68  TQMap<TQString, KService::Ptr> m_services;
69  };
70 }
71 
72 #endif
Base class for GUI control elements used by KPrefsDialog.
Definition: kprefsdialog.h:59
attachment.h
Definition: attachment.h:29