summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/editorchooser.h
blob: 20fba94e1b971c06b5dc30f22ada0a09984d2a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _EDITOR_CHOOSER_H_
#define  _EDITOR_CHOOSER_H_

#include <ktexteditor/editor.h>
#include <ktexteditor/document.h>

#include <tqwidget.h>

class KConfig;
class TQString;

namespace KTextEditor
{

class KTEXTEDITOR_EXPORT EditorChooser: public QWidget
{                    
  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(KConfig *cfg,const TQString& postfix);
	void writeAppSetting(KConfig *cfg,const TQString& postfix);

public slots:
	virtual void madeChoice(int pos,const TQString &choice);

};
*/

}
#endif