Files
pilotclient/src/blackgui/components/dbdebugdatabasesetup.h
Lars Toenning bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00

48 lines
1.2 KiB
C++

// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
//! \file
#ifndef BLACKGUI_COMPONENTS_DBDEBUGDATABASESETUP_H
#define BLACKGUI_COMPONENTS_DBDEBUGDATABASESETUP_H
#include "blackcore/data/globalsetup.h"
#include "blackgui/blackguiexport.h"
#include "blackmisc/datacache.h"
#include <QFrame>
#include <QObject>
#include <QScopedPointer>
namespace Ui
{
class CDbDebugDatabaseSetup;
}
namespace BlackGui::Components
{
/*!
* Debug settings for DB (only to be used as developer)
* \remarks Disabled when not runnig in dev.environment
*/
class BLACKGUI_EXPORT CDbDebugDatabaseSetup : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit CDbDebugDatabaseSetup(QWidget *parent = nullptr);
//! Dstructor
~CDbDebugDatabaseSetup();
private:
//! Changed the debug checkbox
void onDebugChanged(bool set);
QScopedPointer<Ui::CDbDebugDatabaseSetup> ui;
BlackMisc::CData<BlackCore::Data::TGlobalSetup> m_setup { this }; //!< data cache
};
} // ns
#endif // guard