24 #if ! defined (octave_main_window_h) 25 #define octave_main_window_h 1 28 #include <QMainWindow> 34 #include <QCloseEvent> 35 #include <QToolButton> 131 int line,
const QString& cond);
153 const QString& new_name);
155 void open_file (
const QString& file_name = QString (),
int line = -1);
199 const QString& curr_dir,
int line);
205 const QString& cond);
220 const QString& icon,
const QStringList& button,
221 const QString& defbutton,
222 const QStringList& role);
225 int width,
int height,
228 const QStringList& prompt,
229 const QString& ok_string,
230 const QString& cancel_string);
237 const QString& title,
240 const QString& multimode);
251 void find_files (
const QString& startdir = QDir::currentPath ());
300 const QString&
text,
const char *member,
301 const QWidget *receiver =
nullptr);
491 int serial = -1,
bool connect_to_web =
false)
QAction * m_debug_continue
void request_new_function(bool triggered=true)
QAction * m_contribute_action
workspace_model * m_workspace_model
void clear_history_callback(void)
void handle_edit_mfile_request(const QString &name, const QString &file, const QString &curr_dir, int line)
static const int current_directory_max_visible
For Toolbars.
void handle_clear_command_window_request(void)
void unregister_doc_signal(const QString &)
void construct_edit_menu(QMenuBar *p)
void find_files(const QString &startdir=QDir::currentPath())
Find files dialog.
std::pair< std::string, std::string > name_pair
void handle_register_doc(const QString &file)
void open_online_documentation_page(void)
variable_editor * m_variable_editor_window
Dock widgets.
void set_screen_size_callback(const int_pair &)
terminal_dock_widget * m_command_window
Dock widgets.
For example cd octave end example noindent changes the current working directory to file
workspace_view * m_workspace_window
Dock widgets.
void browse_for_directory(void)
QString m_release_notes_icon
void change_directory(const QString &dir)
file_editor_interface * m_editor_window
Dock widgets.
void execute_command_in_terminal(const QString &dir)
find_files_dialog * m_find_files_dlg
Find files dialog.
QAction * m_new_script_action
void handle_create_filedialog(const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
The value of lines which begin with a space character are not saved in the history list A value of all commands are saved on the history list
void load_and_display_community_news(int serial=-1)
void handle_enter_debugger(void)
void settings_changed(const QSettings *)
history_dock_widget * m_history_window
Dock widgets.
QWidget * m_active_editor
QAction * m_editor_action
void pasteClipboard(void)
QHash< QMenu *, QStringList > m_hash_menu_text
QAction * m_workspace_action
QAction * m_save_workspace_action
void handle_unregister_doc(const QString &file)
void construct_file_menu(QMenuBar *p)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
application * m_app_context
void handle_octave_ready()
void init_terminal_size_signal(void)
void rename_variable_callback(const name_pair &names)
void pasteClipboard_signal(void)
void construct_window_menu(QMenuBar *p)
OCTAVE_EXPORT octave_value_list page
void add_actions_signal(QList< QAction *> action_list)
QAction * m_new_figure_action
void active_dock_changed(octave_dock_widget *, octave_dock_widget *)
void open_contribute_page(void)
QAction * m_report_bug_action
QWidget * m_release_notes_window
Release notes window.
~octave_interpreter(void)=default
void open_donate_page(void)
QAction * add_action(QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=nullptr)
void display_community_news(const QString &news)
QAction * m_file_browser_action
void set_global_shortcuts(bool enable)
Setting global shortcuts.
void command_window_undo_callback(void)
void editor_focus_changed(bool)
QAction * m_new_function_action
QAction * m_ondisk_doc_action
void execute(void)
Initialize and execute the octave interpreter.
Provides threadsafe access to octave.
void refresh_workspace_callback(void)
void edit_mfile(const QString &, int)
void edit_variable(const QString &name, const octave_value &)
Opens the variable editor for name.
std::string dirname(const std::string &path)
void request_reload_settings(void)
QToolBar * m_main_tool_bar
void handle_load_workspace_request(const QString &file=QString())
void change_directory_callback(const std::string &directory)
QAction * m_show_workspace_action
bool m_prevent_readline_conflicts
Some class global flags.
QAction * m_history_action
void copyClipboard_signal(void)
QAction * m_debug_step_into
bool m_closing
Flag for closing the whole application.
void octave_finished_signal(int)
bool command_window_has_focus(void) const
void clear_clipboard()
Handling the clipboard.
void request_new_script(const QString &commands=QString())
void new_file(const QString &commands=QString())
void debug_step_out(void)
void save_workspace_callback(const std::string &file)
void construct_menu_bar(void)
void show_about_octave(void)
QAction * m_variable_editor_action
void construct_octave_qt_link(void)
bool focus_console_after_command(void)
QAction * m_debug_step_over
void disable_menu_shortcuts(bool disable)
void handle_clear_history_request(void)
void clear_workspace_callback(void)
void focus_command_window(void)
void debug_continue(void)
void message(const char *name, const char *fmt,...)
void notice_settings(const QSettings *settings)
QAction * m_show_variable_editor_action
void connect_visibility_changed(void)
void report_status_message(const QString &statusMessage)
nd deftypefn *std::string name
void debug_step_over(void)
QAction * m_select_all_action
void construct_debug_menu(QMenuBar *p)
QAction * m_find_files_action
void accept_directory_line_edit(void)
QAction * m_show_file_browser_action
QAction * m_documentation_action
QAction * construct_debug_menu_item(const char *icon, const QString &item, const char *member)
void confirm_shutdown_octave(void)
QAction * m_show_command_window_action
QAction * m_release_notes_action
static const int current_directory_max_count
For Toolbars.
bool m_start_gui
Some class global flags.
void connect_uiwidget_links(void)
void prepare_to_exit(void)
void display_news_signal(const QString &news)
void handle_rename_variable_request(const QString &old_name, const QString &new_name)
QList< octave_dock_widget * > get_dock_widget_list(void)
Returns a list of dock widgets.
void set_file_encoding(const QString &new_encoding)
void process_settings_dialog_request(const QString &desired_tab=QString())
QComboBox * m_current_directory_combo_box
For Toolbars.
main_window(QWidget *parent, gui_application *app_context)
void handle_new_figure_request(void)
void closeEvent(QCloseEvent *closeEvent)
QAction * m_show_history_action
bool m_suppress_dbg_location
Some class global flags.
void write_settings(void)
void focus_changed(QWidget *w_old, QWidget *w_new)
octave_dock_widget * m_active_dock
void debug_step_into(void)
QAction * m_preferences_action
void delete_debugger_pointer_signal(const QString &file, int line)
void new_figure_callback(void)
void selectAll_signal(void)
void update_breakpoint_marker_signal(bool insert, const QString &file, int line, const QString &cond)
void handle_save_workspace_request(void)
void handle_insert_debugger_pointer_request(const QString &file, int line)
void set_window_layout(QSettings *settings)
Represents the main window.
void request_open_file(void)
QAction * construct_window_menu_item(QMenu *p, const QString &item, bool checkable, QWidget *)
octave_interpreter(application *app_context)
void register_doc_signal(const QString &)
QAction * m_load_workspace_action
void handle_clear_workspace_request(void)
void open_file(const QString &file_name=QString(), int line=-1)
Queuing octave commands from the GUI for the worker thread.
void handle_create_dialog(const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
QAction * m_current_news_action
void configure_shortcuts(void)
void handle_variable_editor_update(void)
void construct_new_menu(QMenu *p)
void clear_command_window_callback(void)
void handle_update_breakpoint_marker_request(bool insert, const QString &file, int line, const QString &cond)
documentation_dock_widget * m_doc_browser_window
Dock widgets.
QLineEdit * m_current_directory_line_edit
For Toolbars.
void set_current_working_directory(const QString &dir)
void show_doc_signal(const QString &)
QAction * m_clear_workspace_action
void handle_create_inputlayout(const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &)
void open_file_signal(const QString &)
void octave_ready_signal(void)
octave_qt_link * m_octave_qt_link
void display_release_notes(void)
void run_file_in_terminal(const QFileInfo &info)
void handle_undo_request(void)
std::pair< int, int > int_pair
news_reader(const QString &base_url, const QString &page, int serial=-1, bool connect_to_web=false)
void load_workspace_callback(const std::string &file)
QStatusBar * m_status_bar
Toolbar.
void restore_create_file_setting(void)
void construct_documentation_menu(QMenu *p)
void construct_tool_bar(void)
QAction * m_clear_clipboard_action
void refresh_variable_editor(void)
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)
QAction * m_reset_windows_action
QMenu * m_add_menu(QMenuBar *p, QString text)
void insert_debugger_pointer_signal(const QString &file, int line)
void clipboard_has_changed(void)
Handling the clipboard.
QList< octave_dock_widget * > dock_widget_list(void)
gui_application * m_app_context
void open_octave_packages_page(void)
void request_open_files(const QStringList &open_file_names)
QAction * m_clear_command_history_action
void handle_show_doc(const QString &file)
QAction * m_about_octave_action
octave_interpreter * m_interpreter
QPointer< settings_dialog > m_settings_dlg
Settings dialog as guarded pointer (set to 0 when deleted).
void copy_image_to_clipboard(const QString &file, bool remove_file)
QAction * m_show_editor_action
void set_screen_size(int ht, int wd)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
void handle_delete_debugger_pointer_request(const QString &file, int line)
void init_terminal_size(void)
void construct_help_menu(QMenuBar *p)
QAction * m_online_doc_action
void construct_news_menu(QMenuBar *p)
void handle_octave_finished(int)
void resize_command_window_callback(void)
QAction * m_debug_step_out
QAction * m_clear_command_window_action
QAction * m_octave_packages_action
void find_files_finished(int)
Find files dialog.
QAction * m_show_documentation_action
void handle_exit_debugger(void)
QAction * m_developer_action
void change_directory_up(void)
void open_bug_tracker_page(void)
to define functions rather than attempting to enter them directly on the command line The block of commands is executed as soon as you exit the editor To avoid executing any commands
octave_command_queue m_cmd_queue
Command queue and semaphore to synchronize execution signals and related callbacks.
files_dock_widget * m_file_browser_window
Dock widgets.
QAction * m_command_window_action
OCTAVE_EXPORT octave_value_list directory
external_editor_interface * m_external_editor
void new_file_signal(const QString &)
QWidget * m_community_news_window