Inspector showing knight moves on a chess board. More...
Public Member Functions | |
KnightsInspector (void) | |
Constructor. | |
virtual void | inspect (const Space &s) |
Inspect space s. | |
void | initialize (void) |
Set up main window. | |
virtual std::string | name (void) |
Name of the inspector. | |
virtual void | finalize (void) |
Finalize inspector. | |
Protected Attributes | |
QGraphicsScene * | scene |
The graphics scene displaying the board. | |
QMainWindow * | mw |
The window containing the graphics scene. | |
Static Protected Attributes | |
static const int | unit = 30 |
The size of a field on the board. |
Inspector showing knight moves on a chess board.
Definition at line 327 of file knights.cpp.
KnightsInspector::KnightsInspector | ( | void | ) | [inline] |
Constructor.
Definition at line 337 of file knights.cpp.
virtual void KnightsInspector::inspect | ( | const Space & | s | ) | [inline, virtual] |
void KnightsInspector::initialize | ( | void | ) | [inline] |
Set up main window.
Definition at line 374 of file knights.cpp.
virtual std::string KnightsInspector::name | ( | void | ) | [inline, virtual] |
Name of the inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 390 of file knights.cpp.
virtual void KnightsInspector::finalize | ( | void | ) | [inline, virtual] |
Finalize inspector.
Reimplemented from Gecode::Gist::Inspector.
Definition at line 392 of file knights.cpp.
QGraphicsScene* KnightsInspector::scene [protected] |
The graphics scene displaying the board.
Definition at line 330 of file knights.cpp.
QMainWindow* KnightsInspector::mw [protected] |
The window containing the graphics scene.
Definition at line 332 of file knights.cpp.
const int KnightsInspector::unit = 30 [static, protected] |
The size of a field on the board.
Definition at line 334 of file knights.cpp.