Gecode::Gist::Gist Class Reference
[Gist: the Gecode Interactive Search Tool]
Gecode Interactive Search Tool More...
#include <qtgist.hh>
Signals | |
void | statusChanged (const Statistics &, bool) |
Signals that the tree has changed. | |
void | solution (const Space *) |
Signals that a solution has been found. | |
void | searchFinished (void) |
Signals that Gist is ready to be closed. | |
Public Member Functions | |
Gist (Space *root, bool bab, QWidget *parent, const Options &opt) | |
Constructor. | |
~Gist (void) | |
Destructor. | |
void | addDoubleClickInspector (Inspector *i0) |
Add double click inspector i0. | |
void | addSolutionInspector (Inspector *i0) |
Add solution inspector i0. | |
void | addMoveInspector (Inspector *i0) |
Add move inspector i0. | |
void | addComparator (Comparator *c0) |
Add comparator c0. | |
void | setAutoHideFailed (bool b) |
Set preference whether to automatically hide failed subtrees. | |
void | setAutoZoom (bool b) |
Set preference whether to automatically zoom to fit. | |
bool | getAutoHideFailed (void) |
Return preference whether to automatically hide failed subtrees. | |
bool | getAutoZoom (void) |
Return preference whether to automatically zoom to fit. | |
void | setShowCopies (bool b) |
Set preference whether to show copies in the tree. | |
bool | getShowCopies (void) |
Return preference whether to show copies in the tree. | |
void | setRefresh (int i) |
Set refresh rate. | |
void | setRefreshPause (int i) |
Set refresh pause in msec. | |
bool | getSmoothScrollAndZoom (void) |
Return preference whether to use smooth scrolling and zooming. | |
void | setSmoothScrollAndZoom (bool b) |
Set preference whether to use smooth scrolling and zooming. | |
bool | getMoveDuringSearch (void) |
Return preference whether to move cursor during search. | |
void | setMoveDuringSearch (bool b) |
Set preference whether to move cursor during search. | |
void | setRecompDistances (int c_d, int a_d) |
Set recomputation parameters c_d and a_d. | |
int | getCd (void) |
Return recomputation distance. | |
int | getAd (void) |
Return adaptive recomputation distance. | |
bool | finish (void) |
Stop search and wait until finished. | |
void | resizeEvent (QResizeEvent *) |
Handle resize event. | |
Public Attributes | |
QAction * | inspect |
Inspect current node. | |
QAction * | inspectBeforeFP |
Inspect current node before fixpoint. | |
QAction * | stop |
Stop search. | |
QAction * | reset |
Reset Gist. | |
QAction * | navUp |
Navigate to parent node. | |
QAction * | navDown |
Navigate to leftmost child node. | |
QAction * | navLeft |
Navigate to left sibling. | |
QAction * | navRight |
Navigate to right sibling. | |
QAction * | navRoot |
Navigate to root node. | |
QAction * | navNextSol |
Navigate to next solution (to the left). | |
QAction * | navPrevSol |
Navigate to previous solution (to the right). | |
QAction * | searchNext |
Search next solution in current subtree. | |
QAction * | searchAll |
Search all solutions in current subtree. | |
QAction * | toggleHidden |
Toggle whether current node is hidden. | |
QAction * | hideFailed |
Hide failed subtrees under current node. | |
QAction * | unhideAll |
Unhide all hidden subtrees under current node. | |
QAction * | labelBranches |
Label branches under current node. | |
QAction * | labelPath |
Label branches on path to root. | |
QAction * | zoomToFit |
Zoom tree to fit window. | |
QAction * | center |
Center on current node. | |
QAction * | exportPDF |
Export PDF of current subtree. | |
QAction * | exportWholeTreePDF |
Export PDF of whole tree. | |
QAction * | |
Print tree. | |
QAction * | bookmarkNode |
Bookmark current node. | |
QAction * | compareNode |
Compare current node to other node. | |
QAction * | compareNodeBeforeFP |
Compare current node to other node before fixpoint. | |
QAction * | setPath |
Set path from current node to the root. | |
QAction * | inspectPath |
Inspect all nodes on selected path. | |
QAction * | showNodeStats |
Open node statistics inspector. | |
QAction * | toggleStop |
Bookmark current node. | |
QAction * | unstopAll |
Bookmark current node. | |
QActionGroup * | solutionInspectorGroup |
Group of all actions for solution inspectors. | |
QActionGroup * | doubleClickInspectorGroup |
Group of all actions for double click inspectors. | |
QActionGroup * | moveInspectorGroup |
Group of all actions for move inspectors. | |
QActionGroup * | comparatorGroup |
Group of all actions for comparators. | |
QActionGroup * | bookmarksGroup |
Group of all actions for bookmarks. | |
QActionGroup * | inspectGroup |
Group of all actions for direct inspector selection. | |
QActionGroup * | inspectBeforeFPGroup |
Group of all actions for direct inspector selection. | |
Protected Member Functions | |
void | addInspector (Inspector *i, QAction *&nas, QAction *&nad, QAction *&nam) |
Add inspector i0. |
Detailed Description
Gecode Interactive Search Tool
This class provides an interactive search tree viewer and explorer as a Qt widget. You can embedd or inherit from this widget to use Gist in your own project.
Definition at line 85 of file qtgist.hh.
Constructor & Destructor Documentation
Constructor.
Definition at line 43 of file qtgist.cpp.
Gecode::Gist::Gist::~Gist | ( | void | ) |
Destructor.
Definition at line 550 of file qtgist.cpp.
Member Function Documentation
void Gecode::Gist::Gist::addDoubleClickInspector | ( | Inspector * | i0 | ) |
Add double click inspector i0.
Definition at line 493 of file qtgist.cpp.
void Gecode::Gist::Gist::addSolutionInspector | ( | Inspector * | i0 | ) |
Add solution inspector i0.
Definition at line 475 of file qtgist.cpp.
void Gecode::Gist::Gist::addMoveInspector | ( | Inspector * | i0 | ) |
Add move inspector i0.
Definition at line 511 of file qtgist.cpp.
void Gecode::Gist::Gist::addComparator | ( | Comparator * | c0 | ) |
Add comparator c0.
Definition at line 529 of file qtgist.cpp.
void Gecode::Gist::Gist::setAutoHideFailed | ( | bool | b | ) |
Set preference whether to automatically hide failed subtrees.
Definition at line 775 of file qtgist.cpp.
void Gecode::Gist::Gist::setAutoZoom | ( | bool | b | ) |
Set preference whether to automatically zoom to fit.
Definition at line 777 of file qtgist.cpp.
bool Gecode::Gist::Gist::getAutoHideFailed | ( | void | ) |
Return preference whether to automatically hide failed subtrees.
Definition at line 779 of file qtgist.cpp.
bool Gecode::Gist::Gist::getAutoZoom | ( | void | ) |
Return preference whether to automatically zoom to fit.
Definition at line 781 of file qtgist.cpp.
void Gecode::Gist::Gist::setShowCopies | ( | bool | b | ) |
Set preference whether to show copies in the tree.
Definition at line 817 of file qtgist.cpp.
bool Gecode::Gist::Gist::getShowCopies | ( | void | ) |
Return preference whether to show copies in the tree.
Definition at line 821 of file qtgist.cpp.
void Gecode::Gist::Gist::setRefresh | ( | int | i | ) |
Set refresh rate.
Definition at line 783 of file qtgist.cpp.
void Gecode::Gist::Gist::setRefreshPause | ( | int | i | ) |
Set refresh pause in msec.
Definition at line 785 of file qtgist.cpp.
bool Gecode::Gist::Gist::getSmoothScrollAndZoom | ( | void | ) |
Return preference whether to use smooth scrolling and zooming.
Definition at line 787 of file qtgist.cpp.
void Gecode::Gist::Gist::setSmoothScrollAndZoom | ( | bool | b | ) |
Set preference whether to use smooth scrolling and zooming.
Definition at line 791 of file qtgist.cpp.
bool Gecode::Gist::Gist::getMoveDuringSearch | ( | void | ) |
Return preference whether to move cursor during search.
Definition at line 795 of file qtgist.cpp.
void Gecode::Gist::Gist::setMoveDuringSearch | ( | bool | b | ) |
Set preference whether to move cursor during search.
Definition at line 799 of file qtgist.cpp.
void Gecode::Gist::Gist::setRecompDistances | ( | int | c_d, | |
int | a_d | |||
) |
Set recomputation parameters c_d and a_d.
Definition at line 803 of file qtgist.cpp.
int Gecode::Gist::Gist::getCd | ( | void | ) |
Return recomputation distance.
Definition at line 808 of file qtgist.cpp.
int Gecode::Gist::Gist::getAd | ( | void | ) |
Return adaptive recomputation distance.
Definition at line 812 of file qtgist.cpp.
bool Gecode::Gist::Gist::finish | ( | void | ) |
Stop search and wait until finished.
Definition at line 700 of file qtgist.cpp.
void Gecode::Gist::Gist::resizeEvent | ( | QResizeEvent * | ) |
Handle resize event.
Definition at line 424 of file qtgist.cpp.
void Gecode::Gist::Gist::statusChanged | ( | const Statistics & | , | |
bool | ||||
) | [signal] |
Signals that the tree has changed.
void Gecode::Gist::Gist::solution | ( | const Space * | ) | [signal] |
Signals that a solution has been found.
void Gecode::Gist::Gist::searchFinished | ( | void | ) | [signal] |
Signals that Gist is ready to be closed.
void Gecode::Gist::Gist::addInspector | ( | Inspector * | i, | |
QAction *& | nas, | |||
QAction *& | nad, | |||
QAction *& | nam | |||
) | [protected] |
Add inspector i0.
Definition at line 429 of file qtgist.cpp.
Member Data Documentation
QAction* Gecode::Gist::Gist::inspect |
QAction* Gecode::Gist::Gist::inspectBeforeFP |
QAction* Gecode::Gist::Gist::stop |
QAction* Gecode::Gist::Gist::reset |
QAction* Gecode::Gist::Gist::navUp |
QAction* Gecode::Gist::Gist::navDown |
QAction* Gecode::Gist::Gist::navLeft |
QAction* Gecode::Gist::Gist::navRight |
QAction* Gecode::Gist::Gist::navRoot |
QAction* Gecode::Gist::Gist::navNextSol |
QAction* Gecode::Gist::Gist::navPrevSol |
QAction* Gecode::Gist::Gist::searchNext |
QAction* Gecode::Gist::Gist::searchAll |
QAction* Gecode::Gist::Gist::toggleHidden |
QAction* Gecode::Gist::Gist::hideFailed |
QAction* Gecode::Gist::Gist::unhideAll |
QAction* Gecode::Gist::Gist::labelBranches |
QAction* Gecode::Gist::Gist::labelPath |
QAction* Gecode::Gist::Gist::zoomToFit |
QAction* Gecode::Gist::Gist::center |
QAction* Gecode::Gist::Gist::exportPDF |
QAction* Gecode::Gist::Gist::print |
QAction* Gecode::Gist::Gist::bookmarkNode |
QAction* Gecode::Gist::Gist::compareNode |
QAction* Gecode::Gist::Gist::setPath |
QAction* Gecode::Gist::Gist::inspectPath |
QAction* Gecode::Gist::Gist::showNodeStats |
QAction* Gecode::Gist::Gist::toggleStop |
QAction* Gecode::Gist::Gist::unstopAll |
QActionGroup* Gecode::Gist::Gist::solutionInspectorGroup |
QActionGroup* Gecode::Gist::Gist::doubleClickInspectorGroup |
QActionGroup* Gecode::Gist::Gist::moveInspectorGroup |
QActionGroup* Gecode::Gist::Gist::comparatorGroup |
QActionGroup* Gecode::Gist::Gist::bookmarksGroup |
QActionGroup* Gecode::Gist::Gist::inspectGroup |
QActionGroup* Gecode::Gist::Gist::inspectBeforeFPGroup |
The documentation for this class was generated from the following files:
- gecode/gist/qtgist.hh (Revision: 13613)
- gecode/gist/qtgist.cpp (Revision: 14967)