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 ADDBOOKMARKDIALOG_H |
|
20 #define ADDBOOKMARKDIALOG_H |
|
21 |
|
22 #include <QtCore/QVariant> |
|
23 #include <QtGui/QAction> |
|
24 #include <QtGui/QApplication> |
|
25 #include <QtGui/QButtonGroup> |
|
26 #include <QtGui/QComboBox> |
|
27 #include <QtGui/QDialog> |
|
28 #include <QtGui/QDialogButtonBox> |
|
29 #include <QtGui/QLabel> |
|
30 #include <QtGui/QLineEdit> |
|
31 #include <QtGui/QSpacerItem> |
|
32 #include <QtGui/QVBoxLayout> |
|
33 #include "BaseDialog.h" |
|
34 |
|
35 namespace WRT { |
|
36 |
|
37 class Ui_AddBookmarkDialog |
|
38 { |
|
39 public: |
|
40 QVBoxLayout *verticalLayout; |
|
41 QLabel *label; |
|
42 QLineEdit *name; |
|
43 QLineEdit *address; |
|
44 QComboBox *location; |
|
45 QSpacerItem *verticalSpacer; |
|
46 QDialogButtonBox *buttonBox; |
|
47 |
|
48 void setupUi(BaseDialog *AddBookmarkDialog) |
|
49 { |
|
50 if (AddBookmarkDialog->objectName().isEmpty()) |
|
51 AddBookmarkDialog->setObjectName(QString::fromUtf8("AddBookmarkDialog")); |
|
52 |
|
53 verticalLayout = new QVBoxLayout(AddBookmarkDialog); |
|
54 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); |
|
55 label = new QLabel(AddBookmarkDialog); |
|
56 label->setObjectName(QString::fromUtf8("label")); |
|
57 label->setTextFormat(Qt::PlainText); |
|
58 label->setWordWrap(true); |
|
59 |
|
60 verticalLayout->addWidget(label); |
|
61 |
|
62 name = new QLineEdit(AddBookmarkDialog); |
|
63 name->setObjectName(QString::fromUtf8("name")); |
|
64 |
|
65 verticalLayout->addWidget(name); |
|
66 |
|
67 address = new QLineEdit(AddBookmarkDialog); |
|
68 address->setObjectName(QString::fromUtf8("address")); |
|
69 |
|
70 verticalLayout->addWidget(address); |
|
71 |
|
72 location = new QComboBox(AddBookmarkDialog); |
|
73 location->setObjectName(QString::fromUtf8("location")); |
|
74 |
|
75 verticalLayout->addWidget(location); |
|
76 |
|
77 verticalSpacer = new QSpacerItem(20, 2, QSizePolicy::Minimum, QSizePolicy::Expanding); |
|
78 |
|
79 verticalLayout->addItem(verticalSpacer); |
|
80 |
|
81 buttonBox = new QDialogButtonBox(AddBookmarkDialog); |
|
82 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
|
83 buttonBox->setOrientation(Qt::Horizontal); |
|
84 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
|
85 buttonBox->setCenterButtons(false); |
|
86 |
|
87 verticalLayout->addWidget(buttonBox); |
|
88 |
|
89 |
|
90 retranslateUi(AddBookmarkDialog); |
|
91 QObject::connect(buttonBox, SIGNAL(accepted()), AddBookmarkDialog, SLOT(accept())); |
|
92 QObject::connect(buttonBox, SIGNAL(rejected()), AddBookmarkDialog, SLOT(reject())); |
|
93 |
|
94 QMetaObject::connectSlotsByName(AddBookmarkDialog); |
|
95 } // setupUi |
|
96 |
|
97 void retranslateUi(BaseDialog *AddBookmarkDialog) |
|
98 { |
|
99 AddBookmarkDialog->setWindowTitle(QApplication::translate("AddBookmarkDialog", "Add Bookmark", 0, QApplication::UnicodeUTF8)); |
|
100 label->setText(QApplication::translate("AddBookmarkDialog", "Type a name for the bookmark, and choose where to keep it.", 0, QApplication::UnicodeUTF8)); |
|
101 Q_UNUSED(AddBookmarkDialog); |
|
102 } // retranslateUi |
|
103 |
|
104 }; |
|
105 |
|
106 namespace Ui { |
|
107 class AddBookmarkDialog: public Ui_AddBookmarkDialog {}; |
|
108 } // namespace Ui |
|
109 |
|
110 } |
|
111 |
|
112 #endif // ADDBOOKMARKDIALOG_H |
|