preferences.hh
Go to the documentation of this file.
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2007
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#ifndef GECODE_GIST_PREFERENCES_HH
#define GECODE_GIST_PREFERENCES_HH
#include <QtGui>
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#endif
#include <gecode/gist.hh>
namespace Gecode { namespace Gist {
class PreferencesDialog : public QDialog {
Q_OBJECT
protected:
QCheckBox* hideCheck;
QCheckBox* zoomCheck;
QCheckBox* smoothCheck;
QCheckBox* copiesCheck;
QSpinBox* refreshBox;
QCheckBox* slowBox;
QCheckBox* moveDuringSearchBox;
QSpinBox* cdBox;
QSpinBox* adBox;
protected Q_SLOTS:
void writeBack(void);
void defaults(void);
void toggleSlow(int state);
public:
PreferencesDialog(const Options& opt, QWidget* parent = 0);
bool hideFailed;
bool zoom;
bool copies;
int refresh;
int refreshPause;
bool smoothScrollAndZoom;
bool moveDuringSearch;
int c_d;
int a_d;
};
}}
#endif
// STATISTICS: gist-any
Gecode::Gist::Options
Options for Gist
Definition gist.hh:234
Gecode::Gist::PreferencesDialog::adBox
QSpinBox * adBox
Definition preferences.hh:60
Gecode::Gist::PreferencesDialog::writeBack
void writeBack(void)
Write settings.
Definition preferences.cpp:147
Gecode::Gist::PreferencesDialog::smoothCheck
QCheckBox * smoothCheck
Definition preferences.hh:54
Gecode::Gist::PreferencesDialog::toggleSlow
void toggleSlow(int state)
Toggle slow down setting.
Definition preferences.cpp:189
Gecode::Gist::PreferencesDialog::hideFailed
bool hideFailed
Whether to automatically hide failed subtrees during search.
Definition preferences.hh:73
Gecode::Gist::PreferencesDialog::slowBox
QCheckBox * slowBox
Definition preferences.hh:57
Gecode::Gist::PreferencesDialog::c_d
int c_d
The copying distance.
Definition preferences.hh:88
Gecode::Gist::PreferencesDialog::moveDuringSearch
bool moveDuringSearch
Whether to move cursor during search.
Definition preferences.hh:85
Gecode::Gist::PreferencesDialog::defaults
void defaults(void)
Reset to defaults.
Definition preferences.cpp:169
Gecode::Gist::PreferencesDialog::a_d
int a_d
The adaptive recomputation distance.
Definition preferences.hh:90
Gecode::Gist::PreferencesDialog::smoothScrollAndZoom
bool smoothScrollAndZoom
Whether to use smooth scrolling and zooming.
Definition preferences.hh:83
Gecode::Gist::PreferencesDialog::zoom
bool zoom
Whether to automatically zoom during search.
Definition preferences.hh:75
Gecode::Gist::PreferencesDialog::zoomCheck
QCheckBox * zoomCheck
Definition preferences.hh:53
Gecode::Gist::PreferencesDialog::PreferencesDialog
PreferencesDialog(const Options &opt, QWidget *parent=0)
Constructor.
Definition preferences.cpp:38
Gecode::Gist::PreferencesDialog::copies
bool copies
Whether to show where copies are in the tree.
Definition preferences.hh:77
Gecode::Gist::PreferencesDialog::refreshBox
QSpinBox * refreshBox
Definition preferences.hh:56
Gecode::Gist::PreferencesDialog::cdBox
QSpinBox * cdBox
Definition preferences.hh:59
Gecode::Gist::PreferencesDialog::hideCheck
QCheckBox * hideCheck
Definition preferences.hh:52
Gecode::Gist::PreferencesDialog::moveDuringSearchBox
QCheckBox * moveDuringSearchBox
Definition preferences.hh:58
Gecode::Gist::PreferencesDialog::copiesCheck
QCheckBox * copiesCheck
Definition preferences.hh:55
Gecode::Gist::PreferencesDialog::refresh
int refresh
How often to refresh the display during search.
Definition preferences.hh:79
Gecode::Gist::PreferencesDialog::refreshPause
int refreshPause
Milliseconds to wait after each refresh (to slow down search).
Definition preferences.hh:81
gist.hh
Gecode::Gist
The Gecode Interactive Search Tool.
Gecode
Gecode toplevel namespace