labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

AbstractColumnRemoveRowsCmd Class Reference

Remove rows from a column. More...

#include <abstractcolumncommands.h>

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

Public Member Functions

 AbstractColumnRemoveRowsCmd (AbstractColumn *col, int first, int count, QUndoCommand *parent=nullptr)
 Ctor. More...
 
 ~AbstractColumnRemoveRowsCmd () override
 Dtor. More...
 
void redo () override
 
void undo () override
 

Protected Attributes

AbstractColumnPrivatem_col
 Private object of AbstractColumn to be modified. More...
 
int m_first
 First row number to be removed. More...
 
int m_count
 Number of rows to be removed. More...
 
IntervalAttribute< bool > m_masking
 

Detailed Description

Remove rows from a column.


See AbstractColumnInsertRowsCmd for a discussion of the design.

Definition at line 80 of file abstractcolumncommands.h.

Constructor & Destructor Documentation

◆ AbstractColumnRemoveRowsCmd()

AbstractColumnRemoveRowsCmd::AbstractColumnRemoveRowsCmd ( AbstractColumn col,
int  first,
int  count,
QUndoCommand *  parent = nullptr 
)
explicit

Ctor.

Definition at line 225 of file abstractcolumncommands.cpp.

◆ ~AbstractColumnRemoveRowsCmd()

AbstractColumnRemoveRowsCmd::~AbstractColumnRemoveRowsCmd ( )
overridedefault

Dtor.

Member Function Documentation

◆ redo()

void AbstractColumnRemoveRowsCmd::redo ( )
override

◆ undo()

void AbstractColumnRemoveRowsCmd::undo ( )
override

Definition at line 243 of file abstractcolumncommands.cpp.

References m_col, m_masking, and AbstractColumnPrivate::m_masking.

Member Data Documentation

◆ m_col

AbstractColumnRemoveRowsCmd::m_col
protected

Private object of AbstractColumn to be modified.

Definition at line 89 of file abstractcolumncommands.h.

Referenced by redo(), and undo().

◆ m_count

AbstractColumnRemoveRowsCmd::m_count
protected

Number of rows to be removed.

Definition at line 91 of file abstractcolumncommands.h.

Referenced by redo().

◆ m_first

AbstractColumnRemoveRowsCmd::m_first
protected

First row number to be removed.

Definition at line 90 of file abstractcolumncommands.h.

Referenced by redo().

◆ m_masking

IntervalAttribute<bool> AbstractColumnRemoveRowsCmd::m_masking
protected

Definition at line 92 of file abstractcolumncommands.h.

Referenced by redo(), and undo().


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