9 #ifndef UI_INSERTLINK_H 10 #define UI_INSERTLINK_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 19 #include <QtWidgets/QGridLayout> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QVBoxLayout> 45 if (insertLinkDialog->objectName().isEmpty())
46 insertLinkDialog->setObjectName(QStringLiteral(
"insertLinkDialog"));
47 insertLinkDialog->resize(800, 165);
48 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
49 sizePolicy.setHorizontalStretch(0);
50 sizePolicy.setVerticalStretch(0);
51 sizePolicy.setHeightForWidth(insertLinkDialog->sizePolicy().hasHeightForWidth());
52 insertLinkDialog->setSizePolicy(sizePolicy);
53 insertLinkDialog->setMinimumSize(QSize(0, 0));
54 insertLinkDialog->setSizeGripEnabled(
true);
55 gridLayout =
new QGridLayout(insertLinkDialog);
56 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
57 verticalLayout =
new QVBoxLayout();
58 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
59 urlLayout =
new QHBoxLayout();
60 urlLayout->setObjectName(QStringLiteral(
"urlLayout"));
61 urlLabel =
new QLabel(insertLinkDialog);
62 urlLabel->setObjectName(QStringLiteral(
"urlLabel"));
64 urlLayout->addWidget(urlLabel);
66 schemeComboxBox =
new QComboBox(insertLinkDialog);
67 schemeComboxBox->insertItems(0, QStringList()
68 << QStringLiteral(
"caprofile")
69 << QStringLiteral(
"caad")
70 << QStringLiteral(
"cacomment")
71 << QStringLiteral(
"cablob")
72 << QStringLiteral(
"http")
73 << QStringLiteral(
"ftp")
75 schemeComboxBox->setObjectName(QStringLiteral(
"schemeComboxBox"));
76 schemeComboxBox->setEditable(
true);
78 urlLayout->addWidget(schemeComboxBox);
80 separatorCharsLabel =
new QLabel(insertLinkDialog);
81 separatorCharsLabel->setObjectName(QStringLiteral(
"separatorCharsLabel"));
83 separatorCharsLabel->setToolTip(QStringLiteral(
""));
84 #endif // QT_NO_TOOLTIP 85 #ifndef QT_NO_STATUSTIP 86 separatorCharsLabel->setStatusTip(QStringLiteral(
""));
87 #endif // QT_NO_STATUSTIP 88 #ifndef QT_NO_WHATSTHIS 89 separatorCharsLabel->setWhatsThis(QStringLiteral(
""));
90 #endif // QT_NO_WHATSTHIS 91 #ifndef QT_NO_ACCESSIBILITY 92 separatorCharsLabel->setAccessibleName(QStringLiteral(
""));
93 #endif // QT_NO_ACCESSIBILITY 94 #ifndef QT_NO_ACCESSIBILITY 95 separatorCharsLabel->setAccessibleDescription(QStringLiteral(
""));
96 #endif // QT_NO_ACCESSIBILITY 97 separatorCharsLabel->setText(QStringLiteral(
"://"));
99 urlLayout->addWidget(separatorCharsLabel);
101 urlEdit =
new QLineEdit(insertLinkDialog);
102 urlEdit->setObjectName(QStringLiteral(
"urlEdit"));
104 urlLayout->addWidget(urlEdit);
107 verticalLayout->addLayout(urlLayout);
109 linkEditLayout =
new QHBoxLayout();
110 linkEditLayout->setObjectName(QStringLiteral(
"linkEditLayout"));
111 displayNameLabel =
new QLabel(insertLinkDialog);
112 displayNameLabel->setObjectName(QStringLiteral(
"displayNameLabel"));
114 linkEditLayout->addWidget(displayNameLabel);
116 linkLabelEdit =
new QLineEdit(insertLinkDialog);
117 linkLabelEdit->setObjectName(QStringLiteral(
"linkLabelEdit"));
119 linkEditLayout->addWidget(linkLabelEdit);
122 verticalLayout->addLayout(linkEditLayout);
124 bottomButtonsBox =
new QDialogButtonBox(insertLinkDialog);
125 bottomButtonsBox->setObjectName(QStringLiteral(
"bottomButtonsBox"));
126 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
127 sizePolicy1.setHorizontalStretch(0);
128 sizePolicy1.setVerticalStretch(0);
129 sizePolicy1.setHeightForWidth(bottomButtonsBox->sizePolicy().hasHeightForWidth());
130 bottomButtonsBox->setSizePolicy(sizePolicy1);
131 bottomButtonsBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
133 verticalLayout->addWidget(bottomButtonsBox);
136 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
140 QObject::connect(bottomButtonsBox, SIGNAL(rejected()), insertLinkDialog, SLOT(reject()));
142 QMetaObject::connectSlotsByName(insertLinkDialog);
147 insertLinkDialog->setWindowTitle(QApplication::translate(
"insertLinkDialog",
"Insert link", Q_NULLPTR));
148 urlLabel->setText(QApplication::translate(
"insertLinkDialog",
"URL", Q_NULLPTR));
149 displayNameLabel->setText(QApplication::translate(
"insertLinkDialog",
"Link label in text", Q_NULLPTR));
160 #endif // UI_INSERTLINK_H QVBoxLayout * verticalLayout
Definition: ui_insertLink.h:32
Definition: ui_aboutDialog.h:161
QComboBox * schemeComboxBox
Definition: ui_insertLink.h:35
QLabel * separatorCharsLabel
Definition: ui_insertLink.h:36
QDialogButtonBox * bottomButtonsBox
Definition: ui_insertLink.h:41
void retranslateUi(QDialog *insertLinkDialog)
Definition: ui_insertLink.h:145
QLabel * urlLabel
Definition: ui_insertLink.h:34
QLineEdit * linkLabelEdit
Definition: ui_insertLink.h:40
Definition: ui_insertLink.h:155
QLabel * displayNameLabel
Definition: ui_insertLink.h:39
QHBoxLayout * linkEditLayout
Definition: ui_insertLink.h:38
void setupUi(QDialog *insertLinkDialog)
Definition: ui_insertLink.h:43
QHBoxLayout * urlLayout
Definition: ui_insertLink.h:33
Definition: ui_insertLink.h:28
QGridLayout * gridLayout
Definition: ui_insertLink.h:31
QLineEdit * urlEdit
Definition: ui_insertLink.h:37