1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef EDITFOLDERDIALOG_H |
|
20 #define EDITFOLDERDIALOG_H |
|
21 |
|
22 #include <QtCore/QVariant> |
|
23 #include <QtGui/QAction> |
|
24 #include <QtGui/QApplication> |
|
25 #include <QtGui/QButtonGroup> |
|
26 #include <QtGui/QDialog> |
|
27 #include <QtGui/QDialogButtonBox> |
|
28 #include <QtGui/QLabel> |
|
29 #include <QtGui/QLineEdit> |
|
30 #include <QtGui/QSpacerItem> |
|
31 #include <QtGui/QVBoxLayout> |
|
32 #include "BaseDialog.h" |
|
33 |
|
34 namespace WRT { |
|
35 |
|
36 class Ui_EditFolderDialog |
|
37 { |
|
38 public: |
|
39 QVBoxLayout *verticalLayout; |
|
40 QLabel *label; |
|
41 QLineEdit *name; |
|
42 QSpacerItem *verticalSpacer; |
|
43 QDialogButtonBox *buttonBox; |
|
44 |
|
45 void setupUi(BaseDialog *EditFolderDialog) |
|
46 { |
|
47 if (EditFolderDialog->objectName().isEmpty()) |
|
48 EditFolderDialog->setObjectName(QString::fromUtf8("EditFolderDialog")); |
|
49 |
|
50 verticalLayout = new QVBoxLayout(EditFolderDialog); |
|
51 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); |
|
52 label = new QLabel(EditFolderDialog); |
|
53 label->setObjectName(QString::fromUtf8("label")); |
|
54 label->setTextFormat(Qt::PlainText); |
|
55 label->setWordWrap(true); |
|
56 |
|
57 verticalLayout->addWidget(label); |
|
58 |
|
59 name = new QLineEdit(EditFolderDialog); |
|
60 name->setObjectName(QString::fromUtf8("name")); |
|
61 |
|
62 verticalLayout->addWidget(name); |
|
63 |
|
64 verticalSpacer = new QSpacerItem(20, 2, QSizePolicy::Minimum, QSizePolicy::Expanding); |
|
65 |
|
66 verticalLayout->addItem(verticalSpacer); |
|
67 |
|
68 buttonBox = new QDialogButtonBox(EditFolderDialog); |
|
69 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
|
70 buttonBox->setOrientation(Qt::Horizontal); |
|
71 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
|
72 buttonBox->setCenterButtons(false); |
|
73 |
|
74 verticalLayout->addWidget(buttonBox); |
|
75 |
|
76 |
|
77 retranslateUi(EditFolderDialog); |
|
78 QObject::connect(buttonBox, SIGNAL(accepted()), EditFolderDialog, SLOT(accept())); |
|
79 QObject::connect(buttonBox, SIGNAL(rejected()), EditFolderDialog, SLOT(reject())); |
|
80 |
|
81 QMetaObject::connectSlotsByName(EditFolderDialog); |
|
82 } // setupUi |
|
83 |
|
84 void retranslateUi(BaseDialog *EditFolderDialog) |
|
85 { |
|
86 EditFolderDialog->setWindowTitle(QApplication::translate("EditFolderDialog", "Edit Folder", 0, QApplication::UnicodeUTF8)); |
|
87 label->setText(QApplication::translate("EditFolderDialog", "Type a name for the folder.", 0, QApplication::UnicodeUTF8)); |
|
88 Q_UNUSED(EditFolderDialog); |
|
89 } // retranslateUi |
|
90 |
|
91 }; |
|
92 |
|
93 namespace Ui { |
|
94 class EditFolderDialog: public Ui_EditFolderDialog {}; |
|
95 } // namespace Ui |
|
96 |
|
97 } |
|
98 |
|
99 #endif // EDITFOLDERDIALOG_H |
|