24 #if !defined (octave_main_window_h)
25 #define octave_main_window_h 1
28 #include <QMainWindow>
35 #include <QMdiSubWindow>
36 #include <QCloseEvent>
37 #include <QToolButton>
75 typedef std::pair <std::string, std::string>
name_pair;
122 const QString& new_name);
124 void new_file (
const QString& commands = QString ());
125 void open_file (
const QString& file_name = QString ());
169 const QString& file,
int line);
184 const QString& icon,
const QStringList& button,
185 const QString& defbutton,
186 const QStringList& role);
189 int width,
int height,
192 const QStringList& prompt,
193 const QString& ok_string,
194 const QString& cancel_string);
201 const QString& title,
const QString& filename,
202 const QString &dirname,
203 const QString& multimode);
210 void find_files (
const QString &startdir=QDir::currentPath ());
236 QAction *
add_action (QMenu *menu,
const QIcon &icon,
const QString &
text,
237 const char *member,
const QWidget *receiver = 0);
312 list.append (static_cast<octave_dock_widget *> (command_window));
313 list.append (static_cast<octave_dock_widget *> (history_window));
314 list.append (static_cast<octave_dock_widget *> (file_browser_window));
315 list.append (static_cast<octave_dock_widget *> (doc_browser_window));
316 #ifdef HAVE_QSCINTILLA
317 list.append (static_cast<octave_dock_widget *> (editor_window));
319 list.append (static_cast<octave_dock_widget *> (workspace_window));
431 int xserial = -1,
bool xconnect_to_web =
false)
454 #endif // MAINWINDOW_H
QAction * _clear_command_history_action
void show_about_octave(void)
void handle_octave_ready()
void handle_undo_request(void)
QAction * _octave_packages_action
QAction * _online_doc_action
void clear_history_callback(void)
void execute_command_callback()
void request_reload_settings()
void handle_insert_debugger_pointer_request(const QString &file, int line)
QSemaphore _cmd_processing
static const int current_directory_max_visible
void delete_debugger_pointer_signal(const QString &file, int line)
void pasteClipboard(void)
QAction * _documentation_action
QAction * _workspace_action
void queue_command(octave_cmd *cmd)
void set_global_shortcuts(bool enable)
void construct_debug_menu(QMenuBar *p)
void rename_variable_callback(const name_pair &names)
terminal_dock_widget * command_window
void handle_create_inputlayout(const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &)
void handle_create_filedialog(const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
void handle_clear_history_request(void)
QAction * _reset_windows_action
void display_release_notes(void)
void open_file(const QString &file_name=QString())
QAction * _debug_step_into
QAction * _about_octave_action
QList< octave_dock_widget * > dock_widget_list()
bool command_window_has_focus(void) const
bool _suppress_dbg_location
QAction * construct_window_menu_item(QMenu *p, const QString &item, bool checkable, QWidget *)
void establish_octave_link(void)
void open_file_signal(const QString &)
void exit_app(int status)
void copy_image_to_clipboard(const QString &file, bool remove_file)
QMenu * m_add_menu(QMenuBar *p, QString text)
QAction * _command_window_action
void clear_command_window_callback(void)
void handle_load_workspace_request(const QString &file=QString())
QAction * _show_documentation_action
static string_vector names(const map_type &lst)
QAction * _report_bug_action
QAction * add_action(QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=0)
void show_doc_signal(const QString &)
void confirm_shutdown_octave(void)
QToolBar * _main_tool_bar
void display_community_news(const QString &news)
void write_settings(void)
void load_and_display_community_news(int serial=-1)
octave_dock_widget * _active_dock
file_editor_interface * editor_window
void browse_for_directory(void)
files_dock_widget * file_browser_window
QList< octave_cmd * > _cmd_queue
bool _prevent_readline_conflicts
workspace_view * workspace_window
void find_files_finished(int)
QAction * _preferences_action
void handle_clear_workspace_request(void)
void change_directory_callback(const std::string &directory)
void update_breakpoint_marker_signal(bool insert, const QString &file, int line)
news_reader(const QString &xbase_url, const QString &xpage, int xserial=-1, bool xconnect_to_web=false)
void accept_directory_line_edit(void)
void message(const char *name, const char *fmt,...)
void resize_command_window_callback(void)
workspace_model * _workspace_model
QAction * _clear_clipboard_action
void set_screen_size(int ht, int wd)
void debug_step_into(void)
void construct_octave_qt_link(void)
void handle_create_dialog(const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
void command_window_undo_callback(void)
QHash< QMenu *, QStringList > _hash_menu_text
void handle_exit_debugger(void)
void open_octave_packages_page(void)
void change_directory(const QString &dir)
documentation_dock_widget * doc_browser_window
void handle_create_listview(const QStringList &list, const QString &mode, int width, int height, const QIntList &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string)
void settings_changed(const QSettings *)
void notice_settings(const QSettings *settings)
QAction * _debug_step_over
QAction * _contribute_action
void connect_visibility_changed(void)
QAction * _new_script_action
void execute_command_in_terminal(const QString &dir)
void clipboard_has_changed(QClipboard::Mode)
QComboBox * _current_directory_combo_box
QAction * _current_news_action
void execute_debug_callback()
void construct_file_menu(QMenuBar *p)
void save_workspace_callback(const std::string &file)
void open_developer_page(void)
void set_screen_size_callback(const int_pair &)
void new_figure_callback(void)
void copyClipboard_signal(void)
void clear_workspace_callback(void)
void closeEvent(QCloseEvent *closeEvent)
static const int current_directory_max_count
QPointer< settings_dialog > _settings_dlg
void queue_debug(QString command)
void configure_shortcuts()
QAction * _select_all_action
void enable_menu_shortcuts(bool enable)
void process_settings_dialog_request(const QString &desired_tab=QString())
void display_news_signal(const QString &news)
QAction * _new_figure_action
void handle_rename_variable_request(const QString &old_name, const QString &new_name)
void connect_uiwidget_links(void)
main_window(QWidget *parent=0, bool start_gui=true)
QString _release_notes_icon
void load_workspace_callback(const std::string &file)
QAction * _show_editor_action
void construct_documentation_menu(QMenu *p)
void run_file_callback(const QFileInfo &info)
void selectAll_signal(void)
QAction * _show_file_browser_action
QAction * _new_function_action
void debug_continue(void)
void open_online_documentation_page(void)
void handle_show_doc(const QString &file)
QAction * _clear_workspace_action
QAction * _debug_step_out
QAction * _developer_action
void editor_focus_changed(bool)
std::pair< int, int > int_pair
bool focus_console_after_command()
QAction * _file_browser_action
QAction * _release_notes_action
QAction * _clear_command_window_action
QAction * _find_files_action
void focus_command_window(void)
void set_window_layout(QSettings *settings)
void run_file_in_terminal(const QFileInfo &info)
void handle_new_figure_request(void)
void open_contribute_page(void)
QWidget * release_notes_window
void debug_step_over(void)
void open_bug_tracker_page(void)
void construct_news_menu(QMenuBar *p)
QSemaphore _dbg_processing
void debug_step_out(void)
history_dock_widget * history_window
QAction * _show_command_window_action
void construct_menu_bar(void)
void construct_window_menu(QMenuBar *p)
QList< octave_dock_widget * > get_dock_widget_list()
void find_files(const QString &startdir=QDir::currentPath())
QAction * _history_action
QAction * _show_workspace_action
void handle_clear_command_window_request(void)
void set_current_working_directory(const QString &dir)
void open_agora_page(void)
void init_terminal_size(void)
void new_file(const QString &commands=QString())
QAction * _show_history_action
void construct_help_menu(QMenuBar *p)
void init_terminal_size_signal(void)
void active_dock_changed(octave_dock_widget *, octave_dock_widget *)
void construct_tool_bar(void)
QAction * _load_workspace_action
QAction * _debug_continue
QAction * construct_debug_menu_item(const char *icon, const QString &item, const char *member)
void focus_changed(QWidget *w_old, QWidget *w_new)
QLineEdit * _current_directory_line_edit
void construct_new_menu(QMenu *p)
std::pair< std::string, std::string > name_pair
void new_file_signal(const QString &)
void construct_edit_menu(QMenuBar *p)
void handle_enter_debugger(void)
void change_directory_up(void)
find_files_dialog * find_files_dlg
void pasteClipboard_signal(void)
QWidget * community_news_window
QAction * _ondisk_doc_action
void prepare_to_exit(void)
void handle_save_workspace_request(void)
octave_qt_link * _octave_qt_link
void add_actions_signal(QList< QAction * > action_list)
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line)
void handle_delete_debugger_pointer_request(const QString &file, int line)
void set_global_edit_shortcuts(bool enable)
QAction * _save_workspace_action
void insert_debugger_pointer_signal(const QString &file, int line)
void report_status_message(const QString &statusMessage)