plasma-framework/declarativeimports/plasmacomponents/fullscreensheet.h

65 lines
2.8 KiB
C
Raw Normal View History

/***************************************************************************
* Copyright 2012 Marco Martin <mart@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
***************************************************************************/
#ifndef FULLSCREENSHEET_P
#define FULLSCREENSHEET_P
2012-02-28 14:49:20 +01:00
#include "fullscreenwindow.h"
2012-02-28 14:49:20 +01:00
class FullScreenSheet : public FullScreenWindow
{
Q_OBJECT
2012-03-01 15:03:45 +01:00
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
Q_PROPERTY(QDeclarativeItem *acceptButton READ acceptButton WRITE setAcceptButton NOTIFY acceptButtonChanged)
Q_PROPERTY(QDeclarativeItem *rejectButton READ rejectButton WRITE setRejectButton NOTIFY rejectButtonChanged)
2012-02-28 14:49:20 +01:00
Q_PROPERTY(QString acceptButtonText READ acceptButtonText WRITE setAcceptButtonText NOTIFY acceptButtonTextChanged)
Q_PROPERTY(QString rejectButtonText READ rejectButtonText WRITE setRejectButtonText NOTIFY rejectButtonTextChanged)
public:
FullScreenSheet(QDeclarativeItem *parent = 0);
~FullScreenSheet();
2012-03-01 15:03:45 +01:00
QString title() const;
void setTitle(const QString &text);
QDeclarativeItem *acceptButton() const;
void setAcceptButton(QDeclarativeItem *button);
2012-02-28 14:49:20 +01:00
2012-03-01 15:03:45 +01:00
QDeclarativeItem *rejectButton() const;
void setRejectButton(QDeclarativeItem *button);
2012-02-28 14:49:20 +01:00
QString acceptButtonText() const;
void setAcceptButtonText(const QString &text);
QString rejectButtonText() const;
void setRejectButtonText(const QString &text);
2012-03-01 15:03:45 +01:00
Q_INVOKABLE void open();
2012-02-28 14:49:20 +01:00
Q_SIGNALS:
2012-03-01 15:03:45 +01:00
void titleChanged();
2012-02-28 14:49:20 +01:00
void acceptButtonChanged();
void rejectButtonChanged();
void acceptButtonTextChanged();
void rejectButtonTextChanged();
};
#endif