comparison libgui/src/files-dock-widget.h @ 16635:25e418d23a4b

fix running files from file browser's context menu * main-window.cc(run_file_in_terminal): new slot for run_file_signal (run_file_callback): callback for running files after checking the path * main-window.h: new functions run_file_in_terminal und run_file_callback) * files-dock-widget.cc(constructor): connect signal to slot for running files (contextmenu_run): emit run_file_signal with QFileInfo as parameter * files-dock-widget.h: run_file_signal has QFileInfo as parameter * file-editor-tab.cc: removed function run_file_callback (run_file): get file info of current file and emit run_file_signal (file_in_path): moved to octave_qt_link allowiung access from other widgets, updated calls to this functions * file-editor-tab.h: new run_file_signal with QFileInfo, removed functions run_file_callback and file_in_path * file-editor.cc(add_file_editor_tab): connect signal to slot for running files * octave-qt-link.cc/h(file_in_path): moved from file-editor-tab and made static
author Torsten <ttl@justmail.de>
date Fri, 10 May 2013 21:01:02 +0200
parents 38fef1e833ea
children d4bcb38ad056
comparison
equal deleted inserted replaced
16634:2510fffc05e1 16635:25e418d23a4b
110 110
111 /** Emitted, whenever the user requested to load a file. */ 111 /** Emitted, whenever the user requested to load a file. */
112 void load_file_signal (const QString& fileName); 112 void load_file_signal (const QString& fileName);
113 113
114 /** Emitted, whenever the user requested to run a file. */ 114 /** Emitted, whenever the user requested to run a file. */
115 void run_file_signal (const QString& fileName); 115 void run_file_signal (const QFileInfo& info);
116 116
117 private: 117 private:
118 void process_new_file(const QString &parent_name); 118 void process_new_file(const QString &parent_name);
119 void process_new_dir(const QString &parent_name); 119 void process_new_dir(const QString &parent_name);
120 void process_set_current_dir(const QString &parent_name); 120 void process_set_current_dir(const QString &parent_name);