22 #ifndef SGSTATECOMBOMODEL_HPP
23 #define SGSTATECOMBOMODEL_HPP
25 #include "sgplotcontroller.hpp"
26 #include <QAbstractListModel>
68 QVariant
data(
const QModelIndex & index,
int role)
const
72 QString dataString = QString(
"S")+QString::number(index.row()-1);
77 else if (index.row()==0)
SGPlotController * controller
The associated SGPlotController object.
Definition: sgstatecombomodel.hpp:44
Handles the plot settings for SGSolutionHandler.
Definition: sgplotcontroller.hpp:41
list< SGIteration_MaxMinMax >::const_iterator getCurrentIter() const
Access method for the current SGIteration_MaxMinMax pointer.
Definition: sgplotcontroller.hpp:125
void changeState(int index)
Definition: sgstatecombomodel.hpp:84
QVariant data(const QModelIndex &index, int role) const
Reimplement data.
Definition: sgstatecombomodel.hpp:68
bool hasSolution() const
Returns true if a solution has been loaded.
Definition: sgplotcontroller.hpp:133
Model for stateCombo.
Definition: sgstatecombomodel.hpp:43
void changeLayout()
Signals to the GUI to change the layout.
Definition: sgstatecombomodel.hpp:88
int rowCount(const QModelIndex &parent) const
Reimplement rowcount.
Definition: sgstatecombomodel.hpp:59
bool setState(int newState)
Sets the current state.
Definition: sgplotcontroller.cpp:83
SGStateComboModel(SGPlotController *_controller)
Constructor.
Definition: sgstatecombomodel.hpp:51