#include "history-dock-widget.h"
Public Slots | |
virtual void | activate (void) |
void | append_history (const QString &hist_entry) |
void | clear_history (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 *) |
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) |
void | notice_settings (const gui_settings *) |
void | resizeEvent (QResizeEvent *event) |
void | save_settings (void) |
void | set_history (const QStringList &hist) |
Signals | |
void | active_changed (bool active) |
Custom signal that tells whether a user has clicked away that dock widget, i.e. More... | |
void | command_create_script (const QString &commands) |
Signal emitted whenever the user selects commands and chooses "Create script" from the popup menu. More... | |
void | command_double_clicked (const QString &command) |
Signal emitted whenever the user double-clicks a command in the history. More... | |
void | queue_make_widget (void) |
void | queue_make_window (bool widget_was_dragged) |
Public Member Functions | |
history_dock_widget (QWidget *parent, base_qobject &oct_qobj) | |
~history_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) |
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 Types | |
enum | { MaxFilterHistory = 10 } |
Private Slots | |
void | change_visibility (bool) |
void | copyClipboard (void) |
void | ctxMenu (const QPoint &pos) |
void | filter_activate (bool enable) |
void | handle_contextmenu_copy (bool flag) |
void | handle_contextmenu_create_script (bool flag) |
void | handle_contextmenu_evaluate (bool flag) |
void | handle_contextmenu_filter (void) |
void | handle_double_click (QModelIndex modelIndex) |
virtual void | handle_visibility (bool visible) |
void | pasteClipboard (void) |
void | selectAll (void) |
void | update_filter_history (void) |
Private Member Functions | |
void | construct (void) |
void | set_filter_focus (bool focus) |
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 |
QComboBox * | m_filter |
QCheckBox * | m_filter_checkbox |
bool | m_filter_shown |
QWidget * | m_filter_widget |
bool | m_focus_follows_mouse |
QListView * | m_history_list_view |
QStringListModel * | m_history_model |
Stores the current history_model. More... | |
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 |
QSortFilterProxyModel | m_sort_filter_proxy_model |
int | m_title_3d |
bool | m_waiting_for_mouse_button_release |
Definition at line 42 of file history-dock-widget.h.
|
private |
Enumerator | |
---|---|
MaxFilterHistory |
Definition at line 107 of file history-dock-widget.h.
history_dock_widget::history_dock_widget | ( | QWidget * | parent, |
base_qobject & | oct_qobj | ||
) |
Definition at line 50 of file history-dock-widget.cc.
|
default |
|
virtualslotinherited |
Definition at line 667 of file octave-dock-widget.cc.
Referenced by file_editor::activate(), and 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_dock_widget::change_visibility(), octave_dock_widget::closeEvent(), octave_dock_widget::handle_visibility(), and octave_dock_widget::init_window_menu_entry().
|
inlineinherited |
Definition at line 102 of file octave-dock-widget.h.
References octave_dock_widget::m_adopted.
Referenced by octave_dock_widget::set_adopted().
|
slot |
Definition at line 67 of file history-dock-widget.cc.
References m_history_list_view, and m_history_model.
Referenced by base_qobject::history_widget().
|
privateslotinherited |
Definition at line 661 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed().
Referenced by octave_dock_widget::octave_dock_widget().
|
slot |
Definition at line 83 of file history-dock-widget.cc.
References m_history_model.
Referenced by base_qobject::history_widget().
|
protectedvirtualinherited |
Reimplemented in file_editor.
Definition at line 434 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed(), octave_dock_widget::save_settings(), and octave_dock_widget::set_focus_predecessor().
Referenced by variable_editor::closeEvent(), and file_editor::closeEvent().
|
signal |
Signal emitted whenever the user selects commands and chooses "Create script" from the popup menu.
Referenced by main_window::adopt_history_widget(), and handle_contextmenu_create_script().
|
signal |
Signal emitted whenever the user double-clicks a command in the history.
Referenced by main_window::adopt_history_widget(), handle_contextmenu_evaluate(), and handle_double_click().
|
private |
Definition at line 283 of file history-dock-widget.cc.
References ctxMenu(), filter_activate(), base_qobject::get_resource_manager(), resource_manager::get_settings(), handle_double_click(), hw_filter_active(), hw_filter_shown(), hw_mru_list(), m_filter, m_filter_checkbox, m_filter_shown, m_filter_widget, m_history_list_view, m_history_model, label_dock_widget::m_octave_qobj, m_sort_filter_proxy_model, MaxFilterHistory, label_dock_widget::set_title(), and update_filter_history().
|
privateslot |
Definition at line 240 of file history-dock-widget.cc.
References handle_contextmenu_copy(), m_filter, and m_history_list_view.
|
privateslot |
Definition at line 148 of file history-dock-widget.cc.
References base_qobject::get_resource_manager(), handle_contextmenu_copy(), handle_contextmenu_create_script(), handle_contextmenu_evaluate(), handle_contextmenu_filter(), resource_manager::icon(), m_filter_shown, m_history_list_view, and label_dock_widget::m_octave_qobj.
Referenced by construct().
|
slotinherited |
Definition at line 399 of file octave-dock-widget.cc.
Referenced by octave_dock_widget::toplevel_change().
|
inlineprotectedvirtualslotinherited |
Slot to handle undo.
Definition at line 69 of file octave-dock-widget.h.
Referenced by octave_dock_widget::set_main_window().
|
protectedinherited |
Definition at line 453 of file octave-dock-widget.cc.
References octave_dock_widget::m_waiting_for_mouse_button_release, and octave_dock_widget::queue_make_window().
Referenced by variable_editor::edit_variable(), octave_dock_widget::moveEvent(), and octave_dock_widget::resizeEvent().
|
protectedslotinherited |
Event filter for double clicks into the window decoration elements.
Definition at line 611 of file octave-dock-widget.cc.
References octave_dock_widget::m_focus_follows_mouse.
|
privateslot |
Definition at line 135 of file history-dock-widget.cc.
References m_filter, m_sort_filter_proxy_model, set_filter_focus(), and state.
Referenced by construct(), and handle_visibility().
|
protectedinherited |
Definition at line 445 of file octave-dock-widget.cc.
References Faddeeva::w().
Referenced by file_editor::editor_tab_has_focus().
|
slotinherited |
Definition at line 569 of file octave-dock-widget.cc.
References octave_dock_widget::m_custom_style, and octave_dock_widget::set_style().
Referenced by main_window::make_dock_widget_connections().
|
privateslot |
Definition at line 180 of file history-dock-widget.cc.
References m_history_list_view.
Referenced by copyClipboard(), and ctxMenu().
|
privateslot |
Definition at line 210 of file history-dock-widget.cc.
References command_create_script(), and m_history_list_view.
Referenced by ctxMenu().
|
privateslot |
Definition at line 199 of file history-dock-widget.cc.
References command_double_clicked(), and m_history_list_view.
Referenced by ctxMenu().
|
privateslot |
Definition at line 232 of file history-dock-widget.cc.
References m_filter_checkbox, m_filter_shown, m_filter_widget, and set_filter_focus().
Referenced by ctxMenu().
|
privateslot |
Definition at line 175 of file history-dock-widget.cc.
References command_double_clicked().
Referenced by construct().
|
slotinherited |
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, octave_dock_widget::m_bg_color, octave_dock_widget::m_bg_color_active, octave_dock_widget::m_custom_style, octave_dock_widget::m_fg_color, octave_dock_widget::m_fg_color_active, octave_dock_widget::m_focus_follows_mouse, octave_dock_widget::m_icon_color, octave_dock_widget::m_icon_color_active, octave_dock_widget::m_main_window, octave_dock_widget::m_recent_dock_geom, octave_dock_widget::m_recent_float_geom, octave_dock_widget::m_title_3d, label_dock_widget::m_title_widget, octave_dock_widget::notice_settings(), r, octave_dock_widget::set_style(), Faddeeva::w(), and x.
Referenced by octave_dock_widget::octave_dock_widget(), and main_window::make_dock_widget_connections().
|
privatevirtualslot |
Definition at line 272 of file history-dock-widget.cc.
References filter_activate(), octave_dock_widget::handle_visibility(), and m_filter_checkbox.
|
slotinherited |
Definition at line 265 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed().
Referenced by main_window::make_dock_widget_connections().
|
slotinherited |
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, octave_dock_widget::m_adopted, label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, octave_dock_widget::m_icon_color, octave_dock_widget::m_main_window, label_dock_widget::m_octave_qobj, octave_dock_widget::m_recent_dock_geom, octave_dock_widget::make_window(), mw_state(), and octave_dock_widget::set_style().
Referenced by octave_dock_widget::octave_dock_widget(), and octave_dock_widget::make_window().
|
slotinherited |
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, octave_dock_widget::m_icon_color, octave_dock_widget::m_main_window, label_dock_widget::m_octave_qobj, octave_dock_widget::m_recent_float_geom, octave_dock_widget::m_waiting_for_mouse_button_release, octave_dock_widget::make_widget(), octave_dock_widget::set_focus_predecessor(), and octave_dock_widget::set_style().
Referenced by files_dock_widget::files_dock_widget(), octave_dock_widget::octave_dock_widget(), variable_editor::variable_editor(), and octave_dock_widget::make_widget().
|
slotinherited |
Definition at line 644 of file octave-dock-widget.cc.
References octave_dock_widget::event(), and octave_dock_widget::store_geometry().
|
slot |
Definition at line 362 of file history-dock-widget.cc.
References cs_font(), cs_font_size(), global_mono_font(), gui_pref::key, and m_history_list_view.
|
privateslot |
Definition at line 252 of file history-dock-widget.cc.
References m_filter.
|
signalinherited |
Referenced by octave_dock_widget::octave_dock_widget(), and octave_dock_widget::toplevel_change().
|
signalinherited |
Referenced by octave_dock_widget::octave_dock_widget(), and octave_dock_widget::event().
|
slotinherited |
Definition at line 652 of file octave-dock-widget.cc.
References octave_dock_widget::event(), and octave_dock_widget::store_geometry().
|
slot |
Definition at line 88 of file history-dock-widget.cc.
References base_qobject::get_resource_manager(), resource_manager::get_settings(), hw_filter_active(), hw_filter_shown(), hw_mru_list(), gui_pref::key, m_filter, m_filter_checkbox, m_filter_shown, label_dock_widget::m_octave_qobj, and octave_dock_widget::save_settings().
|
privateslot |
Definition at line 263 of file history-dock-widget.cc.
References m_filter, and m_history_list_view.
|
inlineinherited |
Definition at line 101 of file octave-dock-widget.h.
References octave_dock_widget::adopted(), and octave_dock_widget::m_adopted.
|
private |
Definition at line 121 of file history-dock-widget.cc.
References m_filter, and m_history_list_view.
Referenced by filter_activate(), and handle_contextmenu_filter().
|
privateinherited |
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, octave_dock_widget::m_predecessor_widget, and resource_manager::update_settings_key().
Referenced by octave_dock_widget::closeEvent(), and octave_dock_widget::make_window().
|
slot |
Definition at line 61 of file history-dock-widget.cc.
References m_history_list_view, and m_history_model.
Referenced by base_qobject::history_widget().
|
inherited |
Definition at line 412 of file octave-dock-widget.cc.
References label_dock_widget::copyClipboard(), main_window::copyClipboard_signal(), label_dock_widget::do_undo(), octave_dock_widget::m_main_window, label_dock_widget::pasteClipboard(), main_window::pasteClipboard_signal(), label_dock_widget::selectAll(), main_window::selectAll_signal(), and main_window::undo_signal().
|
inherited |
Definition at line 406 of file octave-dock-widget.cc.
References octave_dock_widget::m_predecessor_widget.
Referenced by main_window::focus_changed().
|
privateinherited |
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, octave_dock_widget::m_bg_color, octave_dock_widget::m_bg_color_active, label_dock_widget::m_close_action, label_dock_widget::m_close_button, octave_dock_widget::m_custom_style, label_dock_widget::m_dock_action, label_dock_widget::m_dock_button, octave_dock_widget::m_fg_color, octave_dock_widget::m_fg_color_active, octave_dock_widget::m_icon_color, octave_dock_widget::m_icon_color_active, label_dock_widget::m_icon_size, label_dock_widget::m_octave_qobj, octave_dock_widget::m_title_3d, and qdockwidget_css().
Referenced by octave_dock_widget::handle_active_dock_changed(), octave_dock_widget::handle_settings(), octave_dock_widget::make_widget(), and octave_dock_widget::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(), construct(), file_editor::construct(), and variable_editor::edit_variable().
|
privateinherited |
Definition at line 630 of file octave-dock-widget.cc.
References octave_dock_widget::m_recent_dock_geom, and octave_dock_widget::m_recent_float_geom.
Referenced by octave_dock_widget::moveEvent(), octave_dock_widget::resizeEvent(), and octave_dock_widget::save_settings().
|
protectedvirtualslotinherited |
Definition at line 688 of file octave-dock-widget.cc.
References octave_dock_widget::default_dock(), label_dock_widget::m_default_float_button, label_dock_widget::m_dock_action, octave_dock_widget::m_waiting_for_mouse_button_release, and octave_dock_widget::queue_make_widget().
Referenced by octave_dock_widget::octave_dock_widget().
|
privateslot |
Definition at line 109 of file history-dock-widget.cc.
References m_filter.
Referenced by construct().
|
privateinherited |
Definition at line 171 of file octave-dock-widget.h.
Referenced by octave_dock_widget::adopted(), octave_dock_widget::make_widget(), and octave_dock_widget::set_adopted().
|
privateinherited |
Definition at line 175 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
privateinherited |
Definition at line 176 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 80 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), variable_dock_widget::variable_dock_widget(), and octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 78 of file octave-dock-widget.h.
Referenced by octave_dock_widget::set_style().
|
privateinherited |
Definition at line 172 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_active_dock_changed(), octave_dock_widget::handle_settings(), and octave_dock_widget::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::octave_dock_widget(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), and octave_dock_widget::toplevel_change().
|
protectedinherited |
Definition at line 79 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), variable_dock_widget::variable_dock_widget(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), octave_dock_widget::set_style(), octave_dock_widget::toplevel_change(), and variable_dock_widget::toplevel_change().
|
protectedinherited |
Definition at line 77 of file octave-dock-widget.h.
Referenced by octave_dock_widget::set_style().
|
privateinherited |
Definition at line 177 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
privateinherited |
Definition at line 178 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
private |
Definition at line 103 of file history-dock-widget.h.
Referenced by construct(), copyClipboard(), filter_activate(), pasteClipboard(), save_settings(), selectAll(), set_filter_focus(), and update_filter_history().
|
private |
Definition at line 102 of file history-dock-widget.h.
Referenced by construct(), handle_contextmenu_filter(), handle_visibility(), and save_settings().
|
private |
Definition at line 105 of file history-dock-widget.h.
Referenced by construct(), ctxMenu(), handle_contextmenu_filter(), and save_settings().
|
private |
Definition at line 104 of file history-dock-widget.h.
Referenced by construct(), and handle_contextmenu_filter().
|
privateinherited |
Definition at line 173 of file octave-dock-widget.h.
Referenced by octave_dock_widget::eventFilter(), and octave_dock_widget::handle_settings().
|
private |
Definition at line 95 of file history-dock-widget.h.
Referenced by append_history(), construct(), copyClipboard(), ctxMenu(), handle_contextmenu_copy(), handle_contextmenu_create_script(), handle_contextmenu_evaluate(), notice_settings(), selectAll(), set_filter_focus(), and set_history().
|
private |
Stores the current history_model.
Definition at line 100 of file history-dock-widget.h.
Referenced by append_history(), clear_history(), construct(), and set_history().
|
privateinherited |
Definition at line 179 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), octave_dock_widget::handle_settings(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), and octave_dock_widget::set_style().
|
privateinherited |
Definition at line 180 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 75 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), variable_dock_widget::variable_dock_widget(), and octave_dock_widget::set_style().
|
privateinherited |
Stores the parent, since we are reparenting to 0.
Definition at line 169 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), octave_dock_widget::handle_settings(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), and octave_dock_widget::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::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(), construct(), file_editor::construct(), variable_editor::construct_tool_bar(), files_dock_widget::contextmenu_requested(), 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(), octave_dock_widget::make_widget(), octave_dock_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(), save_settings(), octave_dock_widget::save_settings(), workspace_view::save_settings(), octave_dock_widget::set_focus_predecessor(), file_editor::set_shortcuts(), octave_dock_widget::set_style(), workspace_view::setModel(), files_dock_widget::toggle_header(), workspace_view::toggle_header(), and file_editor::toggle_preference().
|
privateinherited |
Definition at line 181 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), octave_dock_widget::set_focus_predecessor(), and octave_dock_widget::set_predecessor_widget().
|
privateinherited |
Definition at line 183 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), octave_dock_widget::make_widget(), octave_dock_widget::save_settings(), and octave_dock_widget::store_geometry().
|
privateinherited |
Definition at line 182 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings(), octave_dock_widget::make_window(), octave_dock_widget::save_settings(), and octave_dock_widget::store_geometry().
|
private |
Definition at line 96 of file history-dock-widget.h.
Referenced by construct(), and filter_activate().
|
privateinherited |
Definition at line 174 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget(), octave_dock_widget::handle_settings(), and octave_dock_widget::set_style().
|
protectedinherited |
Definition at line 76 of file octave-dock-widget.h.
Referenced by variable_dock_widget::variable_dock_widget(), octave_dock_widget::handle_settings(), and label_dock_widget::set_title().
|
privateinherited |
Definition at line 184 of file octave-dock-widget.h.
Referenced by octave_dock_widget::event(), octave_dock_widget::make_window(), and octave_dock_widget::toplevel_change().