ui_pqIconBrowser.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'pqIconBrowser.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.15.2
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_PQICONBROWSER_H
10 #define UI_PQICONBROWSER_H
11 
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QComboBox>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QDialogButtonBox>
18 #include <QtWidgets/QGridLayout>
19 #include <QtWidgets/QHBoxLayout>
20 #include <QtWidgets/QListView>
21 #include <QtWidgets/QSpacerItem>
22 #include <QtWidgets/QToolButton>
23 #include <QtWidgets/QVBoxLayout>
24 #include "pqSearchBox.h"
25 
26 QT_BEGIN_NAMESPACE
27 
29 {
30 public:
31  QGridLayout *gridLayout;
32  QHBoxLayout *buttonsLayout;
34  QComboBox *filterBox;
35  QDialogButtonBox *buttonBox;
36  QListView *listView;
37  QVBoxLayout *verticalLayout;
38  QToolButton *importIcon;
39  QToolButton *remove;
40  QSpacerItem *verticalSpacer;
41  QToolButton *removeAll;
42 
43  void setupUi(QDialog *pqIconBrowser)
44  {
45  if (pqIconBrowser->objectName().isEmpty())
46  pqIconBrowser->setObjectName(QString::fromUtf8("pqIconBrowser"));
47  pqIconBrowser->resize(786, 485);
48  gridLayout = new QGridLayout(pqIconBrowser);
49  gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
50  buttonsLayout = new QHBoxLayout();
51  buttonsLayout->setObjectName(QString::fromUtf8("buttonsLayout"));
52  searchBox = new pqSearchBox(pqIconBrowser);
53  searchBox->setObjectName(QString::fromUtf8("searchBox"));
54  searchBox->setProperty("settingKey", QVariant(QString::fromUtf8("showAdvancedProperties")));
55  searchBox->setProperty("advancedSearchEnabled", QVariant(false));
56 
57  buttonsLayout->addWidget(searchBox);
58 
59  filterBox = new QComboBox(pqIconBrowser);
60  filterBox->setObjectName(QString::fromUtf8("filterBox"));
61 
62  buttonsLayout->addWidget(filterBox);
63 
64 
65  gridLayout->addLayout(buttonsLayout, 4, 0, 1, 1);
66 
67  buttonBox = new QDialogButtonBox(pqIconBrowser);
68  buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
69  buttonBox->setOrientation(Qt::Horizontal);
70  buttonBox->setStandardButtons(QDialogButtonBox::Close|QDialogButtonBox::Ok);
71 
72  gridLayout->addWidget(buttonBox, 6, 0, 1, 4);
73 
74  listView = new QListView(pqIconBrowser);
75  listView->setObjectName(QString::fromUtf8("listView"));
76  listView->setIconSize(QSize(30, 30));
77  listView->setMovement(QListView::Static);
78  listView->setResizeMode(QListView::Adjust);
79  listView->setGridSize(QSize(150, 80));
80  listView->setViewMode(QListView::IconMode);
81  listView->setWordWrap(true);
82  listView->setTextElideMode(Qt::ElideLeft);
83  listView->setItemAlignment(Qt::AlignBottom|Qt::AlignHCenter);
84  listView->setSelectionRectVisible(true);
85 
86  gridLayout->addWidget(listView, 5, 0, 1, 1);
87 
88  verticalLayout = new QVBoxLayout();
89  verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
90  importIcon = new QToolButton(pqIconBrowser);
91  importIcon->setObjectName(QString::fromUtf8("importIcon"));
92  QIcon icon;
93  icon.addFile(QString::fromUtf8(":/pqWidgets/Icons/pqOpen.svg"), QSize(), QIcon::Normal, QIcon::Off);
94  importIcon->setIcon(icon);
95 
96  verticalLayout->addWidget(importIcon);
97 
98  remove = new QToolButton(pqIconBrowser);
99  remove->setObjectName(QString::fromUtf8("remove"));
100  QIcon icon1;
101  icon1.addFile(QString::fromUtf8(":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
102  remove->setIcon(icon1);
103 
104  verticalLayout->addWidget(remove);
105 
106  verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
107 
108  verticalLayout->addItem(verticalSpacer);
109 
110  removeAll = new QToolButton(pqIconBrowser);
111  removeAll->setObjectName(QString::fromUtf8("removeAll"));
112  QIcon icon2;
113  icon2.addFile(QString::fromUtf8(":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
114  removeAll->setIcon(icon2);
115 
116  verticalLayout->addWidget(removeAll);
117 
118 
119  gridLayout->addLayout(verticalLayout, 5, 3, 1, 1);
120 
121 
122  retranslateUi(pqIconBrowser);
123  QObject::connect(buttonBox, SIGNAL(accepted()), pqIconBrowser, SLOT(accept()));
124  QObject::connect(buttonBox, SIGNAL(rejected()), pqIconBrowser, SLOT(reject()));
125 
126  QMetaObject::connectSlotsByName(pqIconBrowser);
127  } // setupUi
128 
130  {
131  pqIconBrowser->setWindowTitle(QCoreApplication::translate("pqIconBrowser", "Browse icons", nullptr));
132 #if QT_CONFIG(tooltip)
133  importIcon->setToolTip(QCoreApplication::translate("pqIconBrowser", "Import new icon", nullptr));
134 #endif // QT_CONFIG(tooltip)
135  importIcon->setText(QCoreApplication::translate("pqIconBrowser", "...", nullptr));
136 #if QT_CONFIG(tooltip)
137  remove->setToolTip(QCoreApplication::translate("pqIconBrowser", "Remove custom icon", nullptr));
138 #endif // QT_CONFIG(tooltip)
139  remove->setText(QCoreApplication::translate("pqIconBrowser", "...", nullptr));
140 #if QT_CONFIG(tooltip)
141  removeAll->setToolTip(QCoreApplication::translate("pqIconBrowser", "Remove all custom icons", nullptr));
142 #endif // QT_CONFIG(tooltip)
143  removeAll->setText(QCoreApplication::translate("pqIconBrowser", "...", nullptr));
144  } // retranslateUi
145 
146 };
147 
148 namespace Ui {
149  class pqIconBrowser: public Ui_pqIconBrowser {};
150 } // namespace Ui
151 
152 QT_END_NAMESPACE
153 
154 #endif // UI_PQICONBROWSER_H
void retranslateUi(QDialog *pqIconBrowser)
QSpacerItem * verticalSpacer
void setupUi(QDialog *pqIconBrowser)
QListView * listView
pqSearchBox * searchBox
pqSearchBox is a line edit and an advanced tool button in the same layout.
Definition: pqSearchBox.h:25
QToolButton * removeAll
QDialogButtonBox * buttonBox
QGridLayout * gridLayout
pqIconBrowser is a dialog to browse available icons.
Definition: pqIconBrowser.h:21
QToolButton * importIcon
QComboBox * filterBox
QVBoxLayout * verticalLayout
QHBoxLayout * buttonsLayout