preferences.hh QtGui gecode/gist.hh Gecode::Gist::PreferencesDialog Gecode Gecode::Gist /*-*-mode:C++;c-basic-offset:2;indent-tabs-mode:nil-*-*/ /* *Mainauthors: *GuidoTack<tack@gecode.org> * *Copyright: *GuidoTack,2007 * *Lastmodified: *$Date:2012-12-2101:48:30+0100(Fri,21Dec2012)$by$Author:tack$ *$Revision:13214$ * *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_PREFERENCES_HH #defineGECODE_GIST_PREFERENCES_HH #include<QtGui> #ifQT_VERSION>=0x050000 #include<QtWidgets> #endif #include<gecode/gist.hh> namespaceGecode{namespaceGist{ classPreferencesDialog:publicQDialog{ Q_OBJECT protected: QCheckBox*hideCheck; QCheckBox*zoomCheck; QCheckBox*smoothCheck; QCheckBox*copiesCheck; QSpinBox*refreshBox; QCheckBox*slowBox; QCheckBox*moveDuringSearchBox; QSpinBox*cdBox; QSpinBox*adBox; protectedQ_SLOTS: voidwriteBack(void); voiddefaults(void); voidtoggleSlow(intstate); public: PreferencesDialog(constOptions&opt,QWidget*parent=0); boolhideFailed; boolzoom; boolcopies; intrefresh; intrefreshPause; boolsmoothScrollAndZoom; boolmoveDuringSearch; intc_d; inta_d; }; }} #endif //STATISTICS:gist-any