comparison libgui/src/m-editor/file-editor.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 64bd9afac22c
comparison
equal deleted inserted replaced
18843:02b75b57ed80 18844:fac35875f6eb
212 void zoom_in (bool); 212 void zoom_in (bool);
213 void zoom_out (bool); 213 void zoom_out (bool);
214 void zoom_normal (bool); 214 void zoom_normal (bool);
215 215
216 void create_context_menu (QMenu *); 216 void create_context_menu (QMenu *);
217 void edit_status_update (bool, bool);
217 218
218 protected: 219 protected:
219 220
220 void dragEnterEvent(QDragEnterEvent *event); 221 void dragEnterEvent(QDragEnterEvent *event);
221 void dropEvent(QDropEvent *event); 222 void dropEvent(QDropEvent *event);