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/QLineEdit> 20 #include <QtWidgets/QPushButton> 21 #include <QtWidgets/QSpacerItem> 22 #include <QtWidgets/QTableView> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 45 if (AddressBookPage->objectName().isEmpty())
46 AddressBookPage->setObjectName(QStringLiteral(
"AddressBookPage"));
47 AddressBookPage->resize(760, 380);
48 verticalLayout =
new QVBoxLayout(AddressBookPage);
49 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
50 labelExplanation =
new QLabel(AddressBookPage);
51 labelExplanation->setObjectName(QStringLiteral(
"labelExplanation"));
52 labelExplanation->setTextFormat(Qt::PlainText);
53 labelExplanation->setWordWrap(
true);
55 verticalLayout->addWidget(labelExplanation);
57 searchLineEdit =
new QLineEdit(AddressBookPage);
58 searchLineEdit->setObjectName(QStringLiteral(
"searchLineEdit"));
60 verticalLayout->addWidget(searchLineEdit);
62 tableView =
new QTableView(AddressBookPage);
63 tableView->setObjectName(QStringLiteral(
"tableView"));
64 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
65 tableView->setTabKeyNavigation(
false);
66 tableView->setAlternatingRowColors(
true);
67 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
68 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
69 tableView->setSortingEnabled(
true);
70 tableView->verticalHeader()->setVisible(
false);
72 verticalLayout->addWidget(tableView);
74 horizontalLayout =
new QHBoxLayout();
75 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
76 newAddress =
new QPushButton(AddressBookPage);
77 newAddress->setObjectName(QStringLiteral(
"newAddress"));
79 icon.addFile(QStringLiteral(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
80 newAddress->setIcon(icon);
81 newAddress->setAutoDefault(
false);
83 horizontalLayout->addWidget(newAddress);
85 copyAddress =
new QPushButton(AddressBookPage);
86 copyAddress->setObjectName(QStringLiteral(
"copyAddress"));
88 icon1.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
89 copyAddress->setIcon(icon1);
90 copyAddress->setAutoDefault(
false);
92 horizontalLayout->addWidget(copyAddress);
94 deleteAddress =
new QPushButton(AddressBookPage);
95 deleteAddress->setObjectName(QStringLiteral(
"deleteAddress"));
97 icon2.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
98 deleteAddress->setIcon(icon2);
99 deleteAddress->setAutoDefault(
false);
101 horizontalLayout->addWidget(deleteAddress);
103 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
105 horizontalLayout->addItem(horizontalSpacer);
107 exportButton =
new QPushButton(AddressBookPage);
108 exportButton->setObjectName(QStringLiteral(
"exportButton"));
110 icon3.addFile(QStringLiteral(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
111 exportButton->setIcon(icon3);
112 exportButton->setAutoDefault(
false);
114 horizontalLayout->addWidget(exportButton);
116 closeButton =
new QPushButton(AddressBookPage);
117 closeButton->setObjectName(QStringLiteral(
"closeButton"));
118 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
119 sizePolicy.setHorizontalStretch(0);
120 sizePolicy.setVerticalStretch(0);
121 sizePolicy.setHeightForWidth(closeButton->sizePolicy().hasHeightForWidth());
122 closeButton->setSizePolicy(sizePolicy);
123 closeButton->setAutoDefault(
false);
125 horizontalLayout->addWidget(closeButton);
128 verticalLayout->addLayout(horizontalLayout);
133 QMetaObject::connectSlotsByName(AddressBookPage);
138 searchLineEdit->setPlaceholderText(QApplication::translate(
"AddressBookPage",
"Enter address or label to search", 0));
139 #ifndef QT_NO_TOOLTIP 140 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Right-click to edit address or label", 0));
141 #endif // QT_NO_TOOLTIP 142 #ifndef QT_NO_TOOLTIP 143 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", 0));
144 #endif // QT_NO_TOOLTIP 145 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", 0));
146 #ifndef QT_NO_TOOLTIP 147 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", 0));
148 #endif // QT_NO_TOOLTIP 149 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", 0));
150 #ifndef QT_NO_TOOLTIP 151 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", 0));
152 #endif // QT_NO_TOOLTIP 153 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", 0));
154 #ifndef QT_NO_TOOLTIP 155 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", 0));
156 #endif // QT_NO_TOOLTIP 157 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", 0));
158 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", 0));
159 Q_UNUSED(AddressBookPage);
170 #endif // UI_ADDRESSBOOKPAGE_H
void retranslateUi(QWidget *AddressBookPage)
QPushButton * copyAddress
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
QPushButton * closeButton
QLineEdit * searchLineEdit
void setupUi(QWidget *AddressBookPage)
QPushButton * deleteAddress
Widget that shows a list of sending or receiving addresses.
QPushButton * exportButton
QLabel * labelExplanation