GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
variable_editor_view Class Reference

#include "variable-editor.h"

Inheritance diagram for variable_editor_view:
Collaboration diagram for variable_editor_view:

Public Slots

void clearContent (void)
 
void copyClipboard (void)
 
void createColumnMenu (const QPoint &pt)
 
void createContextMenu (const QPoint &pt)
 
void createRowMenu (const QPoint &pt)
 
void createVariable (void)
 
void cutClipboard (void)
 
void delete_selected (void)
 
void handle_horizontal_scroll_action (int action)
 
void handle_vertical_scroll_action (int action)
 
void pasteClipboard (void)
 
QList< int > range_selected (void)
 
void selected_command_requested (const QString &cmd)
 
void transposeContent (void)
 

Signals

void add_edit_actions_signal (QMenu *menu, const QString &qualifier_string)
 
void command_signal (const QString &cmd)
 

Public Member Functions

 variable_editor_view (QWidget *p, base_qobject &oct_qobj)
 
 ~variable_editor_view (void)=default
 
void setModel (QAbstractItemModel *model)
 

Private Member Functions

void add_edit_actions (QMenu *menu, const QString &qualifier_string)
 

Private Attributes

base_qobjectm_octave_qobj
 
variable_editor_modelm_var_model
 

Detailed Description

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

Constructor & Destructor Documentation

◆ variable_editor_view()

variable_editor_view::variable_editor_view ( QWidget p,
base_qobject oct_qobj 
)

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

◆ ~variable_editor_view()

variable_editor_view::~variable_editor_view ( void  )
default

Member Function Documentation

◆ add_edit_actions()

void variable_editor_view::add_edit_actions ( QMenu menu,
const QString &  qualifier_string 
)
private

◆ add_edit_actions_signal

void variable_editor_view::add_edit_actions_signal ( QMenu menu,
const QString &  qualifier_string 
)
signal

◆ clearContent

void variable_editor_view::clearContent ( void  )
slot

◆ command_signal

void variable_editor_view::command_signal ( const QString &  cmd)
signal

◆ copyClipboard

void variable_editor_view::copyClipboard ( void  )
slot

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

References mod().

Referenced by add_edit_actions(), cutClipboard(), and variable_editor::edit_variable().

◆ createColumnMenu

void variable_editor_view::createColumnMenu ( const QPoint &  pt)
slot

◆ createContextMenu

void variable_editor_view::createContextMenu ( const QPoint &  pt)
slot

◆ createRowMenu

void variable_editor_view::createRowMenu ( const QPoint &  pt)
slot

◆ createVariable

void variable_editor_view::createVariable ( void  )
slot

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

References selected_command_requested().

Referenced by add_edit_actions().

◆ cutClipboard

void variable_editor_view::cutClipboard ( void  )
slot

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

References clearContent(), and copyClipboard().

Referenced by add_edit_actions().

◆ delete_selected

void variable_editor_view::delete_selected ( void  )
slot

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

References mod(), and range_selected().

Referenced by add_edit_actions(), and variable_editor::edit_variable().

◆ handle_horizontal_scroll_action

void variable_editor_view::handle_horizontal_scroll_action ( int  action)
slot

◆ handle_vertical_scroll_action

void variable_editor_view::handle_vertical_scroll_action ( int  action)
slot

◆ pasteClipboard

void variable_editor_view::pasteClipboard ( void  )
slot

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

References mod().

Referenced by add_edit_actions(), and variable_editor::edit_variable().

◆ range_selected

QList< int > variable_editor_view::range_selected ( void  )
slot

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

References max(), min(), and range.

Referenced by createColumnMenu(), createRowMenu(), delete_selected(), and selected_command_requested().

◆ selected_command_requested

void variable_editor_view::selected_command_requested ( const QString &  cmd)
slot

◆ setModel()

void variable_editor_view::setModel ( QAbstractItemModel *  model)

◆ transposeContent

void variable_editor_view::transposeContent ( void  )
slot

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

References command_signal().

Referenced by createContextMenu().

Member Data Documentation

◆ m_octave_qobj

base_qobject& variable_editor_view::m_octave_qobj
private

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

Referenced by add_edit_actions().

◆ m_var_model


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