#include <solution_list_view.h>
Inheritance diagram for SolutionListView::
Signals | |
void | clickedSolution (int index) |
Public Methods | |
SolutionListView (CompressedMap const &map, QWidget *parent=0, const char *name=0) | |
SolutionListView (int index, QWidget *parent=0, const char *name=0) | |
int | numberOfSolutions () const |
bool | isHidden (int index) const |
void | setHidden (int index, bool hide) |
int | pushes (int index) const |
void | setPushes (int index, int pushes) |
int | linearPushes (int index) const |
void | setLinearPushes (int index, int pushes) |
int | gemChanges (int index) const |
void | setGemChanges (int index, int gem_changes) |
int | moves (int index) const |
void | setMoves (int index, int moves) |
QString | annotation (int index) const |
void | setAnnotation (int index, QString const &annotation) |
std::vector< int > | selectedSolutions () const |
Private Slots | |
void | solutionSelected (QListViewItem *item) |
Private Methods | |
void | setup (int index) |
Private Attributes | |
std::vector< QListViewItem *> | m_items |
std::vector< int > | m_hidden |
|
Creates the list view.
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
Returns the annotation of a solution. @index The index of the solution. |
|
Emitted, when the user clicks a solution.
|
|
Returns the number of gem changes in the solution.
|
|
Returns true, if the solution is hidden.
|
|
Returns the number of linear pushes in the solution.
|
|
Returns the number of moves in the solution.
|
|
Returns the number of solutions.
|
|
Returns the number of pushes in the solution.
|
|
Returns a vector holding the indices of all selected solutions.
|
|
Sets a new annotation of a solution.
|
|
Sets the number of gem changes in the solution.
|
|
Hides the solution with the given index.
|
|
Sets the number of linear pushes in the solution.
|
|
Sets the number of moves in the solution.
|
|
Sets the number of pushes in the solution.
|
|
Sets up the widget.
|
|
Called, when the user selects a solution.
|
|
Here we store 1 for every hidden item.
|
|
The list view items.
|