10 #ifndef UI_FILTER_MENU_H
11 #define UI_FILTER_MENU_H
13 #include <QtCore/QVariant>
14 #include <QtGui/QAction>
15 #include <QtGui/QApplication>
16 #include <QtGui/QButtonGroup>
17 #include <QtGui/QHeaderView>
18 #include <QtGui/QTreeView>
19 #include <QtGui/QWidget>
26 QTreeView *filterEditor;
30 if (FilterMenu->objectName().isEmpty())
31 FilterMenu->setObjectName(QString::fromUtf8(
"FilterMenu"));
32 FilterMenu->resize(300, 200);
33 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Expanding);
34 sizePolicy.setHorizontalStretch(0);
35 sizePolicy.setVerticalStretch(0);
36 sizePolicy.setHeightForWidth(FilterMenu->sizePolicy().hasHeightForWidth());
37 FilterMenu->setSizePolicy(sizePolicy);
38 FilterMenu->setMinimumSize(QSize(300, 200));
39 FilterMenu->setMaximumSize(QSize(350, 200));
40 FilterMenu->setBaseSize(QSize(350, 200));
41 filterEditor =
new QTreeView(FilterMenu);
42 filterEditor->setObjectName(QString::fromUtf8(
"filterEditor"));
43 filterEditor->setGeometry(QRect(0, 0, 300, 200));
44 sizePolicy.setHeightForWidth(filterEditor->sizePolicy().hasHeightForWidth());
45 filterEditor->setSizePolicy(sizePolicy);
46 filterEditor->setMinimumSize(QSize(300, 200));
47 filterEditor->setMaximumSize(QSize(300, 200));
48 filterEditor->setBaseSize(QSize(300, 200));
49 filterEditor->setContextMenuPolicy(Qt::CustomContextMenu);
50 filterEditor->setSelectionMode(QAbstractItemView::ExtendedSelection);
52 retranslateUi(FilterMenu);
54 QMetaObject::connectSlotsByName(FilterMenu);
57 void retranslateUi(QWidget *FilterMenu)
59 FilterMenu->setWindowTitle(QApplication::translate(
"FilterMenu",
"Form", 0, QApplication::UnicodeUTF8));
60 #ifndef QT_NO_WHATSTHIS
61 filterEditor->setWhatsThis(QApplication::translate(
"FilterMenu",
"<html><head/><body><p>List of filter actions applied. Right click to add new items to the list or remove existing items. Filters are applied in the order shown and will be using "AND" criteria, meaning that only if all filters match will the node be included (or vice versa for Exclude filters).</p><p>Include criteria means that if the filter matches the node will be included in the graph (or any other action taken - such as colouring). If "Exclude" is selected, this means that nodes matching criteria will be excluded from the Graph/Colouring.</p><p>Filters can be exported using the menu bar "File" menu.</p></body></html>", 0, QApplication::UnicodeUTF8));
62 #endif // QT_NO_WHATSTHIS
73 #endif // UI_FILTER_MENU_H