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
Uml::ProgrammingLanguage::Enum defaultLanguage
Definition: optionstate.h:46
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:56
Definition: basictypes.h:244
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:58
void apply()
Reads the set values from their corresponding widgets, writes them back to the data structure...
Definition: generaloptionpage.cpp:169
Definition: optionstate.h:141
QCheckBox * loadlastCB
Definition: generaloptionpage.h:61
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:65
QString toString(Enum item)
Return string corresponding to the given ProgrammingLanguage.
Definition: basictypes.cpp:801
KComboBox * languageKB
Definition: generaloptionpage.h:52
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:55
KLineEdit * makeLabeledEditField(QGroupBox *containingBox, QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:43
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:66
Enum fromInt(int item)
Convert an integer item into DiagramType representation.
Definition: basictypes.cpp:253
QCheckBox * autosaveCB
Definition: generaloptionpage.h:60
QLabel * defaultLanguageL
Definition: generaloptionpage.h:71
QGroupBox * autosaveGB
Definition: generaloptionpage.h:47
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
QCheckBox * angularLinesCB
Definition: generaloptionpage.h:57
Enum fromInt(int item)
Convert a integer item into ProgrammingLanguage representation.
Definition: basictypes.cpp:903
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.