comparison libgui/src/m-editor/find-dialog.h @ 15988:38348a6c3db0

gui: initialize search text in the find dialog with selected text in editor file * find_dialog.h: new function init_search_text () * find_dialog.cc (init_search_text): new function, initializes the search text of the file dialog with the slected text of the related editor tab * file-editor-tab.cc (find): call init_search_text after activating the find dialog
author Torsten <ttl@justmail.de>
date Thu, 31 Jan 2013 19:28:23 +0100
parents 501a9cc2c68f
children d07aeecb2d22
comparison
equal deleted inserted replaced
15987:47a4c92924a7 15988:38348a6c3db0
55 class find_dialog : public QDialog 55 class find_dialog : public QDialog
56 { 56 {
57 Q_OBJECT 57 Q_OBJECT
58 public: 58 public:
59 find_dialog (QsciScintilla* edit_area, QWidget *parent = 0); 59 find_dialog (QsciScintilla* edit_area, QWidget *parent = 0);
60 void init_search_text ();
60 61
61 private slots: 62 private slots:
62 void search_next (); 63 void search_next ();
63 void replace (); 64 void replace ();
64 void replace_all (); 65 void replace_all ();