diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /interfaces/ktexteditor/editorchooser.h | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/ktexteditor/editorchooser.h')
-rw-r--r-- | interfaces/ktexteditor/editorchooser.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/interfaces/ktexteditor/editorchooser.h b/interfaces/ktexteditor/editorchooser.h new file mode 100644 index 000000000..3feb73b62 --- /dev/null +++ b/interfaces/ktexteditor/editorchooser.h @@ -0,0 +1,58 @@ +#ifndef _EDITOR_CHOOSER_H_ +#define _EDITOR_CHOOSER_H_ + +#include <ktexteditor/editor.h> +#include <ktexteditor/document.h> + +#include <qwidget.h> + +class KConfig; +class QString; + +namespace KTextEditor +{ + +class KTEXTEDITOR_EXPORT EditorChooser: public QWidget +{ + friend class PrivateEditorChooser; + + Q_OBJECT + + public: + EditorChooser(QWidget *parent=0,const char *name=0); + virtual ~EditorChooser(); + + /* void writeSysDefault();*/ + + void readAppSetting(const QString& postfix=QString::null); + void writeAppSetting(const QString& postfix=QString::null); + + static KTextEditor::Document *createDocument(QObject* parent=0,const char *name=0,const QString& postfix=QString::null, bool fallBackToKatePart=true); + static KTextEditor::Editor *createEditor(QWidget *parentWidget,QObject *parent,const char* widgetName=0,const char* name=0,const QString& postfix=QString::null,bool fallBackToKatePart=true); + private: + class PrivateEditorChooser *d; +}; + +/* +class EditorChooserBackEnd: public ComponentChooserPlugin { + +Q_OBJECT +public: + EditorChooserBackEnd(QObject *parent=0, const char *name=0); + virtual ~EditorChooserBackEnd(); + + virtual QWidget *widget(QWidget *); + virtual const QStringList &choices(); + virtual void saveSettings(); + + void readAppSetting(KConfig *cfg,const QString& postfix); + void writeAppSetting(KConfig *cfg,const QString& postfix); + +public slots: + virtual void madeChoice(int pos,const QString &choice); + +}; +*/ + +} +#endif |