10 #ifndef UI_MODULE_META_WIDGET_H
11 #define UI_MODULE_META_WIDGET_H
13 #include <QtCore/QVariant>
14 #include <QtGui/QAction>
15 #include <QtGui/QApplication>
16 #include <QtGui/QButtonGroup>
17 #include <QtGui/QGridLayout>
18 #include <QtGui/QHBoxLayout>
19 #include <QtGui/QHeaderView>
20 #include <QtGui/QLabel>
21 #include <QtGui/QListWidget>
22 #include <QtGui/QPushButton>
23 #include <QtGui/QWidget>
30 QWidget *gridLayoutWidget;
31 QGridLayout *gridLayout;
32 QHBoxLayout *horizontalLayout;
33 QPushButton *toggleDepList;
34 QLabel *label_num_files_value;
35 QLabel *label_num_files;
37 QLabel *label_num_dependents_value;
38 QLabel *label_degree_value;
39 QLabel *label_num_dependencies_value;
40 QLabel *label_num_dependencies;
41 QLabel *label_num_dependents;
42 QLabel *label_node_name;
43 QLabel *label_node_name_value;
44 QPushButton *drillDownBtn;
45 QPushButton *showNodeBtn;
46 QLabel *label_list_dep_type;
47 QListWidget *list_dep;
49 void setupUi(QWidget *ModuleMetaWidget)
51 if (ModuleMetaWidget->objectName().isEmpty())
52 ModuleMetaWidget->setObjectName(QString::fromUtf8(
"ModuleMetaWidget"));
53 ModuleMetaWidget->resize(353, 497);
54 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
55 sizePolicy.setHorizontalStretch(0);
56 sizePolicy.setVerticalStretch(1);
57 sizePolicy.setHeightForWidth(ModuleMetaWidget->sizePolicy().hasHeightForWidth());
58 ModuleMetaWidget->setSizePolicy(sizePolicy);
59 gridLayoutWidget =
new QWidget(ModuleMetaWidget);
60 gridLayoutWidget->setObjectName(QString::fromUtf8(
"gridLayoutWidget"));
61 gridLayoutWidget->setGeometry(QRect(0, 0, 350, 351));
62 gridLayout =
new QGridLayout(gridLayoutWidget);
63 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
64 gridLayout->setVerticalSpacing(6);
65 gridLayout->setContentsMargins(0, 0, 0, 0);
66 horizontalLayout =
new QHBoxLayout();
67 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
68 toggleDepList =
new QPushButton(gridLayoutWidget);
69 toggleDepList->setObjectName(QString::fromUtf8(
"toggleDepList"));
71 horizontalLayout->addWidget(toggleDepList);
74 gridLayout->addLayout(horizontalLayout, 10, 0, 1, 2);
76 label_num_files_value =
new QLabel(gridLayoutWidget);
77 label_num_files_value->setObjectName(QString::fromUtf8(
"label_num_files_value"));
78 label_num_files_value->setEnabled(
true);
79 QSizePolicy sizePolicy1(QSizePolicy::Maximum, QSizePolicy::Preferred);
80 sizePolicy1.setHorizontalStretch(0);
81 sizePolicy1.setVerticalStretch(0);
82 sizePolicy1.setHeightForWidth(label_num_files_value->sizePolicy().hasHeightForWidth());
83 label_num_files_value->setSizePolicy(sizePolicy1);
84 label_num_files_value->setMaximumSize(QSize(150, 16777215));
85 label_num_files_value->setBaseSize(QSize(50, 0));
86 label_num_files_value->setScaledContents(
true);
87 label_num_files_value->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
89 gridLayout->addWidget(label_num_files_value, 1, 1, 1, 1);
91 label_num_files =
new QLabel(gridLayoutWidget);
92 label_num_files->setObjectName(QString::fromUtf8(
"label_num_files"));
93 sizePolicy1.setHeightForWidth(label_num_files->sizePolicy().hasHeightForWidth());
94 label_num_files->setSizePolicy(sizePolicy1);
96 gridLayout->addWidget(label_num_files, 1, 0, 1, 1);
98 label_degree =
new QLabel(gridLayoutWidget);
99 label_degree->setObjectName(QString::fromUtf8(
"label_degree"));
100 sizePolicy1.setHeightForWidth(label_degree->sizePolicy().hasHeightForWidth());
101 label_degree->setSizePolicy(sizePolicy1);
103 gridLayout->addWidget(label_degree, 4, 0, 1, 1);
105 label_num_dependents_value =
new QLabel(gridLayoutWidget);
106 label_num_dependents_value->setObjectName(QString::fromUtf8(
"label_num_dependents_value"));
107 label_num_dependents_value->setEnabled(
true);
108 sizePolicy1.setHeightForWidth(label_num_dependents_value->sizePolicy().hasHeightForWidth());
109 label_num_dependents_value->setSizePolicy(sizePolicy1);
110 label_num_dependents_value->setMaximumSize(QSize(150, 16777215));
111 label_num_dependents_value->setBaseSize(QSize(50, 0));
112 label_num_dependents_value->setScaledContents(
true);
113 label_num_dependents_value->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
115 gridLayout->addWidget(label_num_dependents_value, 3, 1, 1, 1);
117 label_degree_value =
new QLabel(gridLayoutWidget);
118 label_degree_value->setObjectName(QString::fromUtf8(
"label_degree_value"));
119 label_degree_value->setEnabled(
true);
120 sizePolicy1.setHeightForWidth(label_degree_value->sizePolicy().hasHeightForWidth());
121 label_degree_value->setSizePolicy(sizePolicy1);
122 label_degree_value->setMaximumSize(QSize(150, 16777215));
123 label_degree_value->setBaseSize(QSize(50, 0));
124 label_degree_value->setScaledContents(
true);
125 label_degree_value->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
127 gridLayout->addWidget(label_degree_value, 4, 1, 1, 1);
129 label_num_dependencies_value =
new QLabel(gridLayoutWidget);
130 label_num_dependencies_value->setObjectName(QString::fromUtf8(
"label_num_dependencies_value"));
131 label_num_dependencies_value->setEnabled(
true);
132 sizePolicy1.setHeightForWidth(label_num_dependencies_value->sizePolicy().hasHeightForWidth());
133 label_num_dependencies_value->setSizePolicy(sizePolicy1);
134 label_num_dependencies_value->setMaximumSize(QSize(150, 16777215));
135 label_num_dependencies_value->setBaseSize(QSize(50, 0));
136 label_num_dependencies_value->setScaledContents(
true);
137 label_num_dependencies_value->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
139 gridLayout->addWidget(label_num_dependencies_value, 2, 1, 1, 1);
141 label_num_dependencies =
new QLabel(gridLayoutWidget);
142 label_num_dependencies->setObjectName(QString::fromUtf8(
"label_num_dependencies"));
143 sizePolicy1.setHeightForWidth(label_num_dependencies->sizePolicy().hasHeightForWidth());
144 label_num_dependencies->setSizePolicy(sizePolicy1);
146 gridLayout->addWidget(label_num_dependencies, 2, 0, 1, 1);
148 label_num_dependents =
new QLabel(gridLayoutWidget);
149 label_num_dependents->setObjectName(QString::fromUtf8(
"label_num_dependents"));
150 sizePolicy1.setHeightForWidth(label_num_dependents->sizePolicy().hasHeightForWidth());
151 label_num_dependents->setSizePolicy(sizePolicy1);
153 gridLayout->addWidget(label_num_dependents, 3, 0, 1, 1);
155 label_node_name =
new QLabel(gridLayoutWidget);
156 label_node_name->setObjectName(QString::fromUtf8(
"label_node_name"));
157 sizePolicy1.setHeightForWidth(label_node_name->sizePolicy().hasHeightForWidth());
158 label_node_name->setSizePolicy(sizePolicy1);
160 gridLayout->addWidget(label_node_name, 0, 0, 1, 1);
162 label_node_name_value =
new QLabel(gridLayoutWidget);
163 label_node_name_value->setObjectName(QString::fromUtf8(
"label_node_name_value"));
164 label_node_name_value->setEnabled(
true);
165 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
166 sizePolicy2.setHorizontalStretch(0);
167 sizePolicy2.setVerticalStretch(0);
168 sizePolicy2.setHeightForWidth(label_node_name_value->sizePolicy().hasHeightForWidth());
169 label_node_name_value->setSizePolicy(sizePolicy2);
170 label_node_name_value->setMaximumSize(QSize(150, 16777215));
171 label_node_name_value->setBaseSize(QSize(50, 0));
172 label_node_name_value->setScaledContents(
true);
173 label_node_name_value->setWordWrap(
true);
174 label_node_name_value->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
176 gridLayout->addWidget(label_node_name_value, 0, 1, 1, 1);
178 drillDownBtn =
new QPushButton(gridLayoutWidget);
179 drillDownBtn->setObjectName(QString::fromUtf8(
"drillDownBtn"));
181 gridLayout->addWidget(drillDownBtn, 5, 0, 1, 1);
183 showNodeBtn =
new QPushButton(gridLayoutWidget);
184 showNodeBtn->setObjectName(QString::fromUtf8(
"showNodeBtn"));
186 gridLayout->addWidget(showNodeBtn, 5, 1, 1, 1);
188 label_list_dep_type =
new QLabel(gridLayoutWidget);
189 label_list_dep_type->setObjectName(QString::fromUtf8(
"label_list_dep_type"));
191 gridLayout->addWidget(label_list_dep_type, 8, 0, 1, 2);
193 list_dep =
new QListWidget(gridLayoutWidget);
194 list_dep->setObjectName(QString::fromUtf8(
"list_dep"));
196 gridLayout->addWidget(list_dep, 9, 0, 1, 2);
199 retranslateUi(ModuleMetaWidget);
201 QMetaObject::connectSlotsByName(ModuleMetaWidget);
204 void retranslateUi(QWidget *ModuleMetaWidget)
206 ModuleMetaWidget->setWindowTitle(QApplication::translate(
"ModuleMetaWidget",
"Form", 0, QApplication::UnicodeUTF8));
207 toggleDepList->setText(QApplication::translate(
"ModuleMetaWidget",
"Toggle List", 0, QApplication::UnicodeUTF8));
208 label_num_files_value->setText(QString());
209 label_num_files->setText(QApplication::translate(
"ModuleMetaWidget",
"Nr of files", 0, QApplication::UnicodeUTF8));
210 label_degree->setText(QApplication::translate(
"ModuleMetaWidget",
"Degree", 0, QApplication::UnicodeUTF8));
211 label_num_dependents_value->setText(QString());
212 label_degree_value->setText(QString());
213 label_num_dependencies_value->setText(QString());
214 label_num_dependencies->setText(QApplication::translate(
"ModuleMetaWidget",
"Nr of dependencies", 0, QApplication::UnicodeUTF8));
215 label_num_dependents->setText(QApplication::translate(
"ModuleMetaWidget",
"Nr of dependents", 0, QApplication::UnicodeUTF8));
216 label_node_name->setText(QApplication::translate(
"ModuleMetaWidget",
"Node name", 0, QApplication::UnicodeUTF8));
217 label_node_name_value->setText(QString());
218 drillDownBtn->setText(QApplication::translate(
"ModuleMetaWidget",
"Expand", 0, QApplication::UnicodeUTF8));
219 showNodeBtn->setText(QApplication::translate(
"ModuleMetaWidget",
"Focus on", 0, QApplication::UnicodeUTF8));
220 label_list_dep_type->setText(QApplication::translate(
"ModuleMetaWidget",
"Dependency or Dependants", 0, QApplication::UnicodeUTF8));
231 #endif // UI_MODULE_META_WIDGET_H