scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

TableRemoveColumnsCmd Class Reference

Remove columns. More...

#include <tablecommands.h>

Inheritance diagram for TableRemoveColumnsCmd:
[legend]
Collaboration diagram for TableRemoveColumnsCmd:
[legend]

Public Member Functions

 TableRemoveColumnsCmd (future::Table::Private &private_obj, int first, int count, QList< Column * > cols, QUndoCommand *parent=0)
 
void redo () override
 
void undo () override
 

Private Attributes

future::Table::Privated_private_obj
 The private object to modify. More...
 
int d_first
 The first column. More...
 
int d_count
 The number of columns to be removed. More...
 
QList< Column * > d_old_cols
 The removed columns. More...
 

Detailed Description

Remove columns.

Definition at line 103 of file tablecommands.h.

Constructor & Destructor Documentation

◆ TableRemoveColumnsCmd()

TableRemoveColumnsCmd::TableRemoveColumnsCmd ( future::Table::Private private_obj,
int  first,
int  count,
QList< Column * >  cols,
QUndoCommand *  parent = 0 
)

Definition at line 90 of file tablecommands.cpp.

91  : QUndoCommand( parent ), d_private_obj(private_obj), d_first(first), d_count(count), d_old_cols(cols)
92 {
93  setText(QObject::tr("%1: remove %2 column(s)").arg(d_private_obj.name()).arg(count));
94 }

References d_private_obj, and future::Table::Private::name().

Here is the call graph for this function:

Member Function Documentation

◆ redo()

void TableRemoveColumnsCmd::redo ( )
override

Definition at line 96 of file tablecommands.cpp.

References d_count, d_first, d_private_obj, and future::Table::Private::removeColumns().

Here is the call graph for this function:

◆ undo()

void TableRemoveColumnsCmd::undo ( )
override

Definition at line 101 of file tablecommands.cpp.

References d_first, d_old_cols, d_private_obj, and future::Table::Private::insertColumns().

Here is the call graph for this function:

Member Data Documentation

◆ d_count

int TableRemoveColumnsCmd::d_count
private

The number of columns to be removed.

Definition at line 117 of file tablecommands.h.

Referenced by redo().

◆ d_first

int TableRemoveColumnsCmd::d_first
private

The first column.

Definition at line 115 of file tablecommands.h.

Referenced by redo(), and undo().

◆ d_old_cols

QList<Column*> TableRemoveColumnsCmd::d_old_cols
private

The removed columns.

Definition at line 119 of file tablecommands.h.

Referenced by undo().

◆ d_private_obj

future::Table::Private& TableRemoveColumnsCmd::d_private_obj
private

The private object to modify.

Definition at line 113 of file tablecommands.h.

Referenced by redo(), TableRemoveColumnsCmd(), and undo().


The documentation for this class was generated from the following files:
TableRemoveColumnsCmd::d_count
int d_count
The number of columns to be removed.
Definition: tablecommands.h:117
future::Table::Private::removeColumns
void removeColumns(int first, int count)
Remove Columns.
Definition: future_Table.cpp:2511
future::Table::Private::insertColumns
void insertColumns(int before, QList< Column * > cols)
Insert columns before column number 'before'.
Definition: future_Table.cpp:2482
TableRemoveColumnsCmd::d_first
int d_first
The first column.
Definition: tablecommands.h:115
future::Table::Private::name
QString name() const
Definition: future_Table.h:541
TableRemoveColumnsCmd::d_private_obj
future::Table::Private & d_private_obj
The private object to modify.
Definition: tablecommands.h:113
TableRemoveColumnsCmd::d_old_cols
QList< Column * > d_old_cols
The removed columns.
Definition: tablecommands.h:119