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

kanagram

  • sources
  • kde-4.12
  • kdeedu
  • kanagram
  • src
  • plasma-active
  • src
kdeclarativemainwindow.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * Copyright 2011 Sebastian Kügler <sebas@kde.org> *
4  * Copyright 2011 Marco Martin <mart@kde.org> *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
20  ***************************************************************************/
21 
22 
23 #ifndef KDECLARATIVEMAINWINDOW_H
24 #define KDECLARATIVEMAINWINDOW_H
25 
26 #include <KMainWindow>
27 
28 
29 class KDeclarativeView;
30 
31 class KDeclarativeMainWindowPrivate;
32 
33 class KDeclarativeMainWindow : public KMainWindow
34 {
35  Q_OBJECT
39  Q_PROPERTY(QStringList startupArguments READ startupArguments CONSTANT)
43  Q_PROPERTY(QString caption READ caption WRITE setCaption NOTIFY captionChanged)
44 
45 public:
46  KDeclarativeMainWindow();
47  ~KDeclarativeMainWindow();
48 
55  KConfigGroup config(const QString &group = "Default");
56 
63  KDeclarativeView *declarativeView() const;
64 
65  //propertyies & methods for QML
66  QStringList startupArguments() const;
67 
68  QString caption() const;
69 
80  Q_INVOKABLE QString startupOption(const QString &option) const;
81 
82 public Q_SLOTS:
83  void setCaption(const QString &caption);
84  //FIXME: this exists only to not hide the superclass method
85  void setCaption(const QString &caption, bool modified);
86 
87 Q_SIGNALS:
88  void captionChanged();
89 
90 private:
91  KDeclarativeMainWindowPrivate * const d;
92  Q_PRIVATE_SLOT(d, void statusChanged(QDeclarativeView::Status))
93 };
94 
95 #endif // KDECLARATIVEMAINWINDOW_H
KDeclarativeView
Definition: kdeclarativeview.h:35
KDeclarativeMainWindow::caption
QString caption() const
QDeclarativeView
KDeclarativeMainWindow::captionChanged
void captionChanged()
KDeclarativeMainWindow::config
KConfigGroup config(const QString &group="Default")
The main kconfiggroup to be used for this application The configuration file name is derived from the...
Definition: kdeclarativemainwindow.cpp:108
KDeclarativeMainWindow::setCaption
void setCaption(const QString &caption)
Definition: kdeclarativemainwindow.cpp:128
KDeclarativeMainWindow::startupOption
Q_INVOKABLE QString startupOption(const QString &option) const
Read out a string option.
Definition: kdeclarativemainwindow.cpp:118
KMainWindow
KDeclarativeMainWindow::declarativeView
KDeclarativeView * declarativeView() const
Definition: kdeclarativemainwindow.cpp:103
KDeclarativeMainWindow::startupArguments
QStringList startupArguments() const
KDeclarativeMainWindow
Definition: kdeclarativemainwindow.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kanagram

Skip menu "kanagram"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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