mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #693, GUI dialog when application closes
This commit is contained in:
50
src/blackgui/components/applicationclosedialog.h
Normal file
50
src/blackgui/components/applicationclosedialog.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_COMPONENTS_APPLICATIONCLOSEDIALOG_H
|
||||
#define BLACKGUI_COMPONENTS_APPLICATIONCLOSEDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CApplicationCloseDialog; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* Close dialog for application
|
||||
*/
|
||||
class CApplicationCloseDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CApplicationCloseDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CApplicationCloseDialog();
|
||||
|
||||
private slots:
|
||||
//! Accepted
|
||||
void ps_onAccepted();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CApplicationCloseDialog> ui;
|
||||
QStringList m_settingskeys;
|
||||
|
||||
//! Init the settings view
|
||||
void initSettingsView();
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user