You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.7 KiB
73 lines
1.7 KiB
15 years ago
|
/*
|
||
|
* prefsmodule.h
|
||
|
*
|
||
|
* Copyright (C) 2003 Zack Rusin <zack@kde.org>
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||
|
* 02110-1301 USA
|
||
|
*/
|
||
|
#ifndef KOMPOSER_PREFSMODULE_H
|
||
|
#define KOMPOSER_PREFSMODULE_H
|
||
|
|
||
|
#include <kprefsdialog.h>
|
||
|
#include <kservice.h>
|
||
15 years ago
|
#include <tqmap.h>
|
||
15 years ago
|
class TQGroupBox;
|
||
|
class TQListViewItem;
|
||
15 years ago
|
|
||
|
class KAboutData;
|
||
|
class KComboBox;
|
||
|
|
||
|
namespace Komposer {
|
||
|
|
||
|
class PrefsModule : public KPrefsModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
14 years ago
|
TQ_OBJECT
|
||
15 years ago
|
public:
|
||
13 years ago
|
PrefsModule( TQWidget *parent=0, const char *name=0 );
|
||
15 years ago
|
virtual const KAboutData *aboutData() const;
|
||
|
};
|
||
|
|
||
|
class EditorSelection : public KPrefsWid
|
||
|
{
|
||
|
Q_OBJECT
|
||
14 years ago
|
TQ_OBJECT
|
||
15 years ago
|
|
||
|
public:
|
||
13 years ago
|
EditorSelection( const TQString &text, TQString &reference, TQWidget *parent );
|
||
15 years ago
|
~EditorSelection();
|
||
|
|
||
|
void readConfig();
|
||
|
void writeConfig();
|
||
|
|
||
15 years ago
|
TQGroupBox *groupBox() const;
|
||
15 years ago
|
|
||
|
private slots:
|
||
15 years ago
|
void slotActivated( const TQString & );
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
void setItem( const TQString & );
|
||
15 years ago
|
private:
|
||
15 years ago
|
TQString &m_reference;
|
||
15 years ago
|
|
||
15 years ago
|
TQGroupBox *m_box;
|
||
15 years ago
|
KComboBox *m_editorsCombo;
|
||
15 years ago
|
TQMap<TQString, KService::Ptr> m_services;
|
||
15 years ago
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|