9 #ifndef UI_ADDRESSBOOKPAGE_H
10 #define UI_ADDRESSBOOKPAGE_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QHBoxLayout>
17 #include <QtWidgets/QHeaderView>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QPushButton>
20 #include <QtWidgets/QSpacerItem>
21 #include <QtWidgets/QTableView>
22 #include <QtWidgets/QVBoxLayout>
23 #include <QtWidgets/QWidget>
43 if (AddressBookPage->objectName().isEmpty())
44 AddressBookPage->setObjectName(QStringLiteral(
"AddressBookPage"));
45 AddressBookPage->resize(760, 380);
46 verticalLayout =
new QVBoxLayout(AddressBookPage);
47 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
48 labelExplanation =
new QLabel(AddressBookPage);
49 labelExplanation->setObjectName(QStringLiteral(
"labelExplanation"));
50 labelExplanation->setTextFormat(Qt::PlainText);
51 labelExplanation->setWordWrap(
true);
53 verticalLayout->addWidget(labelExplanation);
55 tableView =
new QTableView(AddressBookPage);
56 tableView->setObjectName(QStringLiteral(
"tableView"));
57 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
58 tableView->setTabKeyNavigation(
false);
59 tableView->setAlternatingRowColors(
true);
60 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
61 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
62 tableView->setSortingEnabled(
true);
63 tableView->verticalHeader()->setVisible(
false);
65 verticalLayout->addWidget(tableView);
67 horizontalLayout =
new QHBoxLayout();
68 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
69 newAddress =
new QPushButton(AddressBookPage);
70 newAddress->setObjectName(QStringLiteral(
"newAddress"));
72 icon.addFile(QStringLiteral(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
73 newAddress->setIcon(icon);
75 horizontalLayout->addWidget(newAddress);
77 copyAddress =
new QPushButton(AddressBookPage);
78 copyAddress->setObjectName(QStringLiteral(
"copyAddress"));
80 icon1.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
81 copyAddress->setIcon(icon1);
83 horizontalLayout->addWidget(copyAddress);
85 deleteAddress =
new QPushButton(AddressBookPage);
86 deleteAddress->setObjectName(QStringLiteral(
"deleteAddress"));
88 icon2.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
89 deleteAddress->setIcon(icon2);
91 horizontalLayout->addWidget(deleteAddress);
93 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
95 horizontalLayout->addItem(horizontalSpacer);
97 exportButton =
new QPushButton(AddressBookPage);
98 exportButton->setObjectName(QStringLiteral(
"exportButton"));
100 icon3.addFile(QStringLiteral(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
101 exportButton->setIcon(icon3);
103 horizontalLayout->addWidget(exportButton);
105 closeButton =
new QPushButton(AddressBookPage);
106 closeButton->setObjectName(QStringLiteral(
"closeButton"));
107 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
108 sizePolicy.setHorizontalStretch(0);
109 sizePolicy.setVerticalStretch(0);
110 sizePolicy.setHeightForWidth(closeButton->sizePolicy().hasHeightForWidth());
111 closeButton->setSizePolicy(sizePolicy);
113 horizontalLayout->addWidget(closeButton);
116 verticalLayout->addLayout(horizontalLayout);
121 QMetaObject::connectSlotsByName(AddressBookPage);
126 #ifndef QT_NO_TOOLTIP
127 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Double-click to edit address or label", 0));
128 #endif // QT_NO_TOOLTIP
129 #ifndef QT_NO_TOOLTIP
130 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", 0));
131 #endif // QT_NO_TOOLTIP
132 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", 0));
133 #ifndef QT_NO_TOOLTIP
134 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", 0));
135 #endif // QT_NO_TOOLTIP
136 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", 0));
137 #ifndef QT_NO_TOOLTIP
138 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", 0));
139 #endif // QT_NO_TOOLTIP
140 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", 0));
141 #ifndef QT_NO_TOOLTIP
142 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", 0));
143 #endif // QT_NO_TOOLTIP
144 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", 0));
145 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", 0));
146 Q_UNUSED(AddressBookPage);
157 #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