main page
modules
namespaces
classes
files
Gecode home
Generated on Tue Jan 28 2020 00:00:00 for Gecode by
doxygen
1.8.17
gecode
gist
mainwindow.hh
Go to the documentation of this file.
1
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
/*
3
* Main authors:
4
* Guido Tack <tack@gecode.org>
5
*
6
* Copyright:
7
* Guido Tack, 2006
8
*
9
* Last modified:
10
* $Date: 2017-02-23 06:38:42 +0100 (Thu, 23 Feb 2017) $ by $Author: schulte $
11
* $Revision: 15477 $
12
*
13
* This file is part of Gecode, the generic constraint
14
* development environment:
15
* http://www.gecode.org
16
*
17
* Permission is hereby granted, free of charge, to any person obtaining
18
* a copy of this software and associated documentation files (the
19
* "Software"), to deal in the Software without restriction, including
20
* without limitation the rights to use, copy, modify, merge, publish,
21
* distribute, sublicense, and/or sell copies of the Software, and to
22
* permit persons to whom the Software is furnished to do so, subject to
23
* the following conditions:
24
*
25
* The above copyright notice and this permission notice shall be
26
* included in all copies or substantial portions of the Software.
27
*
28
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
*
36
*/
37
38
#ifndef GECODE_GIST_MAINWINDOW_HH
39
#define GECODE_GIST_MAINWINDOW_HH
40
41
#include <
gecode/gist.hh
>
42
#include <
gecode/gist/qtgist.hh
>
43
44
namespace
Gecode
{
namespace
Gist {
45
47
class
AboutGist
:
public
QDialog {
48
public
:
50
AboutGist
(QWidget* parent = 0);
51
};
52
58
class
GECODE_GIST_EXPORT
GistMainWindow
:
public
QMainWindow {
59
Q_OBJECT
60
private
:
62
Options
opt
;
64
bool
isSearching;
66
Support::Timer
searchTimer;
68
QLabel* depthLabel;
70
QLabel* solvedLabel;
72
QLabel* failedLabel;
74
QLabel* choicesLabel;
76
QLabel* openLabel;
78
QMenu* solutionInspectorsMenu;
80
QMenu* doubleClickInspectorsMenu;
82
QMenu* moveInspectorsMenu;
84
QMenu* comparatorsMenu;
86
QMenu* bookmarksMenu;
88
QMenu* inspectNodeMenu;
90
QMenu* inspectNodeBeforeFPMenu;
92
QAction* prefAction;
93
protected
:
95
Gist
*
c
;
97
QMenuBar*
menuBar
;
99
AboutGist
aboutGist
;
100
101
protected
Q_SLOTS:
103
void
statusChanged(
const
Statistics
& stats,
bool
finished);
105
void
about(
void
);
107
void
preferences(
bool
setup=
false
);
109
void
populateInspectorSelection(
void
);
111
void
populateInspectors(
void
);
113
void
populateBookmarks(
void
);
114
public
:
116
GistMainWindow
(
Space
* root,
bool
bab
,
const
Options
&
opt
);
117
protected
:
119
void
closeEvent(QCloseEvent* event);
120
};
121
122
}}
123
124
#endif
125
126
127
// STATISTICS: gist-any
Gecode::Support::Timer
Timer
Definition:
timer.hpp:55
Gecode::Gist::Gist
Gecode Interactive Search Tool
Definition:
qtgist.hh:85
Gecode::Gist::AboutGist::AboutGist
AboutGist(QWidget *parent=0)
Constructor.
Definition:
mainwindow.cpp:47
Gecode::Space
Computation spaces.
Definition:
core.hpp:1748
qtgist.hh
Gecode
Gecode toplevel namespace
Test::opt
Options opt
The options.
Definition:
test.cpp:101
Gecode::Gist::Options
Options for Gist
Definition:
gist.hh:238
Gecode::Gist::GistMainWindow::aboutGist
AboutGist aboutGist
About dialog.
Definition:
mainwindow.hh:99
Gecode::Gist::GistMainWindow::c
Gist * c
The contained Gist object.
Definition:
mainwindow.hh:95
gist.hh
Gecode::Gist::GistMainWindow::menuBar
QMenuBar * menuBar
A menu bar.
Definition:
mainwindow.hh:97
GECODE_GIST_EXPORT
#define GECODE_GIST_EXPORT
Definition:
qtgist.hh:63
Gecode::Gist::Statistics
Statistics about the search tree
Definition:
spacenode.hh:63
Gecode::Gist::bab
int bab(Space *root, const Gist::Options &opt)
Create a new stand-alone Gist for branch-and-bound search of root.
Definition:
gist.hpp:212
Gecode::Gist::GistMainWindow
Main window for stand-alone Gist.
Definition:
mainwindow.hh:58
Gecode::Gist::AboutGist
Display information about Gist.
Definition:
mainwindow.hh:47