9 #ifndef UI_I2PSHOWADDRESSES_H
10 #define UI_I2PSHOWADDRESSES_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QHeaderView>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QLineEdit>
21 #include <QtWidgets/QPlainTextEdit>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QTextEdit>
24 #include <QtWidgets/QVBoxLayout>
46 if (ShowI2PAddresses->objectName().isEmpty())
47 ShowI2PAddresses->setObjectName(QStringLiteral(
"ShowI2PAddresses"));
48 ShowI2PAddresses->resize(640, 450);
49 ShowI2PAddresses->setMinimumSize(QSize(640, 450));
50 verticalLayout =
new QVBoxLayout(ShowI2PAddresses);
51 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
52 label =
new QLabel(ShowI2PAddresses);
53 label->setObjectName(QStringLiteral(
"label"));
54 label->setWordWrap(
true);
56 verticalLayout->addWidget(label);
58 label_3 =
new QLabel(ShowI2PAddresses);
59 label_3->setObjectName(QStringLiteral(
"label_3"));
60 label_3->setWordWrap(
true);
62 verticalLayout->addWidget(label_3);
64 privText =
new QTextEdit(ShowI2PAddresses);
65 privText->setObjectName(QStringLiteral(
"privText"));
66 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
67 sizePolicy.setHorizontalStretch(0);
68 sizePolicy.setVerticalStretch(3);
69 sizePolicy.setHeightForWidth(privText->sizePolicy().hasHeightForWidth());
70 privText->setSizePolicy(sizePolicy);
71 privText->setReadOnly(
true);
73 verticalLayout->addWidget(privText);
75 label_4 =
new QLabel(ShowI2PAddresses);
76 label_4->setObjectName(QStringLiteral(
"label_4"));
78 verticalLayout->addWidget(label_4);
80 pubText =
new QPlainTextEdit(ShowI2PAddresses);
81 pubText->setObjectName(QStringLiteral(
"pubText"));
82 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding);
83 sizePolicy1.setHorizontalStretch(0);
84 sizePolicy1.setVerticalStretch(2);
85 sizePolicy1.setHeightForWidth(pubText->sizePolicy().hasHeightForWidth());
86 pubText->setSizePolicy(sizePolicy1);
87 pubText->setReadOnly(
true);
89 verticalLayout->addWidget(pubText);
91 label_5 =
new QLabel(ShowI2PAddresses);
92 label_5->setObjectName(QStringLiteral(
"label_5"));
94 verticalLayout->addWidget(label_5);
96 b32Line =
new QLineEdit(ShowI2PAddresses);
97 b32Line->setObjectName(QStringLiteral(
"b32Line"));
98 b32Line->setMouseTracking(
false);
99 b32Line->setAcceptDrops(
false);
100 b32Line->setReadOnly(
true);
102 verticalLayout->addWidget(b32Line);
104 horizontalLayout =
new QHBoxLayout();
105 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
106 privButton =
new QPushButton(ShowI2PAddresses);
107 privButton->setObjectName(QStringLiteral(
"privButton"));
109 horizontalLayout->addWidget(privButton);
111 pubButton =
new QPushButton(ShowI2PAddresses);
112 pubButton->setObjectName(QStringLiteral(
"pubButton"));
114 horizontalLayout->addWidget(pubButton);
116 b32Button =
new QPushButton(ShowI2PAddresses);
117 b32Button->setObjectName(QStringLiteral(
"b32Button"));
119 horizontalLayout->addWidget(b32Button);
122 verticalLayout->addLayout(horizontalLayout);
124 QWidget::setTabOrder(privText, pubText);
125 QWidget::setTabOrder(pubText, b32Line);
126 QWidget::setTabOrder(b32Line, privButton);
127 QWidget::setTabOrder(privButton, pubButton);
128 QWidget::setTabOrder(pubButton, b32Button);
132 QMetaObject::connectSlotsByName(ShowI2PAddresses);
137 ShowI2PAddresses->setWindowTitle(QApplication::translate(
"ShowI2PAddresses",
"Dialog", 0));
138 label->setText(QApplication::translate(
"ShowI2PAddresses",
"If you want to use a permanent I2P-address you have to set a 'mydestination' option in the configuration file:", 0));
139 label_3->setText(QApplication::translate(
"ShowI2PAddresses",
"Ready to save parameter (If you want to use this address save this text in the configuration file and keep it secret):", 0));
140 label_4->setText(QApplication::translate(
"ShowI2PAddresses",
"Address (you can publish it):", 0));
141 label_5->setText(QApplication::translate(
"ShowI2PAddresses",
"Short base32-address:", 0));
142 privButton->setText(QApplication::translate(
"ShowI2PAddresses",
"Copy \"mydestination\" parameter\n"
143 "to the clipboard", 0));
144 pubButton->setText(QApplication::translate(
"ShowI2PAddresses",
"Copy public address\n"
145 "to the clipboard", 0));
146 b32Button->setText(QApplication::translate(
"ShowI2PAddresses",
"Copy b32-address\n"
147 "to the clipboard", 0));
158 #endif // UI_I2PSHOWADDRESSES_H
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
void setupUi(QDialog *ShowI2PAddresses)
void retranslateUi(QDialog *ShowI2PAddresses)