1
/***************************************************************************
2
* Copyright 2012 Marco Martin <mart@kde.org> *
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. *
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. *
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
22
#include "fullscreenwindow.h"
24
class FullScreenSheet : public FullScreenWindow
27
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
29
Q_PROPERTY(QDeclarativeItem *acceptButton READ acceptButton WRITE setAcceptButton NOTIFY acceptButtonChanged)
30
Q_PROPERTY(QDeclarativeItem *rejectButton READ rejectButton WRITE setRejectButton NOTIFY rejectButtonChanged)
32
Q_PROPERTY(QString acceptButtonText READ acceptButtonText WRITE setAcceptButtonText NOTIFY acceptButtonTextChanged)
33
Q_PROPERTY(QString rejectButtonText READ rejectButtonText WRITE setRejectButtonText NOTIFY rejectButtonTextChanged)
36
FullScreenSheet(QDeclarativeItem *parent = 0);
39
QString title() const;
40
void setTitle(const QString &text);
42
QDeclarativeItem *acceptButton() const;
43
void setAcceptButton(QDeclarativeItem *button);
45
QDeclarativeItem *rejectButton() const;
46
void setRejectButton(QDeclarativeItem *button);
48
QString acceptButtonText() const;
49
void setAcceptButtonText(const QString &text);
51
QString rejectButtonText() const;
52
void setRejectButtonText(const QString &text);
54
Q_INVOKABLE void open();
58
void acceptButtonChanged();
59
void rejectButtonChanged();
60
void acceptButtonTextChanged();
61
void rejectButtonTextChanged();