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)  

TableInsertColumnsCmd Class Reference

Insert columns. More...

#include <tablecommands.h>

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

Public Member Functions

 TableInsertColumnsCmd (future::Table::Private &private_obj, int before, 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_before
 Column to insert before. More...
 
QList< Column * > d_cols
 The new columns. More...
 
int d_rows_before
 Row count before the command. More...
 

Detailed Description

Insert columns.

File : tablecommands.h Project : SciDAVis

Description : Commands used in Table (part of the undo/redo framework)

Copyright : (C) 2007 Tilman Benkert (thzs*gmx.net) (replace * with @ in the email addresses)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
    • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
    • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *
    • The number of inserted columns is cols.size().

Definition at line 50 of file tablecommands.h.

Constructor & Destructor Documentation

◆ TableInsertColumnsCmd()

TableInsertColumnsCmd::TableInsertColumnsCmd ( future::Table::Private private_obj,
int  before,
QList< Column * >  cols,
QUndoCommand *  parent = 0 
)

File : tablecommands.cpp Project : SciDAVis

Description : Commands used in Table (part of the undo/redo framework)

Copyright : (C) 2007 Tilman Benkert (thzs*gmx.net) (replace * with @ in the email addresses)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
    • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
    • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 41 of file tablecommands.cpp.

42  : QUndoCommand( parent ), d_private_obj(private_obj), d_before(before), d_cols(cols)
43 {
44  setText(QObject::tr("%1: insert %2 column(s)").arg(d_private_obj.name()).arg(d_cols.size()));
45 }

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

Here is the call graph for this function:

Member Function Documentation

◆ redo()

void TableInsertColumnsCmd::redo ( )
override

Definition at line 47 of file tablecommands.cpp.

References d_before, d_cols, d_private_obj, d_rows_before, future::Table::Private::insertColumns(), and future::Table::Private::rowCount().

Here is the call graph for this function:

◆ undo()

void TableInsertColumnsCmd::undo ( )
override

Definition at line 53 of file tablecommands.cpp.

References d_before, d_cols, d_private_obj, d_rows_before, future::Table::Private::removeColumns(), and future::Table::Private::setRowCount().

Here is the call graph for this function:

Member Data Documentation

◆ d_before

int TableInsertColumnsCmd::d_before
private

Column to insert before.

Definition at line 62 of file tablecommands.h.

Referenced by redo(), and undo().

◆ d_cols

QList<Column*> TableInsertColumnsCmd::d_cols
private

The new columns.

Definition at line 64 of file tablecommands.h.

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

◆ d_private_obj

future::Table::Private& TableInsertColumnsCmd::d_private_obj
private

The private object to modify.

Definition at line 60 of file tablecommands.h.

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

◆ d_rows_before

int TableInsertColumnsCmd::d_rows_before
private

Row count before the command.

Definition at line 66 of file tablecommands.h.

Referenced by redo(), and undo().


The documentation for this class was generated from the following files:
future::Table::Private::setRowCount
void setRowCount(int count)
Set the number of rows of the table.
Definition: future_Table.cpp:2551
future::Table::Private::removeColumns
void removeColumns(int first, int count)
Remove Columns.
Definition: future_Table.cpp:2511
future::Table::Private::rowCount
int rowCount() const
Return the number of rows in the table.
Definition: future_Table.h:522
TableInsertColumnsCmd::d_rows_before
int d_rows_before
Row count before the command.
Definition: tablecommands.h:66
future::Table::Private::insertColumns
void insertColumns(int before, QList< Column * > cols)
Insert columns before column number 'before'.
Definition: future_Table.cpp:2482
TableInsertColumnsCmd::d_cols
QList< Column * > d_cols
The new columns.
Definition: tablecommands.h:64
future::Table::Private::name
QString name() const
Definition: future_Table.h:541
TableInsertColumnsCmd::d_private_obj
future::Table::Private & d_private_obj
The private object to modify.
Definition: tablecommands.h:60
TableInsertColumnsCmd::d_before
int d_before
Column to insert before.
Definition: tablecommands.h:62