Mercurial > hg > octave-nkf
comparison libgui/src/m-editor/file-editor-tab.h @ 18844:fac35875f6eb gui-release
update enabled status of undo/redo actions in the editor
* file-editor-tab.h: new inline function returning the qscintilla edit area
* octave-qscintilla.cc (constructor): connect textChanged signal to new private
slot text_changed;
(text_changed): new slot emitting a signal on undo/redo availability
* octave-qscintilla.h: new slot and new signal
* file-editor.cc (edit_status_update): new slot for updating undo/redo actions;
(construct): undo/redo actions disabled at the beginning;
(add_new_edit_tab): connect new slot to the signal from the qscintilla edit
area indicating undo/redo availability
* file-editor.h: new slot
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 27 Apr 2014 19:36:54 +0200 |
parents | 99e26cb0f87f |
children | 095fdef3d67c |
comparison
equal
deleted
inserted
replaced
18843:02b75b57ed80 | 18844:fac35875f6eb |
---|---|
44 public: | 44 public: |
45 | 45 |
46 file_editor_tab (const QString& directory = ""); | 46 file_editor_tab (const QString& directory = ""); |
47 | 47 |
48 ~file_editor_tab (void); | 48 ~file_editor_tab (void); |
49 | |
50 octave_qscintilla *qsci_edit_area () { return _edit_area; } | |
49 | 51 |
50 public slots: | 52 public slots: |
51 | 53 |
52 void update_window_title (bool modified); | 54 void update_window_title (bool modified); |
53 void handle_copy_available (bool enableCopy); | 55 void handle_copy_available (bool enableCopy); |