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.
43 lines
833 B
43 lines
833 B
15 years ago
|
|
||
|
#ifndef __notepad_h__
|
||
|
#define __notepad_h__
|
||
|
|
||
12 years ago
|
#include <tdeparts/genericfactory.h>
|
||
|
#include <tdeparts/part.h>
|
||
15 years ago
|
|
||
12 years ago
|
class TDEAboutData;
|
||
15 years ago
|
class TQMultiLineEdit;
|
||
15 years ago
|
|
||
|
/**
|
||
|
* Who said writing a part should be complex ? :-)
|
||
|
* Here is a very simple kedit-like part
|
||
|
* @internal
|
||
|
*/
|
||
|
class NotepadPart : public KParts::ReadWritePart
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
NotepadPart( TQWidget*, const char* widgetName,
|
||
|
TQObject* parent, const char* name,
|
||
|
const TQStringList& args = TQStringList() );
|
||
15 years ago
|
virtual ~NotepadPart();
|
||
|
|
||
|
virtual void setReadWrite( bool rw );
|
||
|
|
||
12 years ago
|
static TDEAboutData* createAboutData();
|
||
15 years ago
|
|
||
|
protected:
|
||
|
virtual bool openFile();
|
||
|
virtual bool saveFile();
|
||
|
|
||
|
protected slots:
|
||
|
void slotSearchReplace();
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQMultiLineEdit * m_edit;
|
||
15 years ago
|
};
|
||
|
|
||
|
typedef KParts::GenericFactory<NotepadPart> NotepadFactory;
|
||
|
|
||
|
#endif
|