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.
59 lines
1.5 KiB
59 lines
1.5 KiB
15 years ago
|
#ifndef _EDITOR_CHOOSER_H_
|
||
|
#define _EDITOR_CHOOSER_H_
|
||
|
|
||
12 years ago
|
#include <tdetexteditor/editor.h>
|
||
|
#include <tdetexteditor/document.h>
|
||
15 years ago
|
|
||
14 years ago
|
#include <tqwidget.h>
|
||
15 years ago
|
|
||
12 years ago
|
class TDEConfig;
|
||
14 years ago
|
class TQString;
|
||
15 years ago
|
|
||
|
namespace KTextEditor
|
||
|
{
|
||
|
|
||
14 years ago
|
class KTEXTEDITOR_EXPORT EditorChooser: public TQWidget
|
||
15 years ago
|
{
|
||
|
friend class PrivateEditorChooser;
|
||
|
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
14 years ago
|
EditorChooser(TQWidget *parent=0,const char *name=0);
|
||
15 years ago
|
virtual ~EditorChooser();
|
||
|
|
||
|
/* void writeSysDefault();*/
|
||
|
|
||
14 years ago
|
void readAppSetting(const TQString& postfix=TQString::null);
|
||
|
void writeAppSetting(const TQString& postfix=TQString::null);
|
||
15 years ago
|
|
||
14 years ago
|
static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true);
|
||
14 years ago
|
static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
|
||
15 years ago
|
private:
|
||
|
class PrivateEditorChooser *d;
|
||
|
};
|
||
|
|
||
|
/*
|
||
|
class EditorChooserBackEnd: public ComponentChooserPlugin {
|
||
|
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
EditorChooserBackEnd(TQObject *parent=0, const char *name=0);
|
||
15 years ago
|
virtual ~EditorChooserBackEnd();
|
||
|
|
||
14 years ago
|
virtual TQWidget *widget(TQWidget *);
|
||
|
virtual const TQStringList &choices();
|
||
15 years ago
|
virtual void saveSettings();
|
||
|
|
||
12 years ago
|
void readAppSetting(TDEConfig *cfg,const TQString& postfix);
|
||
|
void writeAppSetting(TDEConfig *cfg,const TQString& postfix);
|
||
15 years ago
|
|
||
|
public slots:
|
||
14 years ago
|
virtual void madeChoice(int pos,const TQString &choice);
|
||
15 years ago
|
|
||
|
};
|
||
|
*/
|
||
|
|
||
|
}
|
||
|
#endif
|