mainwindow.hh gecode/gist.hh gecode/gist/qtgist.hh Gecode::Gist::AboutGist Gecode::Gist::GistMainWindow Gecode Gecode::Gist /*-*-mode:C++;c-basic-offset:2;indent-tabs-mode:nil-*-*/ /* *Mainauthors: *GuidoTack<tack@gecode.org> * *Copyright: *GuidoTack,2006 * *Lastmodified: *$Date:2010-08-1215:30:33+0200(Thu,12Aug2010)$by$Author:tack$ *$Revision:11351$ * *ThisfileispartofGecode,thegenericconstraint *developmentenvironment: *http://www.gecode.org * *Permissionisherebygranted,freeofcharge,toanypersonobtaining *acopyofthissoftwareandassociateddocumentationfiles(the *"Software"),todealintheSoftwarewithoutrestriction,including *withoutlimitationtherightstouse,copy,modify,merge,publish, *distribute,sublicense,and/orsellcopiesoftheSoftware,andto *permitpersonstowhomtheSoftwareisfurnishedtodoso,subjectto *thefollowingconditions: * *Theabovecopyrightnoticeandthispermissionnoticeshallbe *includedinallcopiesorsubstantialportionsoftheSoftware. * *THESOFTWAREISPROVIDED"ASIS",WITHOUTWARRANTYOFANYKIND, *EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOF *MERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEAND *NONINFRINGEMENT.INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBE *LIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTION *OFCONTRACT,TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTION *WITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE. * */ #ifndefGECODE_GIST_MAINWINDOW_HH #defineGECODE_GIST_MAINWINDOW_HH #include<gecode/gist.hh> #include<gecode/gist/qtgist.hh> namespaceGecode{namespaceGist{ classAboutGist:publicQDialog{ public: AboutGist(QWidget*parent=0); }; classGECODE_GIST_EXPORTGistMainWindow:publicQMainWindow{ Q_OBJECT private: Optionsopt; boolisSearching; Support::TimersearchTimer; QLabel*depthLabel; QLabel*wmpLabel; QLabel*solvedLabel; QLabel*failedLabel; QLabel*choicesLabel; QLabel*openLabel; QMenu*solutionInspectorsMenu; QMenu*doubleClickInspectorsMenu; QMenu*moveInspectorsMenu; QMenu*comparatorsMenu; QMenu*bookmarksMenu; QMenu*inspectNodeMenu; QMenu*inspectNodeBeforeFPMenu; QAction*prefAction; protected: Gist*c; QMenuBar*menuBar; AboutGistaboutGist; protectedQ_SLOTS: voidstatusChanged(constStatistics&stats,boolfinished); voidabout(void); voidpreferences(boolsetup=false); voidpopulateInspectorSelection(void); voidpopulateInspectors(void); voidpopulateBookmarks(void); public: GistMainWindow(Space*root,boolbab,constOptions&opt); protected: voidcloseEvent(QCloseEvent*event); }; }} #endif //STATISTICS:gist-any