SGSolve
|
Model for the action select menu. More...
#include <sgactioncombomodel.hpp>
Public Slots | |
void | actionChanged (int index) |
Signals to the associated actionController to change the action. | |
void | changeLayout () |
Signals to gui to change the layout. | |
Public Member Functions | |
SGActionComboModel (SGPlotController *_controller) | |
Constructor. | |
int | rowCount (const QModelIndex &parent) const |
Reimplement rowcount. | |
QVariant | data (const QModelIndex &index, int role) const |
Reimplement data. | |
Private Attributes | |
SGPlotController * | controller |
Pointer to the associated SGPlotController_V2 object. | |
int | state = -1 |
Model for the action select menu.
This class interfaces between the QComboBox for selecting the action and the underlying SGSolution object. The model automatically synchronizes the actionCombo with the set of actions which are available on the current iteration and in the state selected in the stateCombo, where the current iteration and state are controlled by the associated SGPlotController_V2 object. When the action, state, or currentIter is changed in the SGPlotController_V2, the changeLayout slot is triggered, which causes actionCombo to request new data entries to reflect the actions that are available. The action that generates the best test direction is indicated with an asterisk.