GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::history_dock_widget Class Reference

#include "history-dock-widget.h"

Inheritance diagram for octave::history_dock_widget:
Collaboration diagram for octave::history_dock_widget:

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 *)
 
QMainWindowmain_win (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 information (const QString &message)
 
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

 history_dock_widget (QWidget *parent, base_qobject &oct_qobj)
 
 ~history_dock_widget (void)=default
 
virtual void connect_visibility_changed (void)
 
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 handle_visibility_changed (bool visible)
 Slot to steer changing visibility from outside. More...
 
virtual void toplevel_change (bool)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 
bool event (QEvent *event)
 
QWidgetfocusWidget (void)
 

Protected Attributes

QAction * m_close_action
 
QToolButtonm_close_button
 
QAbstractButton * m_default_close_button
 
QAbstractButton * m_default_float_button
 
QAction * m_dock_action
 
QToolButtonm_dock_button
 
int m_icon_size
 
base_qobjectm_octave_qobj
 
QWidgetm_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_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
 
QComboBox * m_filter
 
QCheckBox * m_filter_checkbox
 
bool m_filter_shown
 
QWidgetm_filter_widget
 
QListView * m_history_list_view
 
QStringListModel * m_history_model
 Stores the current history_model. More...
 
QString m_icon_color
 
QString m_icon_color_active
 
QMainWindowm_parent
 Stores the parent, since we are reparenting to 0. More...
 
octave_dock_widgetm_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
 

Detailed Description

Definition at line 42 of file history-dock-widget.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxFilterHistory 

Definition at line 108 of file history-dock-widget.h.

Constructor & Destructor Documentation

◆ history_dock_widget()

octave::history_dock_widget::history_dock_widget ( QWidget parent,
base_qobject oct_qobj 
)

◆ ~history_dock_widget()

octave::history_dock_widget::~history_dock_widget ( void  )
default

Member Function Documentation

◆ activate

void octave::octave_dock_widget::activate ( void  )
virtualslotinherited

◆ active_changed

void octave::octave_dock_widget::active_changed ( bool  active)
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().

◆ append_history

void octave::history_dock_widget::append_history ( const QString &  hist_entry)
slot

Definition at line 73 of file history-dock-widget.cc.

References m_history_list_view, and m_history_model.

◆ change_visibility

void octave::octave_dock_widget::change_visibility ( bool  )
privateslotinherited

◆ clear_history

void octave::history_dock_widget::clear_history ( void  )
slot

Definition at line 89 of file history-dock-widget.cc.

References m_history_model.

◆ closeEvent()

void octave::octave_dock_widget::closeEvent ( QCloseEvent *  e)
protectedvirtualinherited

◆ command_create_script

void octave::history_dock_widget::command_create_script ( const QString &  commands)
signal

Signal emitted whenever the user selects commands and chooses "Create script" from the popup menu.

Referenced by history_dock_widget(), and handle_contextmenu_create_script().

◆ command_double_clicked

void octave::history_dock_widget::command_double_clicked ( const QString &  command)
signal

Signal emitted whenever the user double-clicks a command in the history.

Referenced by history_dock_widget(), handle_contextmenu_evaluate(), and handle_double_click().

◆ connect_visibility_changed()

void octave::octave_dock_widget::connect_visibility_changed ( void  )
virtualinherited

◆ construct()

◆ copyClipboard

void octave::history_dock_widget::copyClipboard ( void  )
privateslot

Definition at line 228 of file history-dock-widget.cc.

References handle_contextmenu_copy(), m_filter, and m_history_list_view.

◆ ctxMenu

◆ default_dock

void octave::octave_dock_widget::default_dock ( bool  not_used = false)
slotinherited

Definition at line 393 of file octave-dock-widget.cc.

Referenced by octave::octave_dock_widget::toplevel_change().

◆ do_undo

virtual void octave::label_dock_widget::do_undo ( void  )
inlineprotectedvirtualslotinherited

Slot to handle undo.

Definition at line 67 of file octave-dock-widget.h.

Referenced by octave::label_dock_widget::label_dock_widget().

◆ event()

◆ eventFilter

bool octave::octave_dock_widget::eventFilter ( QObject obj,
QEvent *  e 
)
protectedslotinherited

Event filter for double clicks into the window decoration elements.

Definition at line 578 of file octave-dock-widget.cc.

◆ filter_activate

void octave::history_dock_widget::filter_activate ( bool  enable)
privateslot

Definition at line 127 of file history-dock-widget.cc.

References m_filter, m_sort_filter_proxy_model, and octave::state.

Referenced by construct(), and handle_visibility().

◆ focusWidget()

QWidget * octave::octave_dock_widget::focusWidget ( void  )
protectedinherited

Definition at line 418 of file octave-dock-widget.cc.

References Faddeeva::w().

Referenced by octave::file_editor::editor_tab_has_focus().

◆ handle_active_dock_changed

void octave::octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slotinherited

◆ handle_contextmenu_copy

void octave::history_dock_widget::handle_contextmenu_copy ( bool  flag)
privateslot

Definition at line 170 of file history-dock-widget.cc.

References m_history_list_view.

Referenced by copyClipboard(), and ctxMenu().

◆ handle_contextmenu_create_script

void octave::history_dock_widget::handle_contextmenu_create_script ( bool  flag)
privateslot

Definition at line 200 of file history-dock-widget.cc.

References command_create_script(), and m_history_list_view.

Referenced by ctxMenu().

◆ handle_contextmenu_evaluate

void octave::history_dock_widget::handle_contextmenu_evaluate ( bool  flag)
privateslot

Definition at line 189 of file history-dock-widget.cc.

References command_double_clicked(), and m_history_list_view.

Referenced by ctxMenu().

◆ handle_contextmenu_filter

void octave::history_dock_widget::handle_contextmenu_filter ( void  )
privateslot

Definition at line 222 of file history-dock-widget.cc.

References m_filter_shown, and m_filter_widget.

Referenced by ctxMenu().

◆ handle_double_click

void octave::history_dock_widget::handle_double_click ( QModelIndex  modelIndex)
privateslot

Definition at line 165 of file history-dock-widget.cc.

References command_double_clicked().

Referenced by construct().

◆ handle_settings

◆ handle_visibility

void octave::history_dock_widget::handle_visibility ( bool  visible)
privatevirtualslot

◆ handle_visibility_changed

virtual void octave::octave_dock_widget::handle_visibility_changed ( bool  visible)
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().

◆ information

void octave::history_dock_widget::information ( const QString &  message)
signal

Referenced by history_dock_widget().

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

void octave::octave_dock_widget::interpreter_event ( const meth_callback meth)
signalinherited

◆ main_win

◆ make_widget

◆ make_window

◆ moveEvent

void octave::octave_dock_widget::moveEvent ( QMoveEvent *  event)
slotinherited

◆ notice_settings

void octave::history_dock_widget::notice_settings ( const gui_settings settings)
slot

◆ pasteClipboard

void octave::history_dock_widget::pasteClipboard ( void  )
privateslot

Definition at line 240 of file history-dock-widget.cc.

References m_filter.

◆ queue_make_widget

void octave::octave_dock_widget::queue_make_widget ( void  )
signalinherited

◆ queue_make_window

void octave::octave_dock_widget::queue_make_window ( bool  widget_was_dragged)
signalinherited

◆ resizeEvent

void octave::octave_dock_widget::resizeEvent ( QResizeEvent *  event)
slotinherited

◆ save_settings

◆ selectAll

void octave::history_dock_widget::selectAll ( void  )
privateslot

Definition at line 251 of file history-dock-widget.cc.

References m_filter, and m_history_list_view.

◆ set_focus_predecessor()

◆ set_history

void octave::history_dock_widget::set_history ( const QStringList &  hist)
slot

Definition at line 67 of file history-dock-widget.cc.

References m_history_list_view, and m_history_model.

◆ set_predecessor_widget()

void octave::octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)
inherited

◆ set_style()

◆ set_title()

◆ store_geometry()

◆ toplevel_change

◆ update_filter_history

void octave::history_dock_widget::update_filter_history ( void  )
privateslot

Definition at line 115 of file history-dock-widget.cc.

References m_filter.

Referenced by construct().

Member Data Documentation

◆ m_bg_color

QColor octave::octave_dock_widget::m_bg_color
privateinherited

◆ m_bg_color_active

QColor octave::octave_dock_widget::m_bg_color_active
privateinherited

◆ m_close_action

◆ m_close_button

QToolButton* octave::label_dock_widget::m_close_button
protectedinherited

◆ m_custom_style

bool octave::octave_dock_widget::m_custom_style
privateinherited

◆ m_default_close_button

QAbstractButton* octave::label_dock_widget::m_default_close_button
protectedinherited

Definition at line 81 of file octave-dock-widget.h.

Referenced by octave::label_dock_widget::label_dock_widget().

◆ m_default_float_button

◆ m_dock_action

◆ m_dock_button

QToolButton* octave::label_dock_widget::m_dock_button
protectedinherited

◆ m_fg_color

QColor octave::octave_dock_widget::m_fg_color
privateinherited

◆ m_fg_color_active

QColor octave::octave_dock_widget::m_fg_color_active
privateinherited

◆ m_filter

QComboBox* octave::history_dock_widget::m_filter
private

◆ m_filter_checkbox

QCheckBox* octave::history_dock_widget::m_filter_checkbox
private

Definition at line 103 of file history-dock-widget.h.

Referenced by construct(), handle_visibility(), and save_settings().

◆ m_filter_shown

bool octave::history_dock_widget::m_filter_shown
private

◆ m_filter_widget

QWidget* octave::history_dock_widget::m_filter_widget
private

Definition at line 105 of file history-dock-widget.h.

Referenced by construct(), and handle_contextmenu_filter().

◆ m_history_list_view

QListView* octave::history_dock_widget::m_history_list_view
private

◆ m_history_model

QStringListModel* octave::history_dock_widget::m_history_model
private

Stores the current history_model.

Definition at line 101 of file history-dock-widget.h.

Referenced by append_history(), clear_history(), construct(), and set_history().

◆ m_icon_color

◆ m_icon_color_active

QString octave::octave_dock_widget::m_icon_color_active
privateinherited

◆ m_icon_size

◆ m_octave_qobj

base_qobject& octave::label_dock_widget::m_octave_qobj
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(), construct(), octave::file_editor::construct(), octave::variable_editor::construct_tool_bar(), octave::files_dock_widget::contextmenu_requested(), 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(), 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().

◆ m_parent

QMainWindow* octave::octave_dock_widget::m_parent
privateinherited

◆ m_predecessor_widget

◆ m_recent_dock_geom

◆ m_recent_float_geom

◆ m_sort_filter_proxy_model

QSortFilterProxyModel octave::history_dock_widget::m_sort_filter_proxy_model
private

Definition at line 97 of file history-dock-widget.h.

Referenced by construct(), and filter_activate().

◆ m_title_3d

int octave::octave_dock_widget::m_title_3d
privateinherited

◆ m_title_widget

◆ m_waiting_for_mouse_button_release

bool octave::octave_dock_widget::m_waiting_for_mouse_button_release
privateinherited

The documentation for this class was generated from the following files: