#include "terminal-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) |
void | notice_settings (const gui_settings *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 | execute_command_signal (const QString &) |
void | interpreter_output_signal (const QString &) |
void | new_command_line_signal (const QString &=QString()) |
void | queue_make_widget (void) |
void | queue_make_window (bool widget_was_dragged) |
void | settings_changed (const gui_settings *settings) |
void | update_prompt_signal (const QString &) |
Public Member Functions | |
terminal_dock_widget (QWidget *parent, base_qobject &oct_qobj) | |
~terminal_dock_widget (void)=default | |
bool | adopted (void) const |
command_widget * | get_command_widget (void) |
QTerminal * | get_qterminal (void) |
bool | has_focus (void) const |
void | init_command_prompt () |
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 |
bool | m_experimental_terminal_widget |
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 |
QWidget * | m_terminal |
int | m_title_3d |
bool | m_waiting_for_mouse_button_release |
Definition at line 40 of file terminal-dock-widget.h.
terminal_dock_widget::terminal_dock_widget | ( | QWidget * | parent, |
base_qobject & | oct_qobj | ||
) |
Definition at line 48 of file terminal-dock-widget.cc.
References QTerminal::create(), cs_font(), cs_font_size(), console::execute_command(), execute_command_signal(), command_widget::get_console(), resource_manager::get_settings(), global_mono_font(), QTerminal::handle_visibility_changed(), command_widget::insert_interpreter_output(), interpreter_output_signal(), gui_pref::key, console::new_command_line(), new_command_line_signal(), QTerminal::notice_settings(), command_widget::notice_settings(), settings_changed(), command_widget::update_prompt(), and update_prompt_signal().
|
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().
|
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().
|
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().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 62 of file octave-dock-widget.h.
Referenced by octave_dock_widget::set_main_window().
|
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.
|
signal |
Referenced by terminal_dock_widget(), and main_window::adopt_terminal_widget().
|
protectedinherited |
Definition at line 445 of file octave-dock-widget.cc.
References Faddeeva::w().
Referenced by file_editor::editor_tab_has_focus().
command_widget * terminal_dock_widget::get_command_widget | ( | void | ) |
Definition at line 147 of file terminal-dock-widget.cc.
References m_experimental_terminal_widget, and m_terminal.
Referenced by init_command_prompt().
QTerminal * terminal_dock_widget::get_qterminal | ( | void | ) |
Definition at line 140 of file terminal-dock-widget.cc.
References m_experimental_terminal_widget, and m_terminal.
|
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().
|
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().
|
virtualslotinherited |
Definition at line 677 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed().
Referenced by octave_dock_widget::octave_dock_widget(), history_dock_widget::handle_visibility(), and file_editor::handle_visibility().
bool terminal_dock_widget::has_focus | ( | void | ) | const |
Definition at line 134 of file terminal-dock-widget.cc.
References Faddeeva::w().
void terminal_dock_widget::init_command_prompt | ( | ) |
Definition at line 159 of file terminal-dock-widget.cc.
References get_command_widget(), command_widget::init_command_prompt(), and m_experimental_terminal_widget.
|
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().
|
signal |
Referenced by terminal_dock_widget(), and base_qobject::terminal_widget().
|
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().
|
signal |
Referenced by terminal_dock_widget(), and base_qobject::terminal_widget().
|
slot |
Definition at line 154 of file terminal-dock-widget.cc.
References settings_changed().
Referenced by main_window::adopt_terminal_widget().
|
inlineprotectedvirtualslotinherited |
Slots to handle copy & paste.
Definition at line 63 of file octave-dock-widget.h.
Referenced by octave_dock_widget::set_main_window().
|
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().
|
virtualslotinherited |
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, octave_dock_widget::m_recent_dock_geom, octave_dock_widget::m_recent_float_geom, and octave_dock_widget::store_geometry().
Referenced by octave_dock_widget::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 octave_dock_widget::set_main_window().
|
inlineinherited |
Definition at line 101 of file octave-dock-widget.h.
References octave_dock_widget::adopted(), and octave_dock_widget::m_adopted.
|
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().
|
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(), history_dock_widget::construct(), file_editor::construct(), and variable_editor::edit_variable().
|
signal |
Referenced by terminal_dock_widget(), and notice_settings().
|
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().
|
signal |
Referenced by terminal_dock_widget(), and base_qobject::terminal_widget().
|
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().
|
private |
Definition at line 87 of file terminal-dock-widget.h.
Referenced by get_command_widget(), get_qterminal(), and init_command_prompt().
|
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().
|
privateinherited |
Definition at line 173 of file octave-dock-widget.h.
Referenced by octave_dock_widget::eventFilter(), and octave_dock_widget::handle_settings().
|
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(), 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(), 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(), history_dock_widget::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 90 of file terminal-dock-widget.h.
Referenced by get_command_widget(), and get_qterminal().
|
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().