9 #ifndef PROPERTYDIALOG_H
10 #define PROPERTYDIALOG_H
13 #include "../FilterManager.hpp"
18 #include <QGridLayout>
20 #include <QCloseEvent>
21 #include <QScrollArea>
22 #include <QMainWindow>
23 #include <QtGui/QAction>
24 #include <QtGui/QDialog>
25 #include <QtGui/QWidget>
26 #include <QtCore/QVariant>
27 #include <QtGui/QTabWidget>
28 #include <QtGui/QHeaderView>
29 #include <QtGui/QPushButton>
30 #include <QtGui/QVBoxLayout>
31 #include <QtGui/QHBoxLayout>
32 #include <QtGui/QApplication>
33 #include <QtGui/QButtonGroup>
34 #include <QtGui/QGraphicsView>
35 #include <QtGui/QStackedWidget>
42 #define DEFAULT_NFRAMES 3
44 #define DEFAULT_NBUTTONS 10
46 #define DEFAULT_LINE_POINTS 15
48 #define DEFAULT_BUTTON_POINTS 31
73 PropertyDialog(
bool dragDropIsChecked =
false,
bool vertexFocused =
false,
bool edgeFocused =
false);
78 bool isRunning() {
return (&mDialog)->isVisible(); }
82 mpDragDropButton->setChecked(toggle);
83 mpMoveAroundButton->setChecked(!toggle);
88 mpDragDropButton->setChecked(!toggle);
94 mpMoveAroundButton->setChecked(!toggle);
98 void addFrame(QVBoxLayout* verticalLayout);
100 void addFrame(QHBoxLayout* horizontalLayout);
118 inline void updateStatus(
const std::string& message = std::string(),
int timeout = 0);
131 QTabWidget *mpTabWidget;
133 QWidget *mpHorizontalLayoutWidget;
135 QWidget *mpHorizontalLayoutLayerViewWidget;
137 QHBoxLayout *mpHorizontalLayout;
139 QHBoxLayout *mpHorizontalLayoutLayer;
141 QVBoxLayout *mpVerticalLayout;
143 QVBoxLayout *mpVerticalLayoutFocus;
145 QVBoxLayout *mpVerticalLayoutLayer;
147 QVBoxLayout *mpVerticalLayoutComponentsLayer;
149 QPushButton *mpAddNodeButton;
151 QPushButton *mpRefreshButton;
153 QPushButton *mpRefreshLayerButton;
155 QPushButton *mpShuffleButton;
157 QPushButton *mpShuffleLayerButton;
159 QPushButton *mpImportButton;
161 QPushButton *mpImportLayerButton;
163 QPushButton *mpExportButton;
165 QPushButton *mpExportLayerButton;
167 QPushButton *mpResetButton;
169 QPushButton *mpResetLayerButton;
171 QPushButton *mpLayoutButton;
173 QPushButton *mpLayoutLayerButton;
175 QPushButton *mpDragDropButton;
177 QPushButton *mpMoveAroundButton;
179 QPushButton *mpRenameNodeButton;
181 QPushButton *mpAddFeatureButton;
183 QPushButton *mpRenameFeatureButton;
185 QPushButton *mpRemoveFeatureButton;
187 QPushButton *mpRemoveFeaturesButton;
189 QPushButton *mpRemoveNodeButton;
191 QPushButton *mpRenameEdgeButton;
193 QPushButton *mpRemoveEdgeButton;
195 QPushButton *mpSwapFeaturesButton;
197 QWidget *mpLayersFilters;
199 QVBoxLayout *mpLayersFiltersLayout;
201 QWidget *mpCustomFilters;
203 QVBoxLayout *mpCustomFiltersLayout;
205 QLabel *mpLayersLabel;
207 QPushButton *mpToggleFeatureLayerButton;
209 QPushButton *mpToggleClusterLayerButton;
211 QLabel *mpFiltersLabel;
213 QWidget *mpFiltersBox;
215 QScrollArea *mpCheckBoxArea;
217 QWidget *mpCheckBoxColumn;
221 QWidget *mpFilterButtonsWidget;
223 QHBoxLayout *mpFilterButtonsWidgetLayout;
225 QPushButton *mpAddFilterButton;
227 QPushButton *mpRenameFilterButton;
229 QPushButton *mpSwapFiltersButton;
231 QPushButton *mpRemoveFilterButton;
233 QPushButton *mpRemoveFiltersButton;
248 #endif // PROPERTYDIALOG_H