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

#include "workspace-view.h"

Inheritance diagram for octave::workspace_view:
Collaboration diagram for octave::workspace_view:

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)
 
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 setModel (workspace_model *model)
 

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e. More...
 
void command_requested (const QString &cmd)
 Signal that user had requested a command on a variable. More...
 
void edit_variable_signal (const QString &, const octave_value &)
 Signal that user wants to edit a variable. 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)
 
void rename_variable_signal (const QString &, const QString &)
 Signal that user wants to rename a variable. More...
 

Public Member Functions

 workspace_view (QWidget *parent, base_qobject &oct_qobj)
 
 ~workspace_view (void)=default
 
virtual void connect_visibility_changed (void)
 
void set_predecessor_widget (octave_dock_widget *prev_widget)
 
void set_title (const QString &)
 

Protected Slots

void contextmenu_requested (const QPoint &pos)
 
void copyClipboard (void)
 
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...
 
void filter_activate (bool enable)
 
void filter_update (const QString &expression)
 
void handle_contextmenu_clear (void)
 
void handle_contextmenu_copy (void)
 
void handle_contextmenu_copy_value (void)
 
void handle_contextmenu_disp (void)
 
void handle_contextmenu_edit (void)
 
void handle_contextmenu_filter (void)
 
void handle_contextmenu_plot (void)
 
void handle_contextmenu_rename (void)
 
void handle_contextmenu_stem (void)
 
void handle_model_changed (void)
 
virtual void handle_visibility_changed (bool visible)
 Slot to steer changing visibility from outside. More...
 
void header_contextmenu_requested (const QPoint &mpos)
 
void selectAll (void)
 
void toggle_header (int column)
 
virtual void toplevel_change (bool)
 
void update_filter_history (void)
 
virtual void pasteClipboard (void)
 Slots to handle copy & paste. More...
 

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 Slots

void change_visibility (bool)
 

Private Member Functions

QString get_var_name (const QModelIndex &index)
 
void relay_contextmenu_command (const QString &cmdname, bool str=false)
 
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
 
QSortFilterProxyModel m_filter_model
 
bool m_filter_shown
 
QWidgetm_filter_widget
 
QString m_icon_color
 
QString m_icon_color_active
 
workspace_modelm_model
 
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
 
int m_title_3d
 
QTableViewm_view
 
int m_view_previous_row_count
 
bool m_waiting_for_mouse_button_release
 

Detailed Description

Definition at line 46 of file workspace-view.h.

Constructor & Destructor Documentation

◆ workspace_view()

◆ ~workspace_view()

octave::workspace_view::~workspace_view ( 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().

◆ change_visibility

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

◆ closeEvent()

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

◆ command_requested

void octave::workspace_view::command_requested ( const QString &  cmd)
signal

Signal that user had requested a command on a variable.

Referenced by workspace_view(), and relay_contextmenu_command().

◆ connect_visibility_changed()

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

◆ contextmenu_requested

◆ copyClipboard

void octave::workspace_view::copyClipboard ( void  )
protectedslot

Definition at line 523 of file workspace-view.cc.

References handle_contextmenu_copy(), and m_view.

◆ 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().

◆ edit_variable_signal

void octave::workspace_view::edit_variable_signal ( const QString &  ,
const octave_value  
)
signal

Signal that user wants to edit a variable.

Referenced by workspace_view(), and handle_contextmenu_edit().

◆ 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::workspace_view::filter_activate ( bool  enable)
protectedslot

Definition at line 265 of file workspace-view.cc.

References filter_update(), m_filter, m_filter_model, and octave::state.

Referenced by workspace_view().

◆ filter_update

void octave::workspace_view::filter_update ( const QString &  expression)
protectedslot

Definition at line 258 of file workspace-view.cc.

References handle_model_changed(), and m_filter_model.

Referenced by workspace_view(), and filter_activate().

◆ 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().

◆ get_var_name()

QString octave::workspace_view::get_var_name ( const QModelIndex &  index)
private

◆ 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_clear

void octave::workspace_view::handle_contextmenu_clear ( void  )
protectedslot

Definition at line 478 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

◆ handle_contextmenu_copy

void octave::workspace_view::handle_contextmenu_copy ( void  )
protectedslot

Definition at line 392 of file workspace-view.cc.

References get_var_name(), and m_view.

Referenced by contextmenu_requested(), and copyClipboard().

◆ handle_contextmenu_copy_value

void octave::workspace_view::handle_contextmenu_copy_value ( void  )
protectedslot

◆ handle_contextmenu_disp

void octave::workspace_view::handle_contextmenu_disp ( void  )
protectedslot

Definition at line 484 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

◆ handle_contextmenu_edit

void octave::workspace_view::handle_contextmenu_edit ( void  )
protectedslot

◆ handle_contextmenu_filter

void octave::workspace_view::handle_contextmenu_filter ( void  )
protectedslot

Definition at line 502 of file workspace-view.cc.

References m_filter_shown, and m_filter_widget.

Referenced by contextmenu_requested().

◆ handle_contextmenu_plot

void octave::workspace_view::handle_contextmenu_plot ( void  )
protectedslot

Definition at line 490 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

◆ handle_contextmenu_rename

void octave::workspace_view::handle_contextmenu_rename ( void  )
protectedslot

Definition at line 438 of file workspace-view.cc.

References get_var_name(), m_view, and rename_variable_signal().

Referenced by contextmenu_requested().

◆ handle_contextmenu_stem

void octave::workspace_view::handle_contextmenu_stem ( void  )
protectedslot

Definition at line 496 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

◆ handle_model_changed

void octave::workspace_view::handle_model_changed ( void  )
protectedslot

Definition at line 509 of file workspace-view.cc.

References m_filter_model, m_view, and m_view_previous_row_count.

Referenced by filter_update().

◆ handle_settings

◆ handle_visibility

void octave::octave_dock_widget::handle_visibility ( bool  visible)
virtualslotinherited

◆ 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().

◆ header_contextmenu_requested

void octave::workspace_view::header_contextmenu_requested ( const QPoint &  mpos)
protectedslot

◆ 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

◆ pasteClipboard

virtual void octave::label_dock_widget::pasteClipboard ( void  )
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().

◆ 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

◆ relay_contextmenu_command()

void octave::workspace_view::relay_contextmenu_command ( const QString &  cmdname,
bool  str = false 
)
private

◆ rename_variable_signal

void octave::workspace_view::rename_variable_signal ( const QString &  ,
const QString &   
)
signal

Signal that user wants to rename a variable.

Referenced by handle_contextmenu_rename().

◆ resizeEvent

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

◆ save_settings

◆ selectAll

void octave::workspace_view::selectAll ( void  )
protectedslot

Definition at line 530 of file workspace-view.cc.

References m_view.

◆ set_focus_predecessor()

◆ set_predecessor_widget()

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

◆ set_style()

◆ set_title()

◆ setModel

◆ store_geometry()

◆ toggle_header

◆ toplevel_change

◆ update_filter_history

void octave::workspace_view::update_filter_history ( void  )
protectedslot

Definition at line 277 of file workspace-view.cc.

References m_filter.

Referenced by workspace_view().

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::workspace_view::m_filter
private

◆ m_filter_checkbox

QCheckBox* octave::workspace_view::m_filter_checkbox
private

Definition at line 120 of file workspace-view.h.

Referenced by workspace_view(), and save_settings().

◆ m_filter_model

QSortFilterProxyModel octave::workspace_view::m_filter_model
private

Definition at line 119 of file workspace-view.h.

Referenced by filter_activate(), filter_update(), handle_model_changed(), and setModel().

◆ m_filter_shown

bool octave::workspace_view::m_filter_shown
private

◆ m_filter_widget

QWidget* octave::workspace_view::m_filter_widget
private

Definition at line 122 of file workspace-view.h.

Referenced by workspace_view(), and handle_contextmenu_filter().

◆ m_icon_color

◆ m_icon_color_active

QString octave::octave_dock_widget::m_icon_color_active
privateinherited

◆ m_icon_size

◆ m_model

workspace_model* octave::workspace_view::m_model
private

◆ 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(), 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(), 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(), save_settings(), octave::octave_dock_widget::set_focus_predecessor(), octave::file_editor::set_shortcuts(), setModel(), octave::files_dock_widget::toggle_header(), 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_title_3d

int octave::octave_dock_widget::m_title_3d
privateinherited

◆ m_title_widget

◆ m_view

◆ m_view_previous_row_count

int octave::workspace_view::m_view_previous_row_count
private

Definition at line 112 of file workspace-view.h.

Referenced by workspace_view(), and handle_model_changed().

◆ 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: