|
SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
| ColumnSetFormulaCmd (Column::Private *col, Interval< int > interval, const QString &formula, QUndoCommand *parent=0) | |
| Ctor. | |
| virtual void | redo () |
| Execute the command. | |
| virtual void | undo () |
| Undo the command. | |
| ~ColumnSetFormulaCmd () | |
| Dtor. | |
Private Attributes | |
| Column::Private * | d_col |
| The private column data to modify. | |
| bool | d_copied |
| A status flag. | |
| QString | d_formula |
| The new formula. | |
| IntervalAttribute< QString > | d_formulas |
| Interval attribute backup. | |
| Interval< int > | d_interval |
| The interval. | |
Set the formula for a given interval
| ColumnSetFormulaCmd::ColumnSetFormulaCmd | ( | Column::Private * | col, |
| Interval< int > | interval, | ||
| const QString & | formula, | ||
| QUndoCommand * | parent = 0 |
||
| ) |
Ctor.
References d_copied, and Column::Private::name().
| ColumnSetFormulaCmd::~ColumnSetFormulaCmd | ( | ) |
Dtor.
|
virtual |
Execute the command.
References d_col, d_copied, d_formula, d_formulas, d_interval, Column::Private::formulaAttribute(), and Column::Private::setFormula().
|
virtual |
Undo the command.
References d_col, d_formulas, and Column::Private::replaceFormulas().
|
private |
|
private |
A status flag.
Referenced by ColumnSetFormulaCmd(), and redo().
|
private |
The new formula.
Referenced by redo().
|
private |
1.8.1