#include "octave-dock-widget.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 *) |
void | handle_settings (const gui_settings *) |
virtual void | handle_visibility (bool visible) |
void | init_window_menu_entry (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 *) |
void | resizeEvent (QResizeEvent *event) |
virtual void | save_settings (void) |
Signals | |
void | active_changed (bool active) |
Custom signal that tells whether a user has clicked away that dock widget, i.e. More... | |
void | queue_make_widget (void) |
void | queue_make_window (bool widget_was_dragged) |
Public Member Functions | |
octave_dock_widget (const QString &obj_name, QWidget *p, base_qobject &oct_qobj) | |
~octave_dock_widget (void)=default | |
bool | adopted (void) const |
void | set_adopted (bool adopted=true) |
void | set_main_window (main_window *mw) |
void | set_predecessor_widget (octave_dock_widget *prev_widget) |
void | set_title (const QString &) |
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 | toplevel_change (bool) |
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 | |
bool | m_adopted |
QColor | m_bg_color |
QColor | m_bg_color_active |
bool | m_custom_style |
QColor | m_fg_color |
QColor | m_fg_color_active |
bool | m_focus_follows_mouse |
QString | m_icon_color |
QString | m_icon_color_active |
main_window * | m_main_window |
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 86 of file octave-dock-widget.h.
octave_dock_widget::octave_dock_widget | ( | const QString & | obj_name, |
QWidget * | p, | ||
base_qobject & | oct_qobj | ||
) |
Definition at line 192 of file octave-dock-widget.cc.
References change_visibility(), base_qobject::get_resource_manager(), resource_manager::get_settings(), base_qobject::get_shortcut_manager(), global_icon_paths, handle_settings(), handle_visibility(), ICON_THEME_OCTAVE, label_dock_widget::m_close_action, label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, m_icon_color, label_dock_widget::m_icon_size, m_main_window, label_dock_widget::m_octave_qobj, m_predecessor_widget, m_title_3d, make_widget(), make_window(), qdockwidget_css(), queue_make_widget(), queue_make_window(), sc_dock_widget_close(), sc_dock_widget_dock(), shortcut_manager::set_shortcut(), and toplevel_change().
|
default |
|
virtualslot |
Definition at line 667 of file octave-dock-widget.cc.
Referenced by file_editor::activate(), and main_window::go_to_previous_widget().
|
signal |
Custom signal that tells whether a user has clicked away that dock widget, i.e.
the active dock widget has changed.
Referenced by change_visibility(), closeEvent(), handle_visibility(), and init_window_menu_entry().
|
inline |
Definition at line 102 of file octave-dock-widget.h.
References m_adopted.
Referenced by set_adopted().
|
privateslot |
Definition at line 661 of file octave-dock-widget.cc.
References active_changed().
Referenced by octave_dock_widget().
|
protectedvirtual |
Reimplemented in file_editor.
Definition at line 434 of file octave-dock-widget.cc.
References active_changed(), save_settings(), and set_focus_predecessor().
Referenced by variable_editor::closeEvent(), and file_editor::closeEvent().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 62 of file octave-dock-widget.h.
Referenced by set_main_window().
|
slot |
Definition at line 399 of file octave-dock-widget.cc.
Referenced by toplevel_change().
|
inlineprotectedvirtualslotinherited |
Slot to handle undo.
Definition at line 69 of file octave-dock-widget.h.
Referenced by set_main_window().
|
protected |
Definition at line 453 of file octave-dock-widget.cc.
References m_waiting_for_mouse_button_release, and queue_make_window().
Referenced by variable_editor::edit_variable(), moveEvent(), and resizeEvent().
|
protectedslot |
Event filter for double clicks into the window decoration elements.
Definition at line 611 of file octave-dock-widget.cc.
References m_focus_follows_mouse.
|
protected |
Definition at line 445 of file octave-dock-widget.cc.
References Faddeeva::w().
Referenced by file_editor::editor_tab_has_focus().
|
slot |
Definition at line 569 of file octave-dock-widget.cc.
References m_custom_style, and set_style().
Referenced by main_window::make_dock_widget_connections().
|
slot |
Definition at line 474 of file octave-dock-widget.cc.
References adjust_to_screen(), gui_pref::def, dw_dock_geometry(), dw_float_geometry(), dw_focus_follows_mouse(), 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, m_bg_color, m_bg_color_active, m_custom_style, m_fg_color, m_fg_color_active, m_focus_follows_mouse, m_icon_color, m_icon_color_active, m_main_window, m_recent_dock_geom, m_recent_float_geom, m_title_3d, label_dock_widget::m_title_widget, notice_settings(), r, set_style(), Faddeeva::w(), and x.
Referenced by octave_dock_widget(), and main_window::make_dock_widget_connections().
|
virtualslot |
Definition at line 677 of file octave-dock-widget.cc.
References active_changed().
Referenced by octave_dock_widget(), history_dock_widget::handle_visibility(), and file_editor::handle_visibility().
|
slot |
Definition at line 265 of file octave-dock-widget.cc.
References active_changed().
Referenced by main_window::make_dock_widget_connections().
|
slot |
Definition at line 343 of file octave-dock-widget.cc.
References base_qobject::get_resource_manager(), resource_manager::get_settings(), resource_manager::icon(), gui_pref::key, m_adopted, label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, m_icon_color, m_main_window, label_dock_widget::m_octave_qobj, m_recent_dock_geom, make_window(), mw_state(), and set_style().
Referenced by octave_dock_widget(), and make_window().
|
slot |
Definition at line 272 of file octave-dock-widget.cc.
References base_qobject::get_resource_manager(), resource_manager::icon(), label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, m_icon_color, m_main_window, label_dock_widget::m_octave_qobj, m_recent_float_geom, m_waiting_for_mouse_button_release, make_widget(), set_focus_predecessor(), and set_style().
Referenced by files_dock_widget::files_dock_widget(), octave_dock_widget(), variable_editor::variable_editor(), and make_widget().
|
slot |
Definition at line 644 of file octave-dock-widget.cc.
References event(), and store_geometry().
|
inlinevirtualslot |
Definition at line 129 of file octave-dock-widget.h.
Referenced by handle_settings().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 63 of file octave-dock-widget.h.
Referenced by set_main_window().
|
signal |
Referenced by octave_dock_widget(), and toplevel_change().
|
signal |
Referenced by octave_dock_widget(), and event().
|
slot |
Definition at line 652 of file octave-dock-widget.cc.
References event(), and store_geometry().
|
virtualslot |
Definition at line 586 of file octave-dock-widget.cc.
References dw_dock_geometry(), dw_float_geometry(), dw_is_floating(), dw_is_minimized(), dw_is_visible(), base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, label_dock_widget::m_octave_qobj, m_recent_dock_geom, m_recent_float_geom, and store_geometry().
Referenced by closeEvent(), main_window::make_dock_widget_connections(), documentation_dock_widget::save_settings(), files_dock_widget::save_settings(), history_dock_widget::save_settings(), workspace_view::save_settings(), and workspace_view::toggle_header().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 64 of file octave-dock-widget.h.
Referenced by set_main_window().
|
inline |
Definition at line 101 of file octave-dock-widget.h.
|
private |
Definition at line 828 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(), base_qobject::get_resource_manager(), gui_pref::key, label_dock_widget::m_octave_qobj, m_predecessor_widget, and resource_manager::update_settings_key().
Referenced by closeEvent(), and make_window().
void octave_dock_widget::set_main_window | ( | main_window * | mw | ) |
Definition at line 412 of file octave-dock-widget.cc.
References label_dock_widget::copyClipboard(), main_window::copyClipboard_signal(), label_dock_widget::do_undo(), m_main_window, label_dock_widget::pasteClipboard(), main_window::pasteClipboard_signal(), label_dock_widget::selectAll(), main_window::selectAll_signal(), and main_window::undo_signal().
void octave_dock_widget::set_predecessor_widget | ( | octave_dock_widget * | prev_widget | ) |
Definition at line 406 of file octave-dock-widget.cc.
References m_predecessor_widget.
Referenced by main_window::focus_changed().
|
private |
Definition at line 729 of file octave-dock-widget.cc.
References base_qobject::get_resource_manager(), global_icon_paths, resource_manager::icon(), ICON_THEME_OCTAVE, m_bg_color, m_bg_color_active, label_dock_widget::m_close_action, label_dock_widget::m_close_button, m_custom_style, label_dock_widget::m_dock_action, label_dock_widget::m_dock_button, m_fg_color, m_fg_color_active, m_icon_color, m_icon_color_active, label_dock_widget::m_icon_size, label_dock_widget::m_octave_qobj, m_title_3d, and qdockwidget_css().
Referenced by handle_active_dock_changed(), handle_settings(), make_widget(), and make_window().
|
inherited |
Definition at line 128 of file octave-dock-widget.cc.
References label_dock_widget::m_title_widget.
Referenced by files_dock_widget::files_dock_widget(), variable_editor::variable_editor(), history_dock_widget::construct(), file_editor::construct(), and variable_editor::edit_variable().
|
private |
Definition at line 630 of file octave-dock-widget.cc.
References m_recent_dock_geom, and m_recent_float_geom.
Referenced by moveEvent(), resizeEvent(), and save_settings().
|
protectedvirtualslot |
Definition at line 688 of file octave-dock-widget.cc.
References default_dock(), label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, m_waiting_for_mouse_button_release, and queue_make_widget().
Referenced by octave_dock_widget().
|
private |
Definition at line 171 of file octave-dock-widget.h.
Referenced by adopted(), make_widget(), and set_adopted().
|
private |
Definition at line 175 of file octave-dock-widget.h.
Referenced by handle_settings(), and set_style().
|
private |
Definition at line 176 of file octave-dock-widget.h.
Referenced by handle_settings(), and set_style().
|
protectedinherited |
Definition at line 80 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), variable_dock_widget::variable_dock_widget(), and set_style().
|
protectedinherited |
Definition at line 78 of file octave-dock-widget.h.
Referenced by set_style().
|
private |
Definition at line 172 of file octave-dock-widget.h.
Referenced by handle_active_dock_changed(), handle_settings(), and set_style().
|
protectedinherited |
Definition at line 83 of file octave-dock-widget.h.
|
protectedinherited |
Definition at line 82 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), make_widget(), make_window(), and toplevel_change().
|
protectedinherited |
Definition at line 79 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), variable_dock_widget::variable_dock_widget(), make_widget(), make_window(), set_style(), toplevel_change(), and variable_dock_widget::toplevel_change().
|
protectedinherited |
Definition at line 77 of file octave-dock-widget.h.
Referenced by set_style().
|
private |
Definition at line 177 of file octave-dock-widget.h.
Referenced by handle_settings(), and set_style().
|
private |
Definition at line 178 of file octave-dock-widget.h.
Referenced by handle_settings(), and set_style().
|
private |
Definition at line 173 of file octave-dock-widget.h.
Referenced by eventFilter(), and handle_settings().
|
private |
Definition at line 179 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), handle_settings(), make_widget(), make_window(), and set_style().
|
private |
Definition at line 180 of file octave-dock-widget.h.
Referenced by handle_settings(), and set_style().
|
protectedinherited |
Definition at line 75 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), variable_dock_widget::variable_dock_widget(), and set_style().
|
private |
Stores the parent, since we are reparenting to 0.
Definition at line 169 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), handle_settings(), make_widget(), make_window(), and set_main_window().
|
protectedinherited |
Definition at line 73 of file octave-dock-widget.h.
Referenced by files_dock_widget::files_dock_widget(), octave_dock_widget(), variable_dock_widget::variable_dock_widget(), file_editor::call_custom_editor(), variable_dock_widget::change_floating(), variable_dock_widget::change_fullscreen(), file_editor::closeEvent(), history_dock_widget::construct(), file_editor::construct(), variable_editor::construct_tool_bar(), files_dock_widget::contextmenu_requested(), history_dock_widget::ctxMenu(), files_dock_widget::display_directory(), variable_editor::edit_variable(), file_editor::empty_script(), file_editor::find_create(), file_editor::handle_enter_debug_mode(), file_editor::handle_exit_debug_mode(), file_editor::handle_file_name_changed(), file_editor::handle_visibility(), workspace_view::header_contextmenu_requested(), files_dock_widget::headercontextmenu_requested(), file_editor::make_file_editor_tab(), make_widget(), make_window(), file_editor::mru_menu_update(), variable_editor::notice_settings(), files_dock_widget::popdownmenu_search_dir(), file_editor::request_open_file(), file_editor::save_session(), files_dock_widget::save_settings(), history_dock_widget::save_settings(), save_settings(), workspace_view::save_settings(), set_focus_predecessor(), file_editor::set_shortcuts(), set_style(), workspace_view::setModel(), files_dock_widget::toggle_header(), workspace_view::toggle_header(), and file_editor::toggle_preference().
|
private |
Definition at line 181 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), set_focus_predecessor(), and set_predecessor_widget().
|
private |
Definition at line 183 of file octave-dock-widget.h.
Referenced by handle_settings(), make_widget(), save_settings(), and store_geometry().
|
private |
Definition at line 182 of file octave-dock-widget.h.
Referenced by handle_settings(), make_window(), save_settings(), and store_geometry().
|
private |
Definition at line 174 of file octave-dock-widget.h.
Referenced by octave_dock_widget(), handle_settings(), and set_style().
|
protectedinherited |
Definition at line 76 of file octave-dock-widget.h.
Referenced by variable_dock_widget::variable_dock_widget(), handle_settings(), and label_dock_widget::set_title().
|
private |
Definition at line 184 of file octave-dock-widget.h.
Referenced by event(), make_window(), and toplevel_change().