pqPlotSettingsModel is used by display panels for plots to show the properties of all the series in a table.
More...
#include <pqPlotSettingsModel.h>
List of all members.
Public Slots |
| void | reload () |
| | Reloads the model i.e.
|
| void | setSeriesEnabled (int row, bool enabled) |
| void | setSeriesLabel (int row, const QString &label) |
| void | setSeriesColor (int row, const QColor &color) |
| void | setSeriesThickness (int row, int thickness) |
| void | setSeriesStyle (int row, int style) |
| void | setSeriesAxisCorner (int row, int axiscorner) |
| void | setSeriesMarkerStyle (int row, int style) |
| const char * | getSeriesName (int row) const |
| bool | getSeriesEnabled (int row) const |
| QString | getSeriesLabel (int row) const |
| QColor | getSeriesColor (int row) const |
| int | getSeriesThickness (int row) const |
| int | getSeriesStyle (int row) const |
| int | getSeriesAxisCorner (int row) const |
| int | getSeriesMarkerStyle (int row) const |
Signals |
| void | redrawChart () |
| void | rescaleChart () |
Public Member Functions |
| | pqPlotSettingsModel (QObject *parent=0) |
| | ~pqPlotSettingsModel () |
| void | setRepresentation (pqDataRepresentation *rep) |
| pqDataRepresentation * | representation () const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| | Gets the data for a given model index.
|
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| | Sets the data for the given model index.
|
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| | Gets the flags for a given model index.
|
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| | Gets a model index for a given location.
|
| virtual QModelIndex | parent (const QModelIndex &index) const |
| | Gets the parent for a given index.
|
Protected Slots |
| void | emitDataChanged () |
| | emits data-changed event whenever the properties are modified.
|
Detailed Description
pqPlotSettingsModel is used by display panels for plots to show the properties of all the series in a table.
Definition at line 45 of file pqPlotSettingsModel.h.
Constructor & Destructor Documentation
| pqPlotSettingsModel::pqPlotSettingsModel |
( |
QObject * |
parent = 0 | ) |
|
| pqPlotSettingsModel::~pqPlotSettingsModel |
( |
| ) |
|
Member Function Documentation
| int pqPlotSettingsModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
| int pqPlotSettingsModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
| QVariant pqPlotSettingsModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const [virtual] |
| virtual QVariant pqPlotSettingsModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const [virtual] |
Gets the data for a given model index.
- Parameters:
-
| index | The model index. |
| role | The role to get data for. |
- Returns:
- The data for the given model index.
| virtual bool pqPlotSettingsModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| [virtual] |
Sets the data for the given model index.
- Parameters:
-
| index | The model index. |
| value | The new data for the given role. |
| role | The role to set data for. |
- Returns:
- True if the data was changed successfully.
| virtual Qt::ItemFlags pqPlotSettingsModel::flags |
( |
const QModelIndex & |
index | ) |
const [virtual] |
Gets the flags for a given model index.
The flags for an item indicate if it is enabled, editable, etc.
- Parameters:
-
- Returns:
- The flags for the given model index.
| virtual QModelIndex pqPlotSettingsModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const [virtual] |
Gets a model index for a given location.
- Parameters:
-
| row | The row number. |
| column | The column number. |
| parent | The parent index. |
- Returns:
- A model index for the given location.
| virtual QModelIndex pqPlotSettingsModel::parent |
( |
const QModelIndex & |
index | ) |
const [virtual] |
Gets the parent for a given index.
- Parameters:
-
- Returns:
- A model index for the parent of the given index.
| void pqPlotSettingsModel::reload |
( |
| ) |
[slot] |
Reloads the model i.e.
refreshes all data from the display and resets the model.
| void pqPlotSettingsModel::setSeriesEnabled |
( |
int |
row, |
|
|
bool |
enabled |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesLabel |
( |
int |
row, |
|
|
const QString & |
label |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesColor |
( |
int |
row, |
|
|
const QColor & |
color |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesThickness |
( |
int |
row, |
|
|
int |
thickness |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesStyle |
( |
int |
row, |
|
|
int |
style |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesAxisCorner |
( |
int |
row, |
|
|
int |
axiscorner |
|
) |
| [slot] |
| void pqPlotSettingsModel::setSeriesMarkerStyle |
( |
int |
row, |
|
|
int |
style |
|
) |
| [slot] |
| const char* pqPlotSettingsModel::getSeriesName |
( |
int |
row | ) |
const [slot] |
| bool pqPlotSettingsModel::getSeriesEnabled |
( |
int |
row | ) |
const [slot] |
| QString pqPlotSettingsModel::getSeriesLabel |
( |
int |
row | ) |
const [slot] |
| QColor pqPlotSettingsModel::getSeriesColor |
( |
int |
row | ) |
const [slot] |
| int pqPlotSettingsModel::getSeriesThickness |
( |
int |
row | ) |
const [slot] |
| int pqPlotSettingsModel::getSeriesStyle |
( |
int |
row | ) |
const [slot] |
| int pqPlotSettingsModel::getSeriesAxisCorner |
( |
int |
row | ) |
const [slot] |
| int pqPlotSettingsModel::getSeriesMarkerStyle |
( |
int |
row | ) |
const [slot] |
| void pqPlotSettingsModel::emitDataChanged |
( |
| ) |
[protected, slot] |
emits data-changed event whenever the properties are modified.
| void pqPlotSettingsModel::redrawChart |
( |
| ) |
[signal] |
| void pqPlotSettingsModel::rescaleChart |
( |
| ) |
[signal] |
The documentation for this class was generated from the following file: