qskinny/src/dialogs/QskMessageSubWindow.h

43 lines
1.1 KiB
C
Raw Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 16:21:34 +00:00
*****************************************************************************/
#ifndef QSK_MESSAGE_SUB_WINDOW_H
2022-03-20 12:11:34 +00:00
#define QSK_MESSAGE_SUB_WINDOW_H
2017-07-21 16:21:34 +00:00
2018-11-06 17:54:21 +00:00
#include "QskDialogSubWindow.h"
2017-07-21 16:21:34 +00:00
2018-11-06 17:54:21 +00:00
class QskTextOptions;
class QSK_EXPORT QskMessageSubWindow : public QskDialogSubWindow
2017-07-21 16:21:34 +00:00
{
Q_OBJECT
2018-11-06 18:00:42 +00:00
Q_PROPERTY( QString text READ text
WRITE setText NOTIFY textChanged )
Q_PROPERTY( QskTextOptions textOptions READ textOptions
WRITE setTextOptions NOTIFY textOptionsChanged )
2019-01-04 12:42:16 +00:00
2018-11-06 17:54:21 +00:00
using Inherited = QskDialogSubWindow;
2017-07-21 16:21:34 +00:00
2018-08-03 06:15:28 +00:00
public:
2017-07-21 16:21:34 +00:00
QskMessageSubWindow( QQuickItem* parent = nullptr );
2018-07-31 15:32:25 +00:00
~QskMessageSubWindow() override;
2018-11-06 17:54:21 +00:00
2018-11-06 18:00:42 +00:00
void setTextOptions( const QskTextOptions& );
QskTextOptions textOptions() const;
2019-01-04 12:42:16 +00:00
2018-11-06 18:00:42 +00:00
QString text() const;
2019-01-04 12:42:16 +00:00
2018-11-06 17:54:21 +00:00
public Q_SLOTS:
2018-11-06 18:00:42 +00:00
void setText( const QString& );
2019-01-04 12:42:16 +00:00
2018-11-06 17:54:21 +00:00
Q_SIGNALS:
2018-11-06 18:00:42 +00:00
void textChanged( const QString& );
void textOptionsChanged( const QskTextOptions& );
2017-07-21 16:21:34 +00:00
};
#endif