SciDAVis
1.D4
|
String-IO interface of Column. More...
#include <Column.h>
Public Member Functions | |
virtual SciDAVis::ColumnMode | columnMode () const |
Return the column mode. | |
ColumnStringIO (Column *owner) | |
virtual bool | copy (const AbstractColumn *other) |
Copy another column of the same type. | |
virtual bool | copy (const AbstractColumn *source, int source_start, int dest_start, int num_rows) |
Copies part of another column of the same type. | |
virtual SciDAVis::ColumnDataType | dataType () const |
Return the data type of the column. | |
virtual bool | isInvalid (int row) const |
Return whether a certain row contains an invalid value. | |
virtual SciDAVis::PlotDesignation | plotDesignation () const |
Return the column plot designation. | |
virtual void | replaceTexts (int start_row, const QStringList &texts) |
Set the content of row 'row'. | |
virtual int | rowCount () const |
Return the data vector size. | |
virtual void | setTextAt (int row, const QString &value) |
virtual QString | textAt (int row) const |
Return the content of row 'row'. | |
Public Member Functions inherited from AbstractColumn | |
AbstractColumn (const QString &name) | |
Ctor. | |
virtual void | clear () |
Set the column plot designation. | |
virtual void | insertRows (int before, int count) |
Insert some empty (or initialized with zero) rows. | |
virtual bool | isReadOnly () const |
Return whether the object is read-only. | |
virtual void | notifyReplacement (const AbstractColumn *replacement) |
This must be called before the column is replaced by another. | |
virtual void | removeRows (int first, int count) |
Remove 'count' rows starting from row 'first'. | |
virtual void | setColumnMode (SciDAVis::ColumnMode mode) |
Set the column mode. | |
virtual | ~AbstractColumn () |
Dtor. | |
virtual bool | isInvalid (Interval< int > i) const |
Return whether a certain interval of rows contains only invalid values. | |
virtual QList< Interval< int > > | invalidIntervals () const |
Return all intervals of invalid rows. | |
virtual bool | isMasked (int row) const |
Return whether a certain row is masked. | |
virtual bool | isMasked (Interval< int > i) const |
Return whether a certain interval of rows rows is fully masked. | |
virtual QList< Interval< int > > | maskedIntervals () const |
Return all intervals of masked rows. | |
virtual void | clearValidity () |
Clear all validity information. | |
virtual void | clearMasks () |
Clear all masking information. | |
virtual QString | formula (int row) const |
Return the formula associated with row 'row'. | |
virtual QList< Interval< int > > | formulaIntervals () const |
Return the intervals that have associated formulas. | |
virtual void | clearFormulas () |
Set a formula string for an interval of rows. | |
virtual QDate | dateAt (int row) const |
Return the date part of row 'row'. | |
virtual QTime | timeAt (int row) const |
Set the content of row 'row'. | |
virtual QDateTime | dateTimeAt (int row) const |
Set the content of row 'row'. | |
virtual void | replaceDateTimes (int first, const QList< QDateTime > &new_values) |
Set the content of row 'row'. | |
virtual double | valueAt (int row) const |
Return the double value in row 'row'. | |
virtual void | replaceValues (int first, const QVector< double > &new_values) |
Set the content of row 'row'. | |
Public Member Functions inherited from AbstractAspect | |
AbstractAspect (const QString &name) | |
void | addChild (AbstractAspect *child) |
Add the given Aspect to my list of children. | |
QString | caption () const |
QString | captionSpec () const |
Return the specification string used for constructing the caption(). | |
AbstractAspect * | child (int index) const |
Get a child by its position in my list of children. | |
int | childCount () const |
Return the number of child Aspects. | |
QString | comment () const |
virtual QMenu * | createContextMenu () const |
Return a new context menu. | |
QDateTime | creationTime () const |
QList< AbstractAspect * > | descendantsThatInherit (const char *class_name) |
Get all descendents that inherit the given class. | |
future::Folder * | folder () |
Return the folder the Aspect is contained in or 0 if not. | |
virtual QIcon | icon () const |
Return an icon to be used for decorating my views. | |
void | importV0x0001XXCreationTime (const QString &str) |
int | index () const |
Return my position in my parent's list of children. | |
int | indexOfChild (const AbstractAspect *child) const |
Return the position of child in my list of children. | |
void | insertChild (AbstractAspect *child, int index) |
Insert the given Aspect at a specific position in my list of children. | |
bool | isDescendantOf (AbstractAspect *other) |
Return whether the there is a path upwards to the given aspect. | |
void | moveChild (int from, int to) |
Change the positon of a child in my list of children. | |
QString | name () const |
AbstractAspect * | parentAspect () const |
Return my parent Aspect or 0 if I currently don't have one. | |
virtual QString | path () const |
Return the path that leads from the top-most Aspect (usually a Project) to me. | |
virtual const Project * | project () const |
Return the Project this Aspect belongs to, or 0 if it is currently not part of one. | |
virtual Project * | project () |
Return the Project this Aspect belongs to, or 0 if it is currently not part of one. | |
virtual void | removeAllChildAspects () |
Remove all child aspects. | |
void | removeChild (AbstractAspect *child, bool detach=false) |
Remove the given Aspect from my list of children. | |
void | removeChild (int index) |
Remove the Aspect at the given index from my list of children. | |
void | reparentChild (AbstractAspect *new_parent, AbstractAspect *child, int d_new_index) |
Move a child to another aspect and transfer ownership. | |
void | reparentChild (AbstractAspect *new_parent, AbstractAspect *child) |
Move a child to another aspect and transfer ownership. | |
virtual | ~AbstractAspect () |
virtual QUndoStack * | undoStack () const |
Return the undo stack of the Project, or 0 if this Aspect is not part of a Project. | |
void | exec (QUndoCommand *command) |
Execute the given command, pushing it on the undoStack() if available. | |
void | beginMacro (const QString &text) |
Begin an undo stack macro (series of commands) | |
void | endMacro () |
End the undo stack macro. | |
virtual void | save (QXmlStreamWriter *) const |
Save as XML. | |
virtual bool | load (XmlStreamReader *) |
Load from XML. |
Private Attributes | |
Column * | d_owner |
bool | d_setting |
QString | d_to_set |
Additional Inherited Members | |
Signals inherited from AbstractColumn | |
void | aboutToBeDestroyed (const AbstractColumn *source) |
Emitted shortly before this data source is deleted. | |
void | aboutToBeReplaced (const AbstractColumn *source, const AbstractColumn *new_col) |
The column will be replaced. | |
void | dataAboutToChange (const AbstractColumn *source) |
Data (including validity) of the column will be changed. | |
void | dataChanged (const AbstractColumn *source) |
Data (including validity) of the column has changed. | |
void | maskingAboutToChange (const AbstractColumn *source) |
IntervalAttribute related signal. | |
void | maskingChanged (const AbstractColumn *source) |
IntervalAttribute related signal. | |
void | modeAboutToChange (const AbstractColumn *source) |
Column mode (possibly also the data type) will be changed. | |
void | modeChanged (const AbstractColumn *source) |
Column mode (possibly also the data type) changed. | |
void | plotDesignationAboutToChange (const AbstractColumn *source) |
Column plot designation will be changed. | |
void | plotDesignationChanged (const AbstractColumn *source) |
Column plot designation changed. | |
void | rowsAboutToBeInserted (const AbstractColumn *source, int before, int count) |
Rows will be inserted. | |
void | rowsAboutToBeRemoved (const AbstractColumn *source, int first, int count) |
Rows will be deleted. | |
void | rowsInserted (const AbstractColumn *source, int before, int count) |
Rows have been inserted. | |
void | rowsRemoved (const AbstractColumn *source, int first, int count) |
Rows have been deleted. | |
Signals inherited from AbstractAspect | |
void | aspectAboutToBeAdded (const AbstractAspect *parent, int index) |
Emit this when a parent aspect is about to get a new child inserted. | |
void | aspectAboutToBeRemoved (const AbstractAspect *aspect) |
Emit this from an aspect about to be removed from its parent's children. | |
void | aspectAboutToBeRemoved (const AbstractAspect *parent, int index) |
Emit this from a parent before removing its child. | |
void | aspectAdded (const AbstractAspect *aspect) |
Emit this from a newly added aspect. | |
void | aspectAdded (const AbstractAspect *parent, int index) |
Emit this from a parent after adding a new child to it. | |
void | aspectDescriptionAboutToChange (const AbstractAspect *aspect) |
Emit this before the name, comment or caption spec is changed. | |
void | aspectDescriptionChanged (const AbstractAspect *aspect) |
Emit this when the name, comment or caption spec changed. | |
void | aspectRemoved (const AbstractAspect *parent, int index) |
Emit this from the parent after removing a child. | |
void | statusInfo (const QString &text) |
Emit this to give status information to the user. |
String-IO interface of Column.
|
inline |
|
inlinevirtual |
|
virtual |
Copy another column of the same type.
This function will return false if the data type of 'other' is not the same as the type of 'this'. The validity information for the rows is also copied. Use a filter to convert a column to another type.
Reimplemented from AbstractColumn.
References AbstractColumn::columnMode(), Column::copy(), Column::d_column_private, d_owner, and SciDAVis::Text.
Referenced by Table::importASCII(), and replaceTexts().
|
virtual |
Copies part of another column of the same type.
This function will return false if the data type of 'other' is not the same as the type of 'this'. The validity information for the rows is also copied.
other | pointer to the column to copy |
src_start | first row to copy in the column to copy |
dest_start | first row to copy in |
num_rows | the number of rows to copy |
Reimplemented from AbstractColumn.
References AbstractColumn::columnMode(), Column::copy(), Column::d_column_private, d_owner, and SciDAVis::Text.
|
inlinevirtual |
|
inlinevirtual |
Return whether a certain row contains an invalid value.
Reimplemented from AbstractColumn.
References d_owner, d_setting, and Column::isInvalid().
|
inlinevirtual |
Return the column plot designation.
Implements AbstractColumn.
References d_owner, and Column::plotDesignation().
|
virtual |
Set the content of row 'row'.
Use this only when dataType() is QString Replace a range of values Use this only when dataType() is QString
Reimplemented from AbstractColumn.
References copy().
Referenced by future::Table::clearSelectedCells(), and Table::recalculate().
|
inlinevirtual |
|
virtual |
References Column::copy(), Column::d_column_private, d_owner, d_setting, and d_to_set.
Referenced by future::Table::pasteIntoSelection(), TableModel::setData(), and Table::setText().
|
virtual |
Return the content of row 'row'.
Use this only when dataType() is QString
Reimplemented from AbstractColumn.
References Column::d_column_private, d_owner, d_setting, and d_to_set.
Referenced by TableModel::data(), future::Table::export_to_TeX(), Table::exportASCII(), and Table::text().
|
private |
Referenced by copy(), isInvalid(), plotDesignation(), rowCount(), setTextAt(), and textAt().
|
private |
Referenced by isInvalid(), setTextAt(), and textAt().
|
private |
Referenced by setTextAt(), and textAt().