1 #include <klocalizedstring.h> 11 #ifndef UI_AUTOLAYOUTOPTIONPAGE_H 12 #define UI_AUTOLAYOUTOPTIONPAGE_H 14 #include <QtCore/QVariant> 15 #include <QtWidgets/QApplication> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QGroupBox> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QSpacerItem> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 23 #include "kurlrequester.h" 44 if (AutoLayoutOptionPage->objectName().isEmpty())
45 AutoLayoutOptionPage->setObjectName(QString::fromUtf8(
"AutoLayoutOptionPage"));
46 AutoLayoutOptionPage->resize(539, 270);
47 vboxLayout =
new QVBoxLayout(AutoLayoutOptionPage);
48 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
49 groupBox =
new QGroupBox(AutoLayoutOptionPage);
50 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
51 gridLayout =
new QGridLayout(groupBox);
52 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
53 m_autoDotPath =
new QCheckBox(groupBox);
54 m_autoDotPath->setObjectName(QString::fromUtf8(
"m_autoDotPath"));
55 m_autoDotPath->setChecked(
true);
57 gridLayout->addWidget(m_autoDotPath, 0, 0, 1, 1);
59 label =
new QLabel(groupBox);
60 label->setObjectName(QString::fromUtf8(
"label"));
62 gridLayout->addWidget(label, 2, 0, 1, 1);
64 m_dotPath =
new KUrlRequester(groupBox);
65 m_dotPath->setObjectName(QString::fromUtf8(
"m_dotPath"));
66 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
67 sizePolicy.setHorizontalStretch(1);
68 sizePolicy.setVerticalStretch(0);
69 sizePolicy.setHeightForWidth(m_dotPath->sizePolicy().hasHeightForWidth());
70 m_dotPath->setSizePolicy(sizePolicy);
71 m_dotPath->setSizeIncrement(QSize(10, 0));
72 m_dotPath->setMode(KFile::Directory|KFile::ExistingOnly);
74 gridLayout->addWidget(m_dotPath, 3, 0, 1, 1);
76 verticalSpacer_2 =
new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
78 gridLayout->addItem(verticalSpacer_2, 1, 0, 1, 1);
81 vboxLayout->addWidget(groupBox);
83 Other =
new QGroupBox(AutoLayoutOptionPage);
84 Other->setObjectName(QString::fromUtf8(
"Other"));
85 gridLayout_2 =
new QGridLayout(Other);
86 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
87 m_showExportLayout =
new QCheckBox(Other);
88 m_showExportLayout->setObjectName(QString::fromUtf8(
"m_showExportLayout"));
90 gridLayout_2->addWidget(m_showExportLayout, 1, 0, 1, 1);
93 vboxLayout->addWidget(Other);
95 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
97 vboxLayout->addItem(verticalSpacer);
101 QObject::connect(m_autoDotPath, SIGNAL(toggled(
bool)), m_dotPath, SLOT(setDisabled(
bool)));
103 QMetaObject::connectSlotsByName(AutoLayoutOptionPage);
108 groupBox->setTitle(tr2i18n(
"Layout Generator",
nullptr));
109 #if QT_CONFIG(tooltip) 110 m_autoDotPath->setToolTip(tr2i18n(
"<p>The auto layout feature depends on layout generators provided by the GraphViz package, which is normally installed aside Umbrello by a package manager.</p>\n" 111 "<p>Umbrello has build in support for detecting the install location of these layout generators. For cases where this dependency is not available or do not fit, a different installation path could be provided.</p>",
nullptr));
112 #endif // QT_CONFIG(tooltip) 113 m_autoDotPath->setText(tr2i18n(
"Auto detect layout generator",
nullptr));
114 label->setText(tr2i18n(
"Generator executable path:",
nullptr));
115 Other->setTitle(tr2i18n(
"Miscellaneous",
nullptr));
116 #if QT_CONFIG(tooltip) 117 m_showExportLayout->setToolTip(tr2i18n(
"<p>Dot file export is performed by using the export layout.</p><p>With this option checked, the export layout is added to the list of available diagram layouts and enables a quick dot export preview.</p>",
nullptr));
118 #endif // QT_CONFIG(tooltip) 119 m_showExportLayout->setText(tr2i18n(
"Show export layout in diagram context menu",
nullptr));
120 (void)AutoLayoutOptionPage;
131 #endif // AUTOLAYOUTOPTIONPAGE_H void setupUi(QWidget *AutoLayoutOptionPage)
Definition: ui_autolayoutoptionpage.h:42
QCheckBox * m_autoDotPath
Definition: ui_autolayoutoptionpage.h:33
QGroupBox * groupBox
Definition: ui_autolayoutoptionpage.h:31
QSpacerItem * verticalSpacer_2
Definition: ui_autolayoutoptionpage.h:36
KUrlRequester * m_dotPath
Definition: ui_autolayoutoptionpage.h:35
QSpacerItem * verticalSpacer
Definition: ui_autolayoutoptionpage.h:40
QGroupBox * Other
Definition: ui_autolayoutoptionpage.h:37
Definition: ui_autolayoutoptionpage.h:125
QGridLayout * gridLayout
Definition: ui_autolayoutoptionpage.h:32
QCheckBox * m_showExportLayout
Definition: ui_autolayoutoptionpage.h:39
QLabel * label
Definition: ui_autolayoutoptionpage.h:34
Definition: ui_autolayoutoptionpage.h:27
Definition: ui_autolayoutoptionpage.h:126
connect()
Definition: namespaces-multiple.php:5
QGridLayout * gridLayout_2
Definition: ui_autolayoutoptionpage.h:38
QVBoxLayout * vboxLayout
Definition: ui_autolayoutoptionpage.h:30
void retranslateUi(QWidget *AutoLayoutOptionPage)
Definition: ui_autolayoutoptionpage.h:106
Definition: autolayoutoptionpage.h:24