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> 45 if (AddressBookPage->objectName().isEmpty())
46 AddressBookPage->setObjectName(QStringLiteral(
"AddressBookPage"));
47 AddressBookPage->resize(700, 450);
48 verticalLayout =
new QVBoxLayout(AddressBookPage);
49 verticalLayout->setSpacing(0);
50 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
51 verticalLayout->setContentsMargins(0, 0, 0, 0);
52 verticalLayout_2 =
new QVBoxLayout();
53 verticalLayout_2->setSpacing(15);
54 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
55 verticalLayout_2->setContentsMargins(30, 20, 30, 20);
56 labelExplanation =
new QLabel(AddressBookPage);
57 labelExplanation->setObjectName(QStringLiteral(
"labelExplanation"));
58 labelExplanation->setTextFormat(Qt::PlainText);
59 labelExplanation->setWordWrap(
true);
61 verticalLayout_2->addWidget(labelExplanation);
63 tableView =
new QTableView(AddressBookPage);
64 tableView->setObjectName(QStringLiteral(
"tableView"));
65 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
66 tableView->setTabKeyNavigation(
false);
67 tableView->setAlternatingRowColors(
true);
68 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
69 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
70 tableView->setSortingEnabled(
true);
71 tableView->verticalHeader()->setVisible(
false);
73 verticalLayout_2->addWidget(tableView);
76 verticalLayout->addLayout(verticalLayout_2);
78 buttonsContainerWhite =
new QWidget(AddressBookPage);
79 buttonsContainerWhite->setObjectName(QStringLiteral(
"buttonsContainerWhite"));
80 horizontalLayout_2 =
new QHBoxLayout(buttonsContainerWhite);
81 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
82 horizontalLayout_2->setContentsMargins(30, 25, 30, 15);
83 newAddress =
new QPushButton(buttonsContainerWhite);
84 newAddress->setObjectName(QStringLiteral(
"newAddress"));
86 icon.addFile(QStringLiteral(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
87 newAddress->setIcon(icon);
88 newAddress->setAutoDefault(
false);
90 horizontalLayout_2->addWidget(newAddress);
92 copyAddress =
new QPushButton(buttonsContainerWhite);
93 copyAddress->setObjectName(QStringLiteral(
"copyAddress"));
95 icon1.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
96 copyAddress->setIcon(icon1);
97 copyAddress->setAutoDefault(
false);
99 horizontalLayout_2->addWidget(copyAddress);
101 deleteAddress =
new QPushButton(buttonsContainerWhite);
102 deleteAddress->setObjectName(QStringLiteral(
"deleteAddress"));
104 icon2.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
105 deleteAddress->setIcon(icon2);
106 deleteAddress->setAutoDefault(
false);
108 horizontalLayout_2->addWidget(deleteAddress);
110 horizontalSpacer =
new QSpacerItem(465, 21, QSizePolicy::Expanding, QSizePolicy::Minimum);
112 horizontalLayout_2->addItem(horizontalSpacer);
114 exportButton =
new QPushButton(buttonsContainerWhite);
115 exportButton->setObjectName(QStringLiteral(
"exportButton"));
117 icon3.addFile(QStringLiteral(
":/icons/export"), QSize(), QIcon::Normal, QIcon::Off);
118 exportButton->setIcon(icon3);
119 exportButton->setAutoDefault(
false);
121 horizontalLayout_2->addWidget(exportButton);
123 closeButton =
new QPushButton(buttonsContainerWhite);
124 closeButton->setObjectName(QStringLiteral(
"closeButton"));
125 closeButton->setAutoDefault(
false);
127 horizontalLayout_2->addWidget(closeButton);
130 verticalLayout->addWidget(buttonsContainerWhite);
135 QMetaObject::connectSlotsByName(AddressBookPage);
140 #ifndef QT_NO_TOOLTIP 141 tableView->setToolTip(QApplication::translate(
"AddressBookPage",
"Right-click to edit address or label", 0));
142 #endif // QT_NO_TOOLTIP 143 #ifndef QT_NO_TOOLTIP 144 newAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Create a new address", 0));
145 #endif // QT_NO_TOOLTIP 146 newAddress->setText(QApplication::translate(
"AddressBookPage",
"&New", 0));
147 #ifndef QT_NO_TOOLTIP 148 copyAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Copy the currently selected address to the system clipboard", 0));
149 #endif // QT_NO_TOOLTIP 150 copyAddress->setText(QApplication::translate(
"AddressBookPage",
"&Copy", 0));
151 #ifndef QT_NO_TOOLTIP 152 deleteAddress->setToolTip(QApplication::translate(
"AddressBookPage",
"Delete the currently selected address from the list", 0));
153 #endif // QT_NO_TOOLTIP 154 deleteAddress->setText(QApplication::translate(
"AddressBookPage",
"&Delete", 0));
155 #ifndef QT_NO_TOOLTIP 156 exportButton->setToolTip(QApplication::translate(
"AddressBookPage",
"Export the data in the current tab to a file", 0));
157 #endif // QT_NO_TOOLTIP 158 exportButton->setText(QApplication::translate(
"AddressBookPage",
"&Export", 0));
159 closeButton->setText(QApplication::translate(
"AddressBookPage",
"C&lose", 0));
160 Q_UNUSED(AddressBookPage);
171 #endif // UI_ADDRESSBOOKPAGE_H
void retranslateUi(QWidget *AddressBookPage)
QPushButton * copyAddress
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout_2
QVBoxLayout * verticalLayout
QPushButton * closeButton
void setupUi(QWidget *AddressBookPage)
QPushButton * deleteAddress
QWidget * buttonsContainerWhite
Widget that shows a list of sending or receiving addresses.
QPushButton * exportButton
QLabel * labelExplanation
QVBoxLayout * verticalLayout_2