mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
63 lines
1.8 KiB
C++
63 lines
1.8 KiB
C++
/* Copyright (C) 2018
|
|
* 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. 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_MODELMATCHERLOGENABLE_H
|
|
#define BLACKGUI_COMPONENTS_MODELMATCHERLOGENABLE_H
|
|
|
|
#include "blackmisc/network/connectionstatus.h"
|
|
#include <QFrame>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui { class CModelMatcherLogEnable; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
//! Enable/disable matching logs
|
|
class CModelMatcherLogEnable : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CModelMatcherLogEnable(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CModelMatcherLogEnable() override;
|
|
|
|
//! Reverse lookup enabled?
|
|
bool isReverseLookupLogEnabled() const;
|
|
|
|
//! Matching log.enabled
|
|
bool isMatchingLogEnabled() const;
|
|
|
|
private:
|
|
QScopedPointer<Ui::CModelMatcherLogEnable> ui;
|
|
|
|
//! Flag changed
|
|
void enabledCheckboxChanged(bool enabled);
|
|
|
|
//! Init GUI
|
|
void initGui();
|
|
|
|
//! Has required context
|
|
bool hasContexts() const;
|
|
|
|
//! When values changed elsewhere
|
|
void valuesChanged();
|
|
|
|
//! Connection status has been changed
|
|
void connectionStatusChanged(const BlackMisc::Network::CConnectionStatus &from, const BlackMisc::Network::CConnectionStatus &to);
|
|
};
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|