~ubuntu-branches/ubuntu/quantal/kde-runtime/quantal

« back to all changes in this revision

Viewing changes to plasma/declarativeimports/plasmacomponents/fullscreensheet.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-06-03 21:50:00 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120603215000-vn7oarsq0ynrydj5
Tags: upstream-4.8.80
Import upstream version 4.8.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright 2012 Marco Martin <mart@kde.org>                            *
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 *                                                                         *
 
9
 *   This program is distributed in the hope that it will be useful,       *
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
12
 *   GNU General Public License for more details.                          *
 
13
 *                                                                         *
 
14
 *   You should have received a copy of the GNU General Public License     *
 
15
 *   along with this program; if not, write to the                         *
 
16
 *   Free Software Foundation, Inc.,                                       *
 
17
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
 
18
 ***************************************************************************/
 
19
#ifndef FULLSCREENSHEET_P
 
20
#define FULLSCREENSHEET_P
 
21
 
 
22
#include "fullscreenwindow.h"
 
23
 
 
24
class FullScreenSheet : public FullScreenWindow
 
25
{
 
26
    Q_OBJECT
 
27
    Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
 
28
 
 
29
    Q_PROPERTY(QDeclarativeItem *acceptButton READ acceptButton WRITE setAcceptButton NOTIFY acceptButtonChanged)
 
30
    Q_PROPERTY(QDeclarativeItem *rejectButton READ rejectButton WRITE setRejectButton NOTIFY rejectButtonChanged)
 
31
 
 
32
    Q_PROPERTY(QString acceptButtonText READ acceptButtonText WRITE setAcceptButtonText NOTIFY acceptButtonTextChanged)
 
33
    Q_PROPERTY(QString rejectButtonText READ rejectButtonText WRITE setRejectButtonText NOTIFY rejectButtonTextChanged)
 
34
 
 
35
public:
 
36
    FullScreenSheet(QDeclarativeItem *parent = 0);
 
37
    ~FullScreenSheet();
 
38
 
 
39
    QString title() const;
 
40
    void setTitle(const QString &text);
 
41
 
 
42
    QDeclarativeItem *acceptButton() const;
 
43
    void setAcceptButton(QDeclarativeItem *button);
 
44
 
 
45
    QDeclarativeItem *rejectButton() const;
 
46
    void setRejectButton(QDeclarativeItem *button);
 
47
 
 
48
    QString acceptButtonText() const;
 
49
    void setAcceptButtonText(const QString &text);
 
50
 
 
51
    QString rejectButtonText() const;
 
52
    void setRejectButtonText(const QString &text);
 
53
 
 
54
    Q_INVOKABLE void open();
 
55
 
 
56
Q_SIGNALS:
 
57
    void titleChanged();
 
58
    void acceptButtonChanged();
 
59
    void rejectButtonChanged();
 
60
    void acceptButtonTextChanged();
 
61
    void rejectButtonTextChanged();
 
62
};
 
63
 
 
64
#endif