1.1 --- a/texteditor.h Wed May 30 15:23:07 2007 +0000
1.2 +++ b/texteditor.h Mon May 18 11:22:41 2009 +0000
1.3 @@ -6,6 +6,7 @@
1.4 enum EditorState {inactiveEditor,emptyEditor,filledEditor};
1.5
1.6 class MyTextEdit;
1.7 +class NoteObj;
1.8
1.9 class TextEditor : public QMainWindow {
1.10 Q_OBJECT
1.11 @@ -23,6 +24,10 @@
1.12 QString getFilename ();
1.13 void setFilenameHint (const QString&);
1.14 QString getFilenameHint ();
1.15 + QString getText();
1.16 + NoteObj getNoteObj();
1.17 + void setNote(const NoteObj ¬e);
1.18 +
1.19 bool findText(const QString &, const QTextDocument::FindFlags &); // find Text
1.20
1.21 protected:
1.22 @@ -33,13 +38,10 @@
1.23 void closeEvent( QCloseEvent* );
1.24
1.25
1.26 -public:
1.27 - QString getText();
1.28 -
1.29 public slots:
1.30 - void editorChanged(); // received when text() changed
1.31 - void setText(QString); // set Text (by MapEditor)
1.32 - void setInactive(); // Nothing can be entered
1.33 + void editorChanged(); // received when text() changed
1.34 + void setText(const QString &); // set Text (by MapEditor)
1.35 + void setInactive(); // Nothing can be entered
1.36 void editCopyAll();
1.37
1.38 signals: