9 #ifndef UI_CONTRACTBOOKPAGE_H 10 #define UI_CONTRACTBOOKPAGE_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 (ContractBookPage->objectName().isEmpty())
46 ContractBookPage->setObjectName(QStringLiteral(
"ContractBookPage"));
47 ContractBookPage->resize(760, 380);
48 verticalLayout =
new QVBoxLayout(ContractBookPage);
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(ContractBookPage);
57 labelExplanation->setObjectName(QStringLiteral(
"labelExplanation"));
59 verticalLayout_2->addWidget(labelExplanation);
61 tableView =
new QTableView(ContractBookPage);
62 tableView->setObjectName(QStringLiteral(
"tableView"));
63 tableView->setContextMenuPolicy(Qt::CustomContextMenu);
64 tableView->setTabKeyNavigation(
false);
65 tableView->setAlternatingRowColors(
true);
66 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
67 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
68 tableView->setSortingEnabled(
true);
69 tableView->verticalHeader()->setVisible(
false);
71 verticalLayout_2->addWidget(tableView);
74 verticalLayout->addLayout(verticalLayout_2);
76 buttonsContainerWhite =
new QWidget(ContractBookPage);
77 buttonsContainerWhite->setObjectName(QStringLiteral(
"buttonsContainerWhite"));
78 horizontalLayout_2 =
new QHBoxLayout(buttonsContainerWhite);
79 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
80 horizontalLayout_2->setContentsMargins(30, 25, 30, 15);
81 newContractInfo =
new QPushButton(buttonsContainerWhite);
82 newContractInfo->setObjectName(QStringLiteral(
"newContractInfo"));
84 horizontalLayout_2->addWidget(newContractInfo);
86 copyAddress =
new QPushButton(buttonsContainerWhite);
87 copyAddress->setObjectName(QStringLiteral(
"copyAddress"));
89 horizontalLayout_2->addWidget(copyAddress);
91 deleteContractInfo =
new QPushButton(buttonsContainerWhite);
92 deleteContractInfo->setObjectName(QStringLiteral(
"deleteContractInfo"));
94 horizontalLayout_2->addWidget(deleteContractInfo);
96 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
98 horizontalLayout_2->addItem(horizontalSpacer);
100 exportButton =
new QPushButton(buttonsContainerWhite);
101 exportButton->setObjectName(QStringLiteral(
"exportButton"));
103 horizontalLayout_2->addWidget(exportButton);
105 chooseContractInfo =
new QPushButton(buttonsContainerWhite);
106 chooseContractInfo->setObjectName(QStringLiteral(
"chooseContractInfo"));
108 horizontalLayout_2->addWidget(chooseContractInfo);
111 verticalLayout->addWidget(buttonsContainerWhite);
116 QMetaObject::connectSlotsByName(ContractBookPage);
121 ContractBookPage->setWindowTitle(QApplication::translate(
"ContractBookPage",
"Form", 0));
122 labelExplanation->setText(QString());
123 #ifndef QT_NO_TOOLTIP 124 newContractInfo->setToolTip(QApplication::translate(
"ContractBookPage",
"Create a new contract info", 0));
125 #endif // QT_NO_TOOLTIP 126 newContractInfo->setText(QApplication::translate(
"ContractBookPage",
"New", 0));
127 #ifndef QT_NO_TOOLTIP 128 copyAddress->setToolTip(QApplication::translate(
"ContractBookPage",
"Copy the currently selected contract address to the system clipboard", 0));
129 #endif // QT_NO_TOOLTIP 130 copyAddress->setText(QApplication::translate(
"ContractBookPage",
"Copy", 0));
131 #ifndef QT_NO_TOOLTIP 132 deleteContractInfo->setToolTip(QApplication::translate(
"ContractBookPage",
"Delete the currently selected contract info from the list", 0));
133 #endif // QT_NO_TOOLTIP 134 deleteContractInfo->setText(QApplication::translate(
"ContractBookPage",
"Delete", 0));
135 #ifndef QT_NO_TOOLTIP 136 exportButton->setToolTip(QApplication::translate(
"ContractBookPage",
"Export the data to a file", 0));
137 #endif // QT_NO_TOOLTIP 138 exportButton->setText(QApplication::translate(
"ContractBookPage",
"Export", 0));
139 chooseContractInfo->setText(QApplication::translate(
"ContractBookPage",
"Choose", 0));
150 #endif // UI_CONTRACTBOOKPAGE_H QPushButton * exportButton
QVBoxLayout * verticalLayout_2
QPushButton * deleteContractInfo
QLabel * labelExplanation
QWidget * buttonsContainerWhite
QPushButton * newContractInfo
QPushButton * copyAddress
QPushButton * chooseContractInfo
void retranslateUi(QWidget *ContractBookPage)
QSpacerItem * horizontalSpacer
void setupUi(QWidget *ContractBookPage)
QVBoxLayout * verticalLayout
QHBoxLayout * horizontalLayout_2