qskinny/src/dialogs/QskMessageWindow.h

58 lines
1.4 KiB
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_MESSAGE_WINDOW_H
#define QSK_MESSAGE_WINDOW_H 1
2018-11-06 18:54:21 +01:00
#include "QskDialogWindow.h"
2017-07-21 18:21:34 +02:00
2018-11-06 18:54:21 +01:00
class QskTextOptions;
class QskGraphic;
2017-07-21 18:21:34 +02:00
2018-11-06 18:54:21 +01:00
class QSK_EXPORT QskMessageWindow : public QskDialogWindow
2017-07-21 18:21:34 +02:00
{
Q_OBJECT
2018-11-06 19:00:42 +01:00
Q_PROPERTY( QString text READ text
WRITE setText NOTIFY textChanged )
2018-11-06 18:54:21 +01:00
2018-11-06 19:00:42 +01:00
Q_PROPERTY( QskTextOptions textOptions READ textOptions
WRITE setTextOptions NOTIFY textOptionsChanged )
2018-11-06 18:54:21 +01:00
Q_PROPERTY( QUrl symbolSource READ symbolSource WRITE setSymbolSource )
using Inherited = QskDialogWindow;
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskMessageWindow( QWindow* parent = nullptr );
2018-07-31 17:32:25 +02:00
~QskMessageWindow() override;
2018-11-06 18:54:21 +01:00
2018-11-06 19:00:42 +01:00
void setTextOptions( const QskTextOptions& );
QskTextOptions textOptions() const;
2018-11-06 18:54:21 +01:00
2018-11-06 19:00:42 +01:00
QString text() const;
2018-11-06 18:54:21 +01:00
void setSymbolSource( const QUrl& url );
QUrl symbolSource() const;
void setSymbolType( int symbolType );
void setSymbol( const QskGraphic& );
QskGraphic symbol() const;
public Q_SLOTS:
2018-11-06 19:00:42 +01:00
void setText( const QString& );
2018-11-06 18:54:21 +01:00
Q_SIGNALS:
2018-11-06 19:00:42 +01:00
void textChanged( const QString& );
void textOptionsChanged( const QskTextOptions& );
2018-11-06 18:54:21 +01:00
private:
class PrivateData;
std::unique_ptr< PrivateData > m_data;
2017-07-21 18:21:34 +02:00
};
#endif