Changeset View
Changeset View
Standalone View
Standalone View
src/noteedit.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 112 | protected: | |||
---|---|---|---|---|---|
116 | void cancel() { | 116 | void cancel() { | ||
117 | m_canceled = true; | 117 | m_canceled = true; | ||
118 | } | 118 | } | ||
119 | void setInlineEditor(QWidget *inlineEditor); | 119 | void setInlineEditor(QWidget *inlineEditor); | ||
120 | public: | 120 | public: | ||
121 | virtual void validate() {} | 121 | virtual void validate() {} | ||
122 | virtual void autoSave(bool /*toFileToo*/) {} // Same as validate(), but does not precede editor close and is triggered either while the editor widget changed size or after 3 seconds of inactivity. | 122 | virtual void autoSave(bool /*toFileToo*/) {} // Same as validate(), but does not precede editor close and is triggered either while the editor widget changed size or after 3 seconds of inactivity. | ||
123 | 123 | | |||
124 | signals: | 124 | Q_SIGNALS: | ||
125 | void askValidation(); | 125 | void askValidation(); | ||
126 | void mouseEnteredEditorWidget(); | 126 | void mouseEnteredEditorWidget(); | ||
127 | 127 | | |||
128 | public: | 128 | public: | ||
129 | static NoteEditor* editNoteContent(NoteContent *noteContent, QWidget *parent); | 129 | static NoteEditor* editNoteContent(NoteContent *noteContent, QWidget *parent); | ||
130 | }; | 130 | }; | ||
131 | 131 | | |||
132 | class TextEditor : public NoteEditor | 132 | class TextEditor : public NoteEditor | ||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |