diff -r 2d4cc445a86a -r ee6b0f3a4c2f texteditor.h --- a/texteditor.h Mon Mar 23 09:06:51 2009 +0000 +++ b/texteditor.h Thu Mar 26 07:49:17 2009 +0000 @@ -6,6 +6,7 @@ enum EditorState {inactiveEditor,emptyEditor,filledEditor}; class MyTextEdit; +class NoteObj; class TextEditor : public QMainWindow { Q_OBJECT @@ -23,6 +24,10 @@ QString getFilename (); void setFilenameHint (const QString&); QString getFilenameHint (); + QString getText(); + NoteObj getNoteObj(); + void setNote(const NoteObj ¬e); + bool findText(const QString &, const QTextDocument::FindFlags &); // find Text protected: @@ -33,13 +38,10 @@ void closeEvent( QCloseEvent* ); -public: - QString getText(); - public slots: - void editorChanged(); // received when text() changed - void setText(QString); // set Text (by MapEditor) - void setInactive(); // Nothing can be entered + void editorChanged(); // received when text() changed + void setText(const QString &); // set Text (by MapEditor) + void setInactive(); // Nothing can be entered void editCopyAll(); signals: