6 enum EditorState {inactiveEditor,emptyEditor,filledEditor};
10 class TextEditor : public QMainWindow {
18 void setShowWithMain (bool);
20 void setFontHint(const QString&);
21 QString getFontHint();
22 QString getFontHintDefault();
23 void setFilename (const QString&);
24 QString getFilename ();
25 void setFilenameHint (const QString&);
26 QString getFilenameHint ();
29 void setNote(const NoteObj ¬e);
31 bool findText(const QString &, const QTextDocument::FindFlags &); // find Text
34 void setupFileActions();
35 void setupEditActions();
36 void setupFormatActions();
37 void setupSettingsActions();
38 void closeEvent( QCloseEvent* );
42 void editorChanged(); // received when text() changed
43 void setText(const QString &); // set Text (by MapEditor)
44 void setInactive(); // Nothing can be entered
48 void textHasChanged();
50 void fontFamilyHasChanged();
51 void fontSizeHasChanged();
57 void textExportAsASCII();
60 void toggleFonthint();
66 void textFamily( const QString &f );
67 void textSize( const QString &p );
69 void textAlign(QAction*);
71 void fontChanged( const QFont &f );
72 void colorChanged( const QColor &c );
73 void formatChanged (const QTextCharFormat &f);
74 void alignmentChanged( int a );
75 void verticalAlignmentChanged(QTextCharFormat::VerticalAlignment);
77 void disableActions();
78 void setState (EditorState);
83 QPoint lastPos; // save last position of window
87 QBrush emptyPaper; // setting the background color
88 QBrush filledPaper; // depending on the state
89 QBrush inactivePaper; // depending on the state
91 bool showwithmain; // same visibility as mainwindow?
92 bool blockChangedSignal;
96 QComboBox *comboFont, *comboSize;
98 QAction *actionFileLoad,
107 *actionEditDeleteAll,
108 *actionFormatUseFixedFont,
109 *actionSettingsVarFont,
110 *actionSettingsFixedFont,
111 *actionSettingsFonthintDefault,
113 *actionTextUnderline,
116 *actionAlignSubScript,
117 *actionAlignSuperScript,