Mercurial > octave-dspies
comparison libgui/src/m-editor/file-editor-tab.cc @ 18686:74ef7fed8b9a gui-release
simplify some code by using scintilla internal commands
* file-editor-tab.cc (undo, redo, copy, cut, selectall): remove
* file-editor-tab.h: remove undo, redo, copy, cut, selectall
* file-editor.cc (request_undo, request_redo, request_copy, request_cut,
request_paste, reuqest_selectall): replace particular signal by common
signal that sends the scintilla command as paramter;
(add_new_edit_tab): remove the connects of the obsolete signals
* file-editor.h: remove obsolete signals
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 27 Apr 2014 15:13:05 +0200 |
parents | 86eca5d178a6 |
children | 99e26cb0f87f |
comparison
equal
deleted
inserted
replaced
18685:03edfcd943db | 18686:74ef7fed8b9a |
---|---|
407 return; | 407 return; |
408 _edit_area->setFocus (); | 408 _edit_area->setFocus (); |
409 } | 409 } |
410 | 410 |
411 void | 411 void |
412 file_editor_tab::undo (const QWidget *ID) | |
413 { | |
414 if (ID != this) | |
415 return; | |
416 | |
417 _edit_area->undo (); | |
418 } | |
419 | |
420 void | |
421 file_editor_tab::redo (const QWidget *ID) | |
422 { | |
423 if (ID != this) | |
424 return; | |
425 | |
426 _edit_area->redo (); | |
427 } | |
428 | |
429 void | |
430 file_editor_tab::copy (const QWidget *ID) | |
431 { | |
432 if (ID != this) | |
433 return; | |
434 | |
435 _edit_area->copy (); | |
436 } | |
437 | |
438 void | |
439 file_editor_tab::cut (const QWidget *ID) | |
440 { | |
441 if (ID != this) | |
442 return; | |
443 | |
444 _edit_area->cut (); | |
445 } | |
446 | |
447 void | |
448 file_editor_tab::paste (const QWidget *ID) | |
449 { | |
450 if (ID != this) | |
451 return; | |
452 | |
453 _edit_area->paste (); | |
454 } | |
455 | |
456 void | |
457 file_editor_tab::select_all (const QWidget *ID) | |
458 { | |
459 if (ID != this) | |
460 return; | |
461 | |
462 _edit_area->selectAll (); | |
463 } | |
464 | |
465 | |
466 void | |
467 file_editor_tab::context_help (const QWidget *ID, bool doc) | 412 file_editor_tab::context_help (const QWidget *ID, bool doc) |
468 { | 413 { |
469 if (ID != this) | 414 if (ID != this) |
470 return; | 415 return; |
471 | 416 |