8 #ifndef UI_ADDRESSBOOKPAGE_H
9 #define UI_ADDRESSBOOKPAGE_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QHBoxLayout>
16 #include <QtGui/QHeaderView>
17 #include <QtGui/QLabel>
18 #include <QtGui/QPushButton>
19 #include <QtGui/QSpacerItem>
20 #include <QtGui/QTableView>
21 #include <QtGui/QVBoxLayout>
22 #include <QtGui/QWidget>
42 if (AddressBookPage->objectName().isEmpty())
43 AddressBookPage->setObjectName(QString::fromUtf8(
"AddressBookPage"));
44 AddressBookPage->resize(760, 380);
45 verticalLayout =
new QVBoxLayout(AddressBookPage);
46 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
47 labelExplanation =
new QLabel(AddressBookPage);
48 labelExplanation->setObjectName(QString::fromUtf8(
"labelExplanation"));
49 labelExplanation->setTextFormat(Qt::PlainText);
50 labelExplanation->setWordWrap(
true);
52 verticalLayout->addWidget(labelExplanation);
54 tableView =
new QTableView(AddressBookPage);
55 tableView->setObjectName(QString::fromUtf8(
"tableView"));
56 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
57 tableView->setTabKeyNavigation(
false);
58 tableView->setAlternatingRowColors(
true);
59 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
60 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
61 tableView->setSortingEnabled(
true);
62 tableView->verticalHeader()->setVisible(
false);
64 verticalLayout->addWidget(tableView);
66 horizontalLayout =
new QHBoxLayout();
67 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
68 newAddress =
new QPushButton(AddressBookPage);
69 newAddress->setObjectName(QString::fromUtf8(
"newAddress"));
71 icon.addFile(QString::fromUtf8(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
72 newAddress->setIcon(icon);
74 horizontalLayout->addWidget(newAddress);
76 copyAddress =
new QPushButton(AddressBookPage);
77 copyAddress->setObjectName(QString::fromUtf8(
"copyAddress"));
79 icon1.addFile(QString::fromUtf8(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
80 copyAddress->setIcon(icon1);
82 horizontalLayout->addWidget(copyAddress);
84 deleteAddress =
new QPushButton(AddressBookPage);
85 deleteAddress->setObjectName(QString::fromUtf8(
"deleteAddress"));
87 icon2.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
88 deleteAddress->setIcon(icon2);
90 horizontalLayout->addWidget(deleteAddress);
92 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
94 horizontalLayout->addItem(horizontalSpacer);
96 exportButton =
new QPushButton(AddressBookPage);
97 exportButton->setObjectName(QString::fromUtf8(
"exportButton"));
99 icon3.addFile(QString::fromUtf8(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
100 exportButton->setIcon(icon3);
102 horizontalLayout->addWidget(exportButton);
104 closeButton =
new QPushButton(AddressBookPage);
105 closeButton->setObjectName(QString::fromUtf8(
"closeButton"));
106 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
107 sizePolicy.setHorizontalStretch(0);
108 sizePolicy.setVerticalStretch(0);
109 sizePolicy.setHeightForWidth(closeButton->sizePolicy().hasHeightForWidth());
110 closeButton->setSizePolicy(sizePolicy);
112 horizontalLayout->addWidget(closeButton);
115 verticalLayout->addLayout(horizontalLayout);
120 QMetaObject::connectSlotsByName(AddressBookPage);
125 #ifndef QT_NO_TOOLTIP
126 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Double-click to edit address or label", 0, QApplication::UnicodeUTF8));
127 #endif // QT_NO_TOOLTIP
128 #ifndef QT_NO_TOOLTIP
129 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", 0, QApplication::UnicodeUTF8));
130 #endif // QT_NO_TOOLTIP
131 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", 0, QApplication::UnicodeUTF8));
132 #ifndef QT_NO_TOOLTIP
133 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", 0, QApplication::UnicodeUTF8));
134 #endif // QT_NO_TOOLTIP
135 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", 0, QApplication::UnicodeUTF8));
136 #ifndef QT_NO_TOOLTIP
137 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", 0, QApplication::UnicodeUTF8));
138 #endif // QT_NO_TOOLTIP
139 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", 0, QApplication::UnicodeUTF8));
140 #ifndef QT_NO_TOOLTIP
141 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", 0, QApplication::UnicodeUTF8));
142 #endif // QT_NO_TOOLTIP
143 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", 0, QApplication::UnicodeUTF8));
144 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", 0, QApplication::UnicodeUTF8));
145 Q_UNUSED(AddressBookPage);
156 #endif // UI_ADDRESSBOOKPAGE_H
void retranslateUi(QWidget *AddressBookPage)
QPushButton * copyAddress
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
QPushButton * closeButton
void setupUi(QWidget *AddressBookPage)
QPushButton * deleteAddress
Widget that shows a list of sending or receiving addresses.
QPushButton * exportButton
QLabel * labelExplanation