umbrello/umbrello
generaloptionpage.cpp
Go to the documentation of this file.
43 m_GeneralWidgets.miscGB = new QGroupBox(i18nc("miscellaneous group box", "Miscellaneous"), parent);
53 m_GeneralWidgets.tabdiagramsCB = new QCheckBox(i18n("Use tabbed diagrams"), m_GeneralWidgets.miscGB);
57 m_GeneralWidgets.newcodegenCB = new QCheckBox(i18n("Use new C++/Java/Ruby generators"), m_GeneralWidgets.miscGB);
61 m_GeneralWidgets.angularLinesCB = new QCheckBox(i18n("Use angular association lines"), m_GeneralWidgets.miscGB);
65 m_GeneralWidgets.footerPrintingCB = new QCheckBox(i18n("Turn on footer and page numbers when printing"), m_GeneralWidgets.miscGB);
76 m_GeneralWidgets.autosaveCB = new QCheckBox(i18n("E&nable autosave"), m_GeneralWidgets.autosaveGB);
80 m_GeneralWidgets.autosaveL = new QLabel(i18n("Select auto-save time interval (mins):"), m_GeneralWidgets.autosaveGB);
83 m_GeneralWidgets.timeISB = new KIntSpinBox(1, 600, 1, optionState.generalState.autosavetime, m_GeneralWidgets.autosaveGB);
91 QString autoSaveSuffixToolTip = i18n("<qt><p>The autosave file will be saved to ~/autosave.xmi if the autosaving occurs "
93 "<p>If you have already saved it, the autosave file will be saved in the same folder as the file "
107 m_GeneralWidgets.loadlastCB = new QCheckBox(i18n("&Load last project"), m_GeneralWidgets.startupGB);
111 m_GeneralWidgets.startL = new QLabel(i18n("Start new project with:"), m_GeneralWidgets.startupGB);
129 m_GeneralWidgets.defaultLanguageL = new QLabel(i18n("Default Language :"), m_GeneralWidgets.startupGB);
138 QString language = Uml::ProgrammingLanguage::toString(Uml::ProgrammingLanguage::fromInt(indexCounter));
182 optionState.generalState.diagram = Uml::DiagramType::fromInt(m_GeneralWidgets.diagramKB->currentIndex() + 1);
183 optionState.generalState.defaultLanguage = Uml::ProgrammingLanguage::fromInt(m_GeneralWidgets.languageKB->currentIndex());
QString toString(Enum item)
Convert DiagramType item into QString representation.
Definition: basictypes.cpp:158
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
Uml::ProgrammingLanguage::Enum defaultLanguage
Definition: optionstate.h:46
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:55
Definition: basictypes.h:250
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:57
void apply()
Reads the set values from their corresponding widgets, writes them back to the data structure...
Definition: generaloptionpage.cpp:169
void setSpacing(int spacing)
Definition: optionstate.h:142
QCheckBox * loadlastCB
Definition: generaloptionpage.h:60
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:64
QString toString(Enum item)
Return string corresponding to the given ProgrammingLanguage.
Definition: basictypes.cpp:807
KComboBox * languageKB
Definition: generaloptionpage.h:51
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:54
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:45
void setMargin(int margin)
void setChecked(bool)
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:65
Enum fromInt(int item)
Convert an integer item into DiagramType representation.
Definition: basictypes.cpp:253
QCheckBox * autosaveCB
Definition: generaloptionpage.h:59
QFontMetrics fontMetrics() const
QLabel * defaultLanguageL
Definition: generaloptionpage.h:70
QGroupBox * autosaveGB
Definition: generaloptionpage.h:46
void applyClicked()
void insertDiagram(const QString &type, int index)
Inserts type into the type-combobox as well as its completion object.
Definition: generaloptionpage.cpp:190
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
void setToolTip(const QString &)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QCheckBox * angularLinesCB
Definition: generaloptionpage.h:56
Enum fromInt(int item)
Convert a integer item into ProgrammingLanguage representation.
Definition: basictypes.cpp:909
int height() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.