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

#include "variable-editor.h"

Inheritance diagram for octave::variable_editor:
Collaboration diagram for octave::variable_editor:

Public Slots

virtual void activate (void)
 
void callUpdate (const QModelIndex &, const QModelIndex &)
 
void default_dock (bool not_used=false)
 
void edit_variable (const QString &name, const octave_value &val)
 
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 record_hovered_focus_variable (void)
 
void resizeEvent (QResizeEvent *event)
 
void restore_hovered_focus_variable (void)
 
void save_settings (void)
 
void variable_destroyed (QObject *obj)
 
void variable_focused (const QString &name)
 

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e. More...
 
void clear_content_signal (void)
 
void command_signal (const QString &cmd)
 
void copy_clipboard_signal (void)
 
void delete_selected_signal (void)
 
void finished (void)
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void level_up_signal (void)
 
void paste_clipboard_signal (void)
 
void queue_make_widget (void)
 
void queue_make_window (bool widget_was_dragged)
 
void refresh_signal (void)
 
void save_signal (void)
 
void updated (void)
 

Public Member Functions

 variable_editor (const variable_editor &)=delete
 
 variable_editor (QWidget *parent, base_qobject &oct_qobj)
 
 ~variable_editor (void)=default
 
virtual void connect_visibility_changed (void)
 
variable_editoroperator= (const variable_editor &)=delete
 
void refresh (void)
 
void set_predecessor_widget (octave_dock_widget *prev_widget)
 
void set_title (const QString &)
 
void tab_to_front (void)
 

Protected Slots

void closeEvent (QCloseEvent *)
 
void copyClipboard (void)
 
void cutClipboard (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...
 
virtual void handle_visibility_changed (bool visible)
 Slot to steer changing visibility from outside. More...
 
void levelUp (void)
 
void pasteClipboard (void)
 
void save (void)
 
virtual void toplevel_change (bool)
 
virtual void selectAll (void)
 Slots to handle copy & paste. More...
 

Protected Member Functions

bool event (QEvent *event)
 
void focusInEvent (QFocusEvent *ev)
 
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

QAction * add_action (QMenu *menu, const QIcon &icon, const QString &text, const char *member)
 
QAction * add_tool_bar_button (const QIcon &icon, const QString &text, const QObject *receiver, const char *member)
 
void construct_tool_bar (void)
 
void set_focus_predecessor (void)
 
void set_style (bool active)
 
void store_geometry (void)
 
void update_colors (void)
 

Private Attributes

int m_add_font_height
 
bool m_alternate_rows
 
QColor m_bg_color
 
QColor m_bg_color_active
 
QString m_current_focus_vname
 
bool m_custom_style
 
int m_default_height
 
int m_default_width
 
QColor m_fg_color
 
QColor m_fg_color_active
 
QWidgetm_focus_widget
 
variable_dock_widgetm_focus_widget_vdw
 
QFont m_font
 
QString m_hovered_focus_vname
 
QString m_icon_color
 
QString m_icon_color_active
 
dw_main_windowm_main
 
QMainWindowm_parent
 Stores the parent, since we are reparenting to 0. More...
 
QSignalMapper * m_plot_mapper
 
octave_dock_widgetm_predecessor_widget
 
QRect m_recent_dock_geom
 
QRect m_recent_float_geom
 
QFont m_sel_font
 
QString m_stylesheet
 
QList< QColor > m_table_colors
 
int m_title_3d
 
QToolBar * m_tool_bar
 
bool m_use_terminal_font
 
bool m_waiting_for_mouse_button_release
 

Detailed Description

Definition at line 280 of file variable-editor.h.

Constructor & Destructor Documentation

◆ variable_editor() [1/2]

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

◆ ~variable_editor()

octave::variable_editor::~variable_editor ( void  )
default

◆ variable_editor() [2/2]

octave::variable_editor::variable_editor ( const variable_editor )
delete

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

◆ add_action()

QAction * octave::variable_editor::add_action ( QMenu menu,
const QIcon &  icon,
const QString &  text,
const char *  member 
)
private

Definition at line 1150 of file variable-editor.cc.

◆ add_tool_bar_button()

QAction * octave::variable_editor::add_tool_bar_button ( const QIcon &  icon,
const QString &  text,
const QObject receiver,
const char *  member 
)
private

Definition at line 1576 of file variable-editor.cc.

References m_tool_bar.

Referenced by construct_tool_bar().

◆ callUpdate

void octave::variable_editor::callUpdate ( const QModelIndex &  ,
const QModelIndex &   
)
slot

Definition at line 1352 of file variable-editor.cc.

References updated().

Referenced by edit_variable().

◆ change_visibility

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

◆ clear_content_signal

void octave::variable_editor::clear_content_signal ( void  )
signal

Referenced by cutClipboard(), and edit_variable().

◆ closeEvent

void octave::variable_editor::closeEvent ( QCloseEvent *  e)
protectedslot

Definition at line 1419 of file variable-editor.cc.

References octave::octave_dock_widget::closeEvent(), and finished().

◆ command_signal

void octave::variable_editor::command_signal ( const QString &  cmd)
signal

Referenced by variable_editor(), and edit_variable().

◆ connect_visibility_changed()

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

◆ construct_tool_bar()

◆ copy_clipboard_signal

void octave::variable_editor::copy_clipboard_signal ( void  )
signal

Referenced by copyClipboard(), and edit_variable().

◆ copyClipboard

void octave::variable_editor::copyClipboard ( void  )
protectedslot

Definition at line 1510 of file variable-editor.cc.

References copy_clipboard_signal().

Referenced by construct_tool_bar(), cutClipboard(), and edit_variable().

◆ cutClipboard

void octave::variable_editor::cutClipboard ( void  )
protectedslot

Definition at line 1502 of file variable-editor.cc.

References clear_content_signal(), and copyClipboard().

Referenced by construct_tool_bar().

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

◆ delete_selected_signal

void octave::variable_editor::delete_selected_signal ( void  )
signal

Referenced by edit_variable().

◆ 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

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

◆ finished

void octave::variable_editor::finished ( void  )
signal

Referenced by closeEvent().

◆ focusInEvent()

void octave::variable_editor::focusInEvent ( QFocusEvent *  ev)
protected

Definition at line 1113 of file variable-editor.cc.

References m_focus_widget, m_focus_widget_vdw, and m_main.

Referenced by variable_destroyed().

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

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

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

◆ level_up_signal

void octave::variable_editor::level_up_signal ( void  )
signal

Referenced by edit_variable(), and levelUp().

◆ levelUp

void octave::variable_editor::levelUp ( void  )
protectedslot

Definition at line 1524 of file variable-editor.cc.

References level_up_signal().

Referenced by construct_tool_bar(), and edit_variable().

◆ main_win

◆ make_widget

◆ make_window

◆ moveEvent

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

◆ notice_settings

◆ operator=()

variable_editor& octave::variable_editor::operator= ( const variable_editor )
delete

◆ paste_clipboard_signal

void octave::variable_editor::paste_clipboard_signal ( void  )
signal

Referenced by edit_variable(), and pasteClipboard().

◆ pasteClipboard

void octave::variable_editor::pasteClipboard ( void  )
protectedslot

Definition at line 1516 of file variable-editor.cc.

References paste_clipboard_signal(), and updated().

Referenced by construct_tool_bar(), and edit_variable().

◆ 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

◆ record_hovered_focus_variable

void octave::variable_editor::record_hovered_focus_variable ( void  )
slot

Definition at line 1473 of file variable-editor.cc.

References m_current_focus_vname, and m_hovered_focus_vname.

Referenced by construct_tool_bar().

◆ refresh()

void octave::variable_editor::refresh ( void  )

Definition at line 1346 of file variable-editor.cc.

References refresh_signal().

Referenced by octave::main_window::refresh_variable_editor().

◆ refresh_signal

void octave::variable_editor::refresh_signal ( void  )
signal

Referenced by edit_variable(), and refresh().

◆ resizeEvent

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

◆ restore_hovered_focus_variable

void octave::variable_editor::restore_hovered_focus_variable ( void  )
slot

Definition at line 1479 of file variable-editor.cc.

References m_hovered_focus_vname.

Referenced by construct_tool_bar().

◆ save

void octave::variable_editor::save ( void  )
protectedslot

Definition at line 1496 of file variable-editor.cc.

References save_signal().

Referenced by construct_tool_bar(), and edit_variable().

◆ save_settings

◆ save_signal

void octave::variable_editor::save_signal ( void  )
signal

Referenced by edit_variable(), and save().

◆ selectAll

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

Slots to handle copy & paste.

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

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

◆ set_focus_predecessor()

◆ set_predecessor_widget()

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

◆ set_style()

◆ set_title()

◆ store_geometry()

◆ tab_to_front()

void octave::variable_editor::tab_to_front ( void  )

Definition at line 1328 of file variable-editor.cc.

References octave::octave_dock_widget::main_win().

Referenced by edit_variable().

◆ toplevel_change

◆ update_colors()

void octave::variable_editor::update_colors ( void  )
private

Definition at line 1531 of file variable-editor.cc.

References m_alternate_rows, m_font, m_stylesheet, and m_table_colors.

Referenced by notice_settings().

◆ updated

void octave::variable_editor::updated ( void  )
signal

Referenced by callUpdate(), and pasteClipboard().

◆ variable_destroyed

void octave::variable_editor::variable_destroyed ( QObject obj)
slot

Definition at line 1427 of file variable-editor.cc.

References focusInEvent(), m_focus_widget, m_focus_widget_vdw, and m_tool_bar.

Referenced by edit_variable().

◆ variable_focused

void octave::variable_editor::variable_focused ( const QString &  name)
slot

Definition at line 1446 of file variable-editor.cc.

References m_current_focus_vname, m_focus_widget, m_focus_widget_vdw, and name.

Referenced by edit_variable().

Member Data Documentation

◆ m_add_font_height

int octave::variable_editor::m_add_font_height
private

Definition at line 369 of file variable-editor.h.

Referenced by edit_variable(), and notice_settings().

◆ m_alternate_rows

bool octave::variable_editor::m_alternate_rows
private

Definition at line 373 of file variable-editor.h.

Referenced by edit_variable(), notice_settings(), and update_colors().

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

QString octave::variable_editor::m_current_focus_vname
private

Definition at line 392 of file variable-editor.h.

Referenced by record_hovered_focus_variable(), and variable_focused().

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

int octave::variable_editor::m_default_height
private

Definition at line 367 of file variable-editor.h.

Referenced by edit_variable(), and notice_settings().

◆ m_default_width

int octave::variable_editor::m_default_width
private

Definition at line 365 of file variable-editor.h.

Referenced by notice_settings().

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

QWidget* octave::variable_editor::m_focus_widget
private

Definition at line 398 of file variable-editor.h.

Referenced by focusInEvent(), variable_destroyed(), and variable_focused().

◆ m_focus_widget_vdw

variable_dock_widget* octave::variable_editor::m_focus_widget_vdw
private

Definition at line 400 of file variable-editor.h.

Referenced by focusInEvent(), variable_destroyed(), and variable_focused().

◆ m_font

QFont octave::variable_editor::m_font
private

Definition at line 377 of file variable-editor.h.

Referenced by edit_variable(), notice_settings(), and update_colors().

◆ m_hovered_focus_vname

QString octave::variable_editor::m_hovered_focus_vname
private

◆ m_icon_color

◆ m_icon_color_active

QString octave::octave_dock_widget::m_icon_color_active
privateinherited

◆ m_icon_size

◆ m_main

dw_main_window* octave::variable_editor::m_main
private

Definition at line 361 of file variable-editor.h.

Referenced by variable_editor(), edit_variable(), focusInEvent(), and notice_settings().

◆ 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(), octave::history_dock_widget::construct(), octave::file_editor::construct(), construct_tool_bar(), octave::files_dock_widget::contextmenu_requested(), octave::history_dock_widget::ctxMenu(), octave::files_dock_widget::display_directory(), 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(), octave::history_dock_widget::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_plot_mapper

QSignalMapper* octave::variable_editor::m_plot_mapper
private

Definition at line 396 of file variable-editor.h.

Referenced by construct_tool_bar(), and edit_variable().

◆ m_predecessor_widget

◆ m_recent_dock_geom

◆ m_recent_float_geom

◆ m_sel_font

QFont octave::variable_editor::m_sel_font
private

Definition at line 381 of file variable-editor.h.

◆ m_stylesheet

QString octave::variable_editor::m_stylesheet
private

Definition at line 375 of file variable-editor.h.

Referenced by edit_variable(), and update_colors().

◆ m_table_colors

QList<QColor> octave::variable_editor::m_table_colors
private

Definition at line 383 of file variable-editor.h.

Referenced by variable_editor(), notice_settings(), and update_colors().

◆ m_title_3d

int octave::octave_dock_widget::m_title_3d
privateinherited

◆ m_title_widget

◆ m_tool_bar

QToolBar* octave::variable_editor::m_tool_bar
private

◆ m_use_terminal_font

bool octave::variable_editor::m_use_terminal_font
private

Definition at line 371 of file variable-editor.h.

Referenced by notice_settings().

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