summaryrefslogtreecommitdiffstats
path: root/interfaces/tdetexteditor/editorchooser.h
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
committerDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
commit7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch)
treec76702a7f6310fbe9d437e347535422e836e94e9 /interfaces/tdetexteditor/editorchooser.h
parenta2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff)
parent27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff)
downloadtdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz
tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'interfaces/tdetexteditor/editorchooser.h')
-rw-r--r--interfaces/tdetexteditor/editorchooser.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/interfaces/tdetexteditor/editorchooser.h b/interfaces/tdetexteditor/editorchooser.h
new file mode 100644
index 000000000..251776c10
--- /dev/null
+++ b/interfaces/tdetexteditor/editorchooser.h
@@ -0,0 +1,58 @@
+#ifndef _EDITOR_CHOOSER_H_
+#define _EDITOR_CHOOSER_H_
+
+#include <tdetexteditor/editor.h>
+#include <tdetexteditor/document.h>
+
+#include <tqwidget.h>
+
+class TDEConfig;
+class TQString;
+
+namespace KTextEditor
+{
+
+class KTEXTEDITOR_EXPORT EditorChooser: public TQWidget
+{
+ friend class PrivateEditorChooser;
+
+ Q_OBJECT
+
+ public:
+ EditorChooser(TQWidget *parent=0,const char *name=0);
+ virtual ~EditorChooser();
+
+ /* void writeSysDefault();*/
+
+ void readAppSetting(const TQString& postfix=TQString::null);
+ void writeAppSetting(const TQString& postfix=TQString::null);
+
+ static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true);
+ static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
+ private:
+ class PrivateEditorChooser *d;
+};
+
+/*
+class EditorChooserBackEnd: public ComponentChooserPlugin {
+
+Q_OBJECT
+public:
+ EditorChooserBackEnd(TQObject *parent=0, const char *name=0);
+ virtual ~EditorChooserBackEnd();
+
+ virtual TQWidget *widget(TQWidget *);
+ virtual const TQStringList &choices();
+ virtual void saveSettings();
+
+ void readAppSetting(TDEConfig *cfg,const TQString& postfix);
+ void writeAppSetting(TDEConfig *cfg,const TQString& postfix);
+
+public slots:
+ virtual void madeChoice(int pos,const TQString &choice);
+
+};
+*/
+
+}
+#endif