plasma-framework/declarativeimports/plasmacomponents/fullscreensheet.h
2012-03-01 15:03:45 +01:00

65 lines
2.8 KiB
C++

/***************************************************************************
* 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
#include "fullscreenwindow.h"
class FullScreenSheet : public FullScreenWindow
{
Q_OBJECT
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)
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();
QString title() const;
void setTitle(const QString &text);
QDeclarativeItem *acceptButton() const;
void setAcceptButton(QDeclarativeItem *button);
QDeclarativeItem *rejectButton() const;
void setRejectButton(QDeclarativeItem *button);
QString acceptButtonText() const;
void setAcceptButtonText(const QString &text);
QString rejectButtonText() const;
void setRejectButtonText(const QString &text);
Q_INVOKABLE void open();
Q_SIGNALS:
void titleChanged();
void acceptButtonChanged();
void rejectButtonChanged();
void acceptButtonTextChanged();
void rejectButtonTextChanged();
};
#endif