26 #if ! defined (octave_main_window_h)
27 #define octave_main_window_h 1
30 #include <QCloseEvent>
32 #include <QMainWindow>
39 #include <QToolButton>
40 #include <QTranslator>
78 typedef std::pair <std::string, std::string>
name_pair;
118 int line,
const QString& cond);
148 void modify_path (
const QStringList& dir_list,
bool rm,
bool subdirs);
160 bool update_by_worker =
false);
166 bool force_all =
false);
192 const QString& curr_dir,
int line);
197 const QString& file,
int line,
198 const QString& cond);
225 void find_files (
const QString& startdir = QDir::currentPath ());
276 const QString& text,
const char *member,
277 const QWidget *receiver =
nullptr);
Base class for Octave interfaces that use Qt.
Represents the main window.
void pasteClipboard_signal(void)
void open_contribute_page(void)
void profiler_session_resume(void)
bool m_editor_is_octave_file
Some class global flags.
void new_file_signal(const QString &)
QAction * m_debug_step_into
QHash< QMenu *, QStringList > m_hash_menu_text
void set_default_geometry(void)
find_files_dialog * m_find_files_dlg
Find files dialog.
QAction * m_clear_workspace_action
void request_new_script(const QString &commands=QString())
QPointer< history_dock_widget > m_history_window
Dock widgets.
void open_donate_page(void)
void file_remove_proxy(const QString &o, const QString &n)
void browse_for_directory(void)
std::pair< int, int > int_pair
static const int current_directory_max_count
For Toolbars.
QPointer< settings_dialog > m_settings_dlg
Settings dialog as guarded pointer (set to 0 when deleted).
QAction * m_select_all_action
bool m_suppress_dbg_location
Some class global flags.
void request_new_function(bool triggered=true)
void profiler_session(void)
void adopt_documentation_widget(void)
base_qobject & m_octave_qobj
QAction * m_show_history_action
QList< octave_dock_widget * > dock_widget_list(void)
void run_file_in_terminal(const QFileInfo &info)
void pasteClipboard(void)
void settings_changed(const gui_settings *)
QString m_default_encoding
octave_dock_widget * m_previous_dock
void focus_window(const QString &win_name)
void set_window_layout(gui_settings *settings)
QAction * m_octave_packages_action
QAction * m_editor_action
void update_gui_lexer_signal(bool)
void construct_window_menu(QMenuBar *p)
QAction * m_clear_clipboard_action
octave_dock_widget * m_active_dock
bool m_closing
Flag for closing the whole application.
void handle_delete_debugger_pointer_request(const QString &file, int line)
void report_status_message(const QString &statusMessage)
QPalette getFusionDarkPalette()
void open_bug_tracker_page(void)
void close_gui_signal(void)
void show_about_octave(void)
void set_current_working_directory(const QString &dir)
void add_actions_signal(QList< QAction * > action_list)
void process_settings_dialog_request(const QString &desired_tab=QString())
void debug_step_out(void)
QAction * m_debug_continue
void copyClipboard_signal(void)
QAction * m_save_workspace_action
void step_into_file_signal(void)
void construct_tool_bar(void)
void closeEvent(QCloseEvent *closeEvent)
QAction * m_workspace_action
QWidget * m_active_editor
QAction * m_ondisk_doc_action
QAction * m_new_figure_action
QPointer< file_editor_interface > m_editor_window
Dock widgets.
void handle_profiler_status_update(bool)
void insert_debugger_pointer_signal(const QString &file, int line)
void edit_mfile(const QString &, int)
void warning_function_not_found(const QString &message)
void focus_console_after_command(void)
void construct_debug_menu(QMenuBar *p)
void handle_clear_command_window_request(void)
void handle_edit_mfile_request(const QString &name, const QString &file, const QString &curr_dir, int line)
QAction * m_history_action
void change_directory_up(void)
void clear_clipboard()
Handling the clipboard.
void handle_undo_request(void)
void adopt_history_widget(void)
void construct_central_widget(void)
void active_dock_changed(octave_dock_widget *, octave_dock_widget *)
QAction * m_documentation_action
void handle_load_workspace_request(const QString &file=QString())
void adopt_dock_widgets(void)
bool m_editor_has_tabs
Some class global flags.
QAction * m_contribute_action
void handle_set_path_dialog_request(void)
QAction * m_show_editor_action
void warning_function_not_found_signal(const QString &message)
void debug_step_into(void)
void restore_create_file_setting(void)
QPointer< documentation_dock_widget > m_doc_browser_window
Dock widgets.
QStatusBar * m_status_bar
Toolbar.
void adopt_editor_widget(void)
QAction * construct_window_menu_item(QMenu *p, const QString &item, bool checkable, QWidget *)
QAction * m_new_function_action
void construct_documentation_menu(QMenu *p)
QAction * m_reset_windows_action
void adopt_terminal_widget(void)
main_window(base_qobject &oct_qobj)
void execute_command_signal(const QString &command)
void delete_debugger_pointer_signal(const QString &file, int line)
void notice_settings(const gui_settings *settings, bool update_by_worker=false)
void handle_clear_workspace_request(void)
void write_settings(void)
void update_breakpoint_marker_signal(bool insert, const QString &file, int line, const QString &cond)
void editor_focus_changed(bool)
void editor_tabs_changed(bool, bool)
void handle_insert_debugger_pointer_request(const QString &file, int line)
void disable_menu_shortcuts(bool disable)
QAction * m_find_files_action
void adopt_variable_editor_widget(void)
void construct_menu_bar(void)
QAction * m_new_script_action
void construct_edit_menu(QMenuBar *p)
void open_file_signal(const QString &file, const QString &enc, int line)
QPalette m_default_palette
void handle_open_any_request(const QString &file=QString())
void selectAll_signal(void)
QPointer< variable_editor > m_variable_editor_window
Dock widgets.
QAction * m_debug_step_over
void make_dock_widget_connections(octave_dock_widget *dw)
bool m_prevent_readline_conflicts_menu
Some class global flags.
QPointer< set_path_dialog > m_set_path_dlg
Set path dialog.
std::pair< std::string, std::string > name_pair
void handle_clear_history_request(void)
void show_community_news_signal(int serial)
void modify_path(const QStringList &dir_list, bool rm, bool subdirs)
void find_files(const QString &startdir=QDir::currentPath())
Find files dialog.
QAction * m_profiler_resume
QLineEdit * m_current_directory_line_edit
For Toolbars.
void go_to_previous_widget(void)
QAction * m_previous_dock_action
void handle_new_figure_request(void)
QAction * m_profiler_show
QAction * m_current_news_action
void accept_directory_line_edit(void)
QMenu * m_add_menu(QMenuBar *p, QString text)
QAction * m_command_window_action
QAction * m_release_notes_action
void debug_step_over(void)
void focus_command_window(void)
void interpreter_event(const fcn_callback &fcn)
QAction * m_variable_editor_action
QAction * m_clear_command_window_action
void prepare_to_exit(void)
external_editor_interface * m_external_editor
void request_reload_settings(void)
void configure_shortcuts(void)
QAction * construct_debug_menu_item(const char *icon, const QString &item, const char *member)
void interpreter_event(const meth_callback &meth)
bool confirm_shutdown(void)
QList< octave_dock_widget * > get_dock_widget_list(void)
Returns a list of dock widgets.
void construct_news_menu(QMenuBar *p)
static const int current_directory_max_visible
For Toolbars.
QAction * m_preferences_action
QAction * m_show_variable_editor_action
void request_open_file(void)
void clipboard_has_changed(void)
Handling the clipboard.
QAction * m_show_documentation_action
void handle_enter_debugger(void)
void init_terminal_size_signal(void)
QAction * m_about_octave_action
void handle_save_workspace_request(void)
QComboBox * m_current_directory_combo_box
For Toolbars.
QAction * add_action(QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=nullptr)
void adopt_file_browser_widget(void)
void construct_octave_qt_link(void)
bool m_prevent_readline_conflicts
Some class global flags.
QAction * m_debug_step_out
void find_files_finished(int)
Find files dialog.
void init_window_menu(void)
void construct_new_menu(QMenu *p)
QAction * m_profiler_start
QPointer< terminal_dock_widget > m_command_window
Dock widgets.
QAction * m_developer_action
QAction * m_show_workspace_action
void open_octave_packages_page(void)
void construct_file_menu(QMenuBar *p)
QWidget * m_release_notes_window
Release notes window.
led_indicator * m_profiler_status_indicator
void execute_command_in_terminal(const QString &dir)
void init_terminal_size(void)
void set_file_encoding(const QString &new_encoding)
bool command_window_has_focus(void) const
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)
void do_reset_windows(bool show=true, bool save=true, bool force_all=false)
QAction * m_show_command_window_action
QAction * m_load_workspace_action
void resize_dock(QDockWidget *dw, int width, int height)
void handle_gui_status_update(const QString &feature, const QString &status)
QAction * m_clear_command_history_action
void open_online_documentation_page(void)
void focus_changed(QWidget *w_old, QWidget *w_new)
QAction * m_profiler_stop
void show_release_notes_signal(void)
QAction * m_show_file_browser_action
void open_file_signal(const QString &)
void update_default_encoding(const QString &default_encoding)
void set_screen_size(int ht, int wd)
void construct_help_menu(QMenuBar *p)
void adopt_workspace_widget(void)
void request_open_files(const QStringList &open_file_names)
QPointer< files_dock_widget > m_file_browser_window
Dock widgets.
QAction * m_report_bug_action
QToolBar * m_main_tool_bar
void handle_exit_debugger(void)
void update_octave_directory(const QString &dir)
QMenuBar * m_editor_menubar
void handle_octave_ready()
QAction * m_file_browser_action
QPointer< workspace_view > m_workspace_window
Dock widgets.
void construct_tools_menu(QMenuBar *p)
QAction * m_set_path_action
QAction * m_online_doc_action
void debug_continue(void)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void message(const char *name, const char *fmt,...)
std::function< void(void)> fcn_callback
std::function< void(interpreter &)> meth_callback