comparison gui/src/m-editor/file-editor-tab.cc @ 15080:4c4f2fb07a50 gui

Added find functionality in editor by to.lil. * find.png: Added find icon. * find-dialog.cc: Added find dialog. * find-dialog.h: Added find dialog. * file-editor-tab.cc: Integrated find dialog. * file-editor-tab.h: Added new method for find. * file-editor.cc: Added new actions, menus and toolbuttons. * file-editor.h: Added new method/slot for find.
author Jacob Dawid <jacob.dawid@gmail.com>
date Thu, 02 Aug 2012 11:08:45 +0200
parents 1ffaad442161
children bc801a44bb1f
comparison
equal deleted inserted replaced
15055:48ae6a7c69c1 15080:4c4f2fb07a50
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #include "file-editor-tab.h" 18 #include "file-editor-tab.h"
19 #include "file-editor.h" 19 #include "file-editor.h"
20 #include "find-dialog.h"
20 #include "octave-link.h" 21 #include "octave-link.h"
21 22
22 23
23 #include <Qsci/qsciapis.h> 24 #include <Qsci/qsciapis.h>
24 // Not available in the Debian repos yet! 25 // Not available in the Debian repos yet!
373 _edit_area->endUndoAction (); 374 _edit_area->endUndoAction ();
374 } 375 }
375 } 376 }
376 377
377 void 378 void
378 file_editor_tab::update_window_title(bool modified) 379 file_editor_tab::find ()
380 {
381 find_dialog dialog (_edit_area);
382 dialog.exec ();
383 }
384
385 void
386 file_editor_tab::update_window_title (bool modified)
379 { 387 {
380 QString title(_file_name); 388 QString title(_file_name);
381 if ( !_long_title ) 389 if ( !_long_title )
382 { 390 {
383 QFileInfo file(_file_name); 391 QFileInfo file(_file_name);