mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Infowindow, a popup window window showing important messages.
Example: user receives private chat message, while text message window is hidden.
This commit is contained in:
43
samples/blackgui/infowindow.h
Normal file
43
samples/blackgui/infowindow.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / authors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef SAMPLE_INFOWINDOW_H
|
||||
#define SAMPLE_INFOWINDOW_H
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class InfoWindow;
|
||||
}
|
||||
|
||||
class CInfoWindow : public QWizardPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Constructor
|
||||
* \param parent
|
||||
*/
|
||||
explicit CInfoWindow(QWidget *parent = nullptr);
|
||||
|
||||
/*!
|
||||
* \brief Destructor
|
||||
*/
|
||||
~CInfoWindow();
|
||||
|
||||
/*!
|
||||
* \brief Set info message displayed for some time
|
||||
* \param message
|
||||
* \param displayTimeMs
|
||||
*/
|
||||
void setInfoMessage(const QString &message, int displayTimeMs = 4000);
|
||||
|
||||
private:
|
||||
Ui::InfoWindow *ui;
|
||||
};
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user