• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • dialogs
generaloptionpage.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef GENERALOPTIONPAGE_H
12 #define GENERALOPTIONPAGE_H
13 
14 #include <QWidget>
15 
16 class KIntSpinBox;
17 class KLineEdit;
18 class KComboBox;
19 class QGroupBox;
20 class QCheckBox;
21 class QLabel;
22 class QGridLayout;
23 
31 class GeneralOptionPage : public QWidget
32 {
33  Q_OBJECT
34 public:
35  explicit GeneralOptionPage(QWidget* parent);
36  virtual ~GeneralOptionPage();
37 
38  void setDefaults();
39  void apply();
40 
41 signals:
42  void applyClicked();
43 
44 protected:
45  struct GeneralWidgets {
46  QGroupBox * miscGB;
47  QGroupBox * autosaveGB;
48  QGroupBox * startupGB;
49 
50  KIntSpinBox * timeISB;
51  KComboBox * diagramKB;
52  KComboBox * languageKB;
53 
54  QCheckBox * undoCB;
55  QCheckBox * tabdiagramsCB;
56  QCheckBox * newcodegenCB;
57  QCheckBox * angularLinesCB;
58  QCheckBox * footerPrintingCB;
59 
60  QCheckBox * autosaveCB;
61  QCheckBox * loadlastCB;
62 
63  // Allow definition of Suffix for autosave
64  // (Default: ".xmi"), private Ui::GeneralOptionPage
65  KLineEdit * autosaveSuffixT;
66  QLabel * autosaveSuffixL;
67  // End AutoSave Suffix
68 
69  QLabel * startL;
70  QLabel * autosaveL;
71  QLabel * defaultLanguageL;
72  } m_GeneralWidgets;
73 
74  void insertDiagram(const QString& type, int index);
75 
76 protected slots:
77  void slotAutosaveCBClicked();
78 
79 };
80 #endif
GeneralOptionPage::GeneralWidgets::autosaveL
QLabel * autosaveL
Definition: generaloptionpage.h:70
GeneralOptionPage::GeneralWidgets::miscGB
QGroupBox * miscGB
Definition: generaloptionpage.h:46
GeneralOptionPage::GeneralOptionPage
GeneralOptionPage(QWidget *parent)
Constructor.
Definition: generaloptionpage.cpp:37
GeneralOptionPage::GeneralWidgets::undoCB
QCheckBox * undoCB
Definition: generaloptionpage.h:54
GeneralOptionPage::GeneralWidgets::newcodegenCB
QCheckBox * newcodegenCB
Definition: generaloptionpage.h:56
GeneralOptionPage::GeneralWidgets::startL
QLabel * startL
Definition: generaloptionpage.h:69
QWidget
GeneralOptionPage::GeneralWidgets
Definition: generaloptionpage.h:45
GeneralOptionPage::GeneralWidgets::footerPrintingCB
QCheckBox * footerPrintingCB
Definition: generaloptionpage.h:58
GeneralOptionPage::apply
void apply()
Reads the set values from their corresponding widgets, writes them back to the data structure...
Definition: generaloptionpage.cpp:169
GeneralOptionPage::GeneralWidgets::loadlastCB
QCheckBox * loadlastCB
Definition: generaloptionpage.h:61
GeneralOptionPage::GeneralWidgets::autosaveSuffixT
KLineEdit * autosaveSuffixT
Definition: generaloptionpage.h:65
GeneralOptionPage::GeneralWidgets::languageKB
KComboBox * languageKB
Definition: generaloptionpage.h:52
GeneralOptionPage::GeneralWidgets::tabdiagramsCB
QCheckBox * tabdiagramsCB
Definition: generaloptionpage.h:55
GeneralOptionPage::setDefaults
void setDefaults()
Sets default values.
Definition: generaloptionpage.cpp:155
GeneralOptionPage::GeneralWidgets::diagramKB
KComboBox * diagramKB
Definition: generaloptionpage.h:51
GeneralOptionPage::GeneralWidgets::autosaveSuffixL
QLabel * autosaveSuffixL
Definition: generaloptionpage.h:66
GeneralOptionPage::GeneralWidgets::autosaveCB
QCheckBox * autosaveCB
Definition: generaloptionpage.h:60
GeneralOptionPage::GeneralWidgets::startupGB
QGroupBox * startupGB
Definition: generaloptionpage.h:48
GeneralOptionPage::GeneralWidgets::defaultLanguageL
QLabel * defaultLanguageL
Definition: generaloptionpage.h:71
GeneralOptionPage::GeneralWidgets::autosaveGB
QGroupBox * autosaveGB
Definition: generaloptionpage.h:47
GeneralOptionPage::applyClicked
void applyClicked()
GeneralOptionPage::insertDiagram
void insertDiagram(const QString &type, int index)
Inserts type into the type-combobox as well as its completion object.
Definition: generaloptionpage.cpp:190
GeneralOptionPage::slotAutosaveCBClicked
void slotAutosaveCBClicked()
Slot for clicked event.
Definition: generaloptionpage.cpp:199
GeneralOptionPage::m_GeneralWidgets
struct GeneralOptionPage::GeneralWidgets m_GeneralWidgets
GeneralOptionPage::~GeneralOptionPage
virtual ~GeneralOptionPage()
Destructor.
Definition: generaloptionpage.cpp:148
GeneralOptionPage
A dialog page to display auto layouts options.
Definition: generaloptionpage.h:31
GeneralOptionPage::GeneralWidgets::timeISB
KIntSpinBox * timeISB
Definition: generaloptionpage.h:50
GeneralOptionPage::GeneralWidgets::angularLinesCB
QCheckBox * angularLinesCB
Definition: generaloptionpage.h:57
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

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal