58 lines
1.5 KiB
C++
58 lines
1.5 KiB
C++
/******************************************************************************
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#ifndef QSK_MESSAGE_SUB_WINDOW_H
|
|
#define QSK_MESSAGE_SUB_WINDOW_H 1
|
|
|
|
#include "QskDialogSubWindow.h"
|
|
|
|
class QskGraphic;
|
|
class QskTextOptions;
|
|
|
|
class QSK_EXPORT QskMessageSubWindow : public QskDialogSubWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY( QString infoText READ infoText
|
|
WRITE setInfoText NOTIFY infoTextChanged )
|
|
|
|
Q_PROPERTY( QskTextOptions infoTextOptions READ infoTextOptions
|
|
WRITE setInfoTextOptions NOTIFY infoTextOptionsChanged )
|
|
|
|
Q_PROPERTY( QUrl symbolSource READ symbolSource WRITE setSymbolSource )
|
|
|
|
using Inherited = QskDialogSubWindow;
|
|
|
|
public:
|
|
QskMessageSubWindow( QQuickItem* parent = nullptr );
|
|
~QskMessageSubWindow() override;
|
|
|
|
void setInfoTextOptions( const QskTextOptions& );
|
|
QskTextOptions infoTextOptions() const;
|
|
|
|
QString infoText() const;
|
|
|
|
void setSymbolSource( const QUrl& url );
|
|
QUrl symbolSource() const;
|
|
|
|
void setSymbolType( int symbolType );
|
|
|
|
void setSymbol( const QskGraphic& );
|
|
QskGraphic symbol() const;
|
|
|
|
public Q_SLOTS:
|
|
void setInfoText( const QString& );
|
|
|
|
Q_SIGNALS:
|
|
void infoTextChanged( const QString& );
|
|
void infoTextOptionsChanged( const QskTextOptions& );
|
|
|
|
private:
|
|
class PrivateData;
|
|
std::unique_ptr< PrivateData > m_data;
|
|
};
|
|
|
|
#endif
|