texteditor.h
changeset 746 ee6b0f3a4c2f
parent 498 2c40ff8ca7ba
child 804 14f2b1b15242
     1.1 --- a/texteditor.h	Mon Mar 23 09:06:51 2009 +0000
     1.2 +++ b/texteditor.h	Thu Mar 26 07:49:17 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 &note);
    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: