12 #ifndef UI_COLLECTIONGENERALPROPERTIESPAGE_H
13 #define UI_COLLECTIONGENERALPROPERTIESPAGE_H
15 #include <QtCore/QVariant>
16 #include <QtGui/QAction>
17 #include <QtGui/QApplication>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/QCheckBox>
20 #include <QtGui/QGridLayout>
21 #include <QtGui/QGroupBox>
22 #include <QtGui/QHeaderView>
23 #include <QtGui/QLabel>
24 #include <QtGui/QSpacerItem>
25 #include <QtGui/QWidget>
26 #include "kicondialog.h"
27 #include "klineedit.h"
31 class Ui_CollectionGeneralPropertiesPage
34 QGridLayout *gridLayout;
37 QCheckBox *customIconCheckbox;
38 KIconButton *customIcon;
39 QSpacerItem *spacerItem;
41 QGridLayout *gridLayout1;
46 QSpacerItem *spacerItem1;
48 void setupUi(QWidget *CollectionGeneralPropertiesPage)
50 if (CollectionGeneralPropertiesPage->objectName().isEmpty())
51 CollectionGeneralPropertiesPage->setObjectName(QString::fromUtf8(
"CollectionGeneralPropertiesPage"));
52 CollectionGeneralPropertiesPage->resize(400, 300);
53 gridLayout =
new QGridLayout(CollectionGeneralPropertiesPage);
54 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
55 label =
new QLabel(CollectionGeneralPropertiesPage);
56 label->setObjectName(QString::fromUtf8(
"label"));
58 gridLayout->addWidget(label, 0, 0, 1, 1);
60 nameEdit =
new KLineEdit(CollectionGeneralPropertiesPage);
61 nameEdit->setObjectName(QString::fromUtf8(
"nameEdit"));
63 gridLayout->addWidget(nameEdit, 0, 1, 1, 3);
65 customIconCheckbox =
new QCheckBox(CollectionGeneralPropertiesPage);
66 customIconCheckbox->setObjectName(QString::fromUtf8(
"customIconCheckbox"));
68 gridLayout->addWidget(customIconCheckbox, 1, 0, 1, 2);
70 customIcon =
new KIconButton(CollectionGeneralPropertiesPage);
71 customIcon->setObjectName(QString::fromUtf8(
"customIcon"));
72 customIcon->setEnabled(
false);
73 customIcon->setIconSize(16);
75 gridLayout->addWidget(customIcon, 1, 2, 1, 1);
77 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
79 gridLayout->addItem(spacerItem, 1, 3, 1, 1);
81 statsBox =
new QGroupBox(CollectionGeneralPropertiesPage);
82 statsBox->setObjectName(QString::fromUtf8(
"statsBox"));
83 gridLayout1 =
new QGridLayout(statsBox);
84 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
85 label_2 =
new QLabel(statsBox);
86 label_2->setObjectName(QString::fromUtf8(
"label_2"));
88 gridLayout1->addWidget(label_2, 0, 0, 1, 1);
90 countLabel =
new QLabel(statsBox);
91 countLabel->setObjectName(QString::fromUtf8(
"countLabel"));
93 gridLayout1->addWidget(countLabel, 0, 1, 1, 1);
95 label_3 =
new QLabel(statsBox);
96 label_3->setObjectName(QString::fromUtf8(
"label_3"));
98 gridLayout1->addWidget(label_3, 1, 0, 1, 1);
100 sizeLabel =
new QLabel(statsBox);
101 sizeLabel->setObjectName(QString::fromUtf8(
"sizeLabel"));
103 gridLayout1->addWidget(sizeLabel, 1, 1, 1, 1);
106 gridLayout->addWidget(statsBox, 2, 0, 1, 4);
108 spacerItem1 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
110 gridLayout->addItem(spacerItem1, 3, 2, 1, 1);
112 #ifndef UI_QT_NO_SHORTCUT
113 label->setBuddy(nameEdit);
114 #endif // QT_NO_SHORTCUT
116 retranslateUi(CollectionGeneralPropertiesPage);
117 QObject::connect(customIconCheckbox, SIGNAL(toggled(
bool)), customIcon, SLOT(setEnabled(
bool)));
119 QMetaObject::connectSlotsByName(CollectionGeneralPropertiesPage);
122 void retranslateUi(QWidget *CollectionGeneralPropertiesPage)
124 label->setText(tr2i18n(
"&Name:", 0));
125 customIconCheckbox->setText(tr2i18n(
"&Use custom icon:", 0));
126 customIcon->setIcon(tr2i18n(
"folder", 0));
127 statsBox->setTitle(tr2i18n(
"Statistics", 0));
128 label_2->setText(tr2i18n(
"Content:",
"object names"));
129 countLabel->setText(tr2i18n(
"0 objects", 0));
130 label_3->setText(tr2i18n(
"Size:", 0));
131 sizeLabel->setText(tr2i18n(
"0 Byte", 0));
132 Q_UNUSED(CollectionGeneralPropertiesPage);
138 class CollectionGeneralPropertiesPage:
public Ui_CollectionGeneralPropertiesPage {};
143 #endif // COLLECTIONGENERALPROPERTIESPAGE_H