#include "file-editor-interface.h"
Public Slots | |
virtual void | activate (void) |
void | default_dock (bool not_used=false) |
void | handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *) |
virtual void | handle_file_remove (const QString &o, const QString &n)=0 |
void | handle_settings (const gui_settings *) |
virtual void | handle_visibility (bool visible) |
QMainWindow * | main_win (void) |
void | make_widget (bool not_used=false) |
void | make_window (bool widget_was_dragged=false) |
void | moveEvent (QMoveEvent *event) |
virtual void | notice_settings (const gui_settings *) |
virtual void | request_new_file (const QString &command=QString())=0 |
virtual void | request_open_file (const QString &openFileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="", int index=-1)=0 |
void | resizeEvent (QResizeEvent *event) |
void | save_settings (void) |
virtual void | toplevel_change (bool)=0 |
Signals | |
void | active_changed (bool active) |
Custom signal that tells whether a user has clicked away that dock widget, i.e. More... | |
void | interpreter_event (const fcn_callback &fcn) |
void | interpreter_event (const meth_callback &meth) |
void | queue_make_widget (void) |
void | queue_make_window (bool widget_was_dragged) |
Public Member Functions | |
file_editor_interface (QWidget *p, base_qobject &oct_qobj) | |
virtual | ~file_editor_interface (void)=default |
virtual bool | check_closing (void)=0 |
virtual void | connect_visibility_changed (void) |
virtual QMenu * | debug_menu (void)=0 |
virtual void | empty_script (bool, bool)=0 |
virtual void | enable_menu_shortcuts (bool enable)=0 |
virtual QMenu * | get_mru_menu (void)=0 |
virtual void | handle_delete_debugger_pointer_request (const QString &file, int line)=0 |
virtual void | handle_edit_file_request (const QString &file)=0 |
virtual void | handle_enter_debug_mode (void)=0 |
virtual void | handle_exit_debug_mode (void)=0 |
virtual void | handle_insert_debugger_pointer_request (const QString &file, int line)=0 |
virtual void | handle_update_breakpoint_marker_request (bool insert, const QString &file, int line, const QString &cond)=0 |
virtual void | insert_global_actions (QList< QAction * >)=0 |
virtual void | restore_session (gui_settings *)=0 |
void | set_predecessor_widget (octave_dock_widget *prev_widget) |
void | set_title (const QString &) |
virtual QToolBar * | toolbar (void)=0 |
Protected Slots | |
virtual void | do_undo (void) |
Slot to handle undo. More... | |
bool | eventFilter (QObject *obj, QEvent *e) |
Event filter for double clicks into the window decoration elements. More... | |
virtual void | handle_visibility_changed (bool visible) |
Slot to steer changing visibility from outside. More... | |
virtual void | copyClipboard (void) |
Slots to handle copy & paste. More... | |
virtual void | pasteClipboard (void) |
Slots to handle copy & paste. More... | |
virtual void | selectAll (void) |
Slots to handle copy & paste. More... | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
bool | event (QEvent *event) |
QWidget * | focusWidget (void) |
Protected Attributes | |
QAction * | m_close_action |
QToolButton * | m_close_button |
QAbstractButton * | m_default_close_button |
QAbstractButton * | m_default_float_button |
QAction * | m_dock_action |
QToolButton * | m_dock_button |
int | m_icon_size |
base_qobject & | m_octave_qobj |
QWidget * | m_title_widget |
Private Slots | |
void | change_visibility (bool) |
Private Member Functions | |
void | set_focus_predecessor (void) |
void | set_style (bool active) |
void | store_geometry (void) |
Private Attributes | |
QColor | m_bg_color |
QColor | m_bg_color_active |
bool | m_custom_style |
QColor | m_fg_color |
QColor | m_fg_color_active |
QString | m_icon_color |
QString | m_icon_color_active |
QMainWindow * | m_parent |
Stores the parent, since we are reparenting to 0. More... | |
octave_dock_widget * | m_predecessor_widget |
QRect | m_recent_dock_geom |
QRect | m_recent_float_geom |
int | m_title_3d |
bool | m_waiting_for_mouse_button_release |
Definition at line 39 of file file-editor-interface.h.
|
inline |
Definition at line 45 of file file-editor-interface.h.
|
virtualdefault |
|
virtualslotinherited |
Definition at line 627 of file octave-dock-widget.cc.
Referenced by octave::file_editor::activate(), octave::main_window::focus_command_window(), octave::main_window::focus_window(), and octave::main_window::go_to_previous_widget().
|
signalinherited |
Custom signal that tells whether a user has clicked away that dock widget, i.e.
the active dock widget has changed.
Referenced by octave::octave_dock_widget::change_visibility(), octave::octave_dock_widget::closeEvent(), octave::octave_dock_widget::connect_visibility_changed(), and octave::octave_dock_widget::handle_visibility_changed().
|
privateslotinherited |
Definition at line 621 of file octave-dock-widget.cc.
References octave::octave_dock_widget::active_changed().
Referenced by octave::octave_dock_widget::octave_dock_widget().
|
pure virtual |
Referenced by octave::main_window::confirm_shutdown().
|
protectedvirtualinherited |
Reimplemented in octave::file_editor.
Definition at line 407 of file octave-dock-widget.cc.
References octave::octave_dock_widget::active_changed(), octave::octave_dock_widget::save_settings(), and octave::octave_dock_widget::set_focus_predecessor().
Referenced by octave::variable_editor::closeEvent(), and octave::file_editor::closeEvent().
|
virtualinherited |
Definition at line 267 of file octave-dock-widget.cc.
References octave::octave_dock_widget::active_changed(), and octave::octave_dock_widget::handle_visibility().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 60 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::construct_debug_menu(), and octave::main_window::construct_debug_menu_item().
|
slotinherited |
Definition at line 393 of file octave-dock-widget.cc.
Referenced by octave::octave_dock_widget::toplevel_change().
|
inlineprotectedvirtualslotinherited |
Slot to handle undo.
Definition at line 67 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::handle_octave_ready().
|
pure virtual |
Referenced by octave::main_window::connect_visibility_changed().
|
protectedinherited |
Definition at line 426 of file octave-dock-widget.cc.
References octave::octave_dock_widget::m_waiting_for_mouse_button_release, octave::octave_dock_widget::queue_make_window(), and retval.
Referenced by octave::variable_editor::edit_variable(), octave::octave_dock_widget::moveEvent(), and octave::octave_dock_widget::resizeEvent().
|
protectedslotinherited |
Event filter for double clicks into the window decoration elements.
Definition at line 578 of file octave-dock-widget.cc.
|
protectedinherited |
Definition at line 418 of file octave-dock-widget.cc.
References Faddeeva::w().
Referenced by octave::file_editor::editor_tab_has_focus().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::construct_file_menu().
|
slotinherited |
Definition at line 536 of file octave-dock-widget.cc.
References octave::octave_dock_widget::m_custom_style, and octave::octave_dock_widget::set_style().
Referenced by octave::octave_dock_widget::octave_dock_widget().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::handle_enter_debugger().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::handle_exit_debugger().
|
pure virtualslot |
Referenced by octave::main_window::file_remove_proxy().
|
pure virtual |
|
slotinherited |
Definition at line 447 of file octave-dock-widget.cc.
References gui_pref::def, dw_dock_geometry(), dw_float_geometry(), dw_title_3d(), dw_title_bg_color(), dw_title_bg_color_active(), dw_title_custom_style(), dw_title_fg_color(), dw_title_fg_color_active(), global_menubar_style(), global_toolbar_style(), gui_pref::key, octave::octave_dock_widget::m_bg_color, octave::octave_dock_widget::m_bg_color_active, octave::octave_dock_widget::m_custom_style, octave::octave_dock_widget::m_fg_color, octave::octave_dock_widget::m_fg_color_active, octave::octave_dock_widget::m_icon_color, octave::octave_dock_widget::m_icon_color_active, octave::octave_dock_widget::m_parent, octave::octave_dock_widget::m_recent_dock_geom, octave::octave_dock_widget::m_recent_float_geom, octave::octave_dock_widget::m_title_3d, octave::label_dock_widget::m_title_widget, octave::octave_dock_widget::notice_settings(), r, octave::octave_dock_widget::set_style(), Faddeeva::w(), and x.
Referenced by octave::octave_dock_widget::octave_dock_widget().
|
pure virtual |
|
virtualslotinherited |
Definition at line 637 of file octave-dock-widget.cc.
Referenced by octave::octave_dock_widget::connect_visibility_changed(), and octave::history_dock_widget::handle_visibility().
|
inlineprotectedvirtualslotinherited |
Slot to steer changing visibility from outside.
Definition at line 153 of file octave-dock-widget.h.
References octave::octave_dock_widget::active_changed().
Referenced by octave::octave_dock_widget::octave_dock_widget(), and octave::terminal_dock_widget::terminal_dock_widget().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::construct_menu_bar().
|
signalinherited |
|
signalinherited |
|
inlineslotinherited |
Definition at line 133 of file octave-dock-widget.h.
References octave::octave_dock_widget::m_parent.
Referenced by octave::files_dock_widget::files_dock_widget(), octave::file_editor::construct(), octave::file_editor::empty_script(), octave::file_editor::find_create(), octave::file_editor::is_editor_console_tabbed(), octave::file_editor::make_file_editor_tab(), and octave::variable_editor::tab_to_front().
|
slotinherited |
Definition at line 343 of file octave-dock-widget.cc.
References octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), gui_pref::key, octave::label_dock_widget::m_default_float_button, octave::label_dock_widget::m_dock_action, octave::octave_dock_widget::m_icon_color, octave::label_dock_widget::m_octave_qobj, octave::octave_dock_widget::m_parent, octave::octave_dock_widget::m_recent_dock_geom, octave::octave_dock_widget::make_window(), mw_state(), and octave::octave_dock_widget::set_style().
Referenced by octave::octave_dock_widget::octave_dock_widget(), and octave::octave_dock_widget::make_window().
|
slotinherited |
Definition at line 276 of file octave-dock-widget.cc.
References octave::label_dock_widget::m_default_float_button, octave::label_dock_widget::m_dock_action, octave::octave_dock_widget::m_icon_color, octave::octave_dock_widget::m_parent, octave::octave_dock_widget::m_recent_float_geom, octave::octave_dock_widget::m_waiting_for_mouse_button_release, octave::octave_dock_widget::make_widget(), octave::octave_dock_widget::set_focus_predecessor(), and octave::octave_dock_widget::set_style().
Referenced by octave::octave_dock_widget::octave_dock_widget(), and octave::octave_dock_widget::make_widget().
|
slotinherited |
Definition at line 604 of file octave-dock-widget.cc.
References octave::octave_dock_widget::event(), and octave::octave_dock_widget::store_geometry().
|
inlinevirtualslotinherited |
Definition at line 127 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 61 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget().
|
signalinherited |
|
signalinherited |
Referenced by octave::octave_dock_widget::octave_dock_widget(), and octave::octave_dock_widget::event().
|
pure virtualslot |
|
pure virtualslot |
|
slotinherited |
Definition at line 612 of file octave-dock-widget.cc.
References octave::octave_dock_widget::event(), and octave::octave_dock_widget::store_geometry().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::handle_octave_ready().
|
slotinherited |
Definition at line 553 of file octave-dock-widget.cc.
References dw_dock_geometry(), dw_float_geometry(), dw_is_floating(), dw_is_minimized(), dw_is_visible(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), gui_pref::key, octave::label_dock_widget::m_octave_qobj, octave::octave_dock_widget::m_recent_dock_geom, octave::octave_dock_widget::m_recent_float_geom, name, and octave::octave_dock_widget::store_geometry().
Referenced by octave::octave_dock_widget::closeEvent(), octave::files_dock_widget::save_settings(), octave::history_dock_widget::save_settings(), octave::workspace_view::save_settings(), and octave::workspace_view::toggle_header().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 62 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget().
|
privateinherited |
Definition at line 783 of file octave-dock-widget.cc.
References dw_title_bg_color(), dw_title_bg_color_active(), dw_title_fg_color(), dw_title_fg_color_active(), octave::base_qobject::get_resource_manager(), gui_pref::key, octave::label_dock_widget::m_octave_qobj, octave::octave_dock_widget::m_predecessor_widget, and octave::resource_manager::update_settings_key().
Referenced by octave::octave_dock_widget::closeEvent(), and octave::octave_dock_widget::make_window().
|
inherited |
Definition at line 400 of file octave-dock-widget.cc.
References octave::octave_dock_widget::m_predecessor_widget.
Referenced by octave::main_window::focus_changed().
|
privateinherited |
Definition at line 685 of file octave-dock-widget.cc.
References octave::octave_dock_widget::m_bg_color, octave::octave_dock_widget::m_bg_color_active, octave::label_dock_widget::m_close_action, octave::label_dock_widget::m_close_button, octave::octave_dock_widget::m_custom_style, octave::label_dock_widget::m_dock_action, octave::label_dock_widget::m_dock_button, octave::octave_dock_widget::m_fg_color, octave::octave_dock_widget::m_fg_color_active, octave::octave_dock_widget::m_icon_color, octave::octave_dock_widget::m_icon_color_active, octave::label_dock_widget::m_icon_size, octave::octave_dock_widget::m_title_3d, and octave::qdockwidget_css().
Referenced by octave::octave_dock_widget::handle_active_dock_changed(), octave::octave_dock_widget::handle_settings(), octave::octave_dock_widget::make_widget(), and octave::octave_dock_widget::make_window().
|
inherited |
Definition at line 119 of file octave-dock-widget.cc.
References octave::label_dock_widget::m_title_widget.
Referenced by octave::documentation_dock_widget::documentation_dock_widget(), octave::files_dock_widget::files_dock_widget(), octave::terminal_dock_widget::terminal_dock_widget(), octave::variable_editor::variable_editor(), octave::workspace_view::workspace_view(), octave::history_dock_widget::construct(), octave::file_editor::construct(), and octave::variable_editor::edit_variable().
|
privateinherited |
Definition at line 590 of file octave-dock-widget.cc.
References octave::octave_dock_widget::m_recent_dock_geom, and octave::octave_dock_widget::m_recent_float_geom.
Referenced by octave::octave_dock_widget::moveEvent(), octave::octave_dock_widget::resizeEvent(), and octave::octave_dock_widget::save_settings().
|
pure virtual |
Implemented in octave::file_editor.
Referenced by octave::main_window::construct_debug_menu_item().
|
pure virtualslot |
|
privateinherited |
Definition at line 179 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
privateinherited |
Definition at line 180 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 78 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), octave::octave_dock_widget::octave_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 76 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), and octave::octave_dock_widget::set_style().
|
privateinherited |
Definition at line 177 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_active_dock_changed(), octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 81 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget().
|
protectedinherited |
Definition at line 80 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), octave::octave_dock_widget::octave_dock_widget(), octave::octave_dock_widget::make_widget(), octave::octave_dock_widget::make_window(), and octave::octave_dock_widget::toplevel_change().
|
protectedinherited |
Definition at line 77 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), octave::octave_dock_widget::octave_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), octave::octave_dock_widget::make_widget(), octave::octave_dock_widget::make_window(), octave::octave_dock_widget::set_style(), octave::octave_dock_widget::toplevel_change(), and octave::variable_dock_widget::toplevel_change().
|
protectedinherited |
Definition at line 75 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), and octave::octave_dock_widget::set_style().
|
privateinherited |
Definition at line 181 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
privateinherited |
Definition at line 182 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
privateinherited |
|
privateinherited |
Definition at line 184 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 73 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), octave::octave_dock_widget::octave_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 71 of file octave-dock-widget.h.
Referenced by octave::files_dock_widget::files_dock_widget(), octave::octave_dock_widget::octave_dock_widget(), octave::terminal_dock_widget::terminal_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), octave::workspace_view::workspace_view(), octave::file_editor::call_custom_editor(), octave::variable_dock_widget::change_floating(), octave::variable_dock_widget::change_fullscreen(), octave::file_editor::closeEvent(), octave::history_dock_widget::construct(), octave::file_editor::construct(), octave::variable_editor::construct_tool_bar(), octave::files_dock_widget::contextmenu_requested(), octave::history_dock_widget::ctxMenu(), octave::files_dock_widget::display_directory(), octave::variable_editor::edit_variable(), octave::file_editor::empty_script(), octave::file_editor::find_create(), octave::file_editor::handle_enter_debug_mode(), octave::file_editor::handle_exit_debug_mode(), octave::file_editor::handle_file_name_changed(), octave::file_editor::handle_visibility(), octave::workspace_view::header_contextmenu_requested(), octave::files_dock_widget::headercontextmenu_requested(), octave::file_editor::make_file_editor_tab(), octave::octave_dock_widget::make_widget(), octave::file_editor::mru_menu_update(), octave::files_dock_widget::popdownmenu_search_dir(), octave::file_editor::request_open_file(), octave::file_editor::save_session(), octave::files_dock_widget::save_settings(), octave::history_dock_widget::save_settings(), octave::octave_dock_widget::save_settings(), octave::workspace_view::save_settings(), octave::octave_dock_widget::set_focus_predecessor(), octave::file_editor::set_shortcuts(), octave::workspace_view::setModel(), octave::files_dock_widget::toggle_header(), octave::workspace_view::toggle_header(), and octave::file_editor::toggle_preference().
|
privateinherited |
Stores the parent, since we are reparenting to 0.
Definition at line 175 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::octave_dock_widget(), octave::octave_dock_widget::handle_settings(), octave::octave_dock_widget::main_win(), octave::octave_dock_widget::make_widget(), and octave::octave_dock_widget::make_window().
|
privateinherited |
Definition at line 185 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::octave_dock_widget(), octave::octave_dock_widget::set_focus_predecessor(), and octave::octave_dock_widget::set_predecessor_widget().
|
privateinherited |
Definition at line 187 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), octave::octave_dock_widget::make_widget(), octave::octave_dock_widget::save_settings(), and octave::octave_dock_widget::store_geometry().
|
privateinherited |
Definition at line 186 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::handle_settings(), octave::octave_dock_widget::make_window(), octave::octave_dock_widget::save_settings(), and octave::octave_dock_widget::store_geometry().
|
privateinherited |
Definition at line 178 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::octave_dock_widget(), octave::octave_dock_widget::handle_settings(), and octave::octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 74 of file octave-dock-widget.h.
Referenced by octave::label_dock_widget::label_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), octave::octave_dock_widget::handle_settings(), and octave::label_dock_widget::set_title().
|
privateinherited |
Definition at line 188 of file octave-dock-widget.h.
Referenced by octave::octave_dock_widget::event(), octave::octave_dock_widget::make_window(), and octave::octave_dock_widget::toplevel_change().