mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
69 lines
1.9 KiB
C++
69 lines
1.9 KiB
C++
/* Copyright (C) 2016
|
|
* 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_COMPONENT_MODELMATCHERLOGCOMPONENT_H
|
|
#define BLACKGUI_COMPONENT_MODELMATCHERLOGCOMPONENT_H
|
|
|
|
#include "blackcore/network.h"
|
|
#include <QFrame>
|
|
#include <QTabWidget>
|
|
#include <QTimer>
|
|
#include <QTextDocument>
|
|
|
|
namespace Ui { class CModelMatcherLogComponent; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
/*!
|
|
* Special logs for matching and reverse lookup
|
|
*/
|
|
class CModelMatcherLogComponent : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CModelMatcherLogComponent(QWidget *parent = nullptr);
|
|
|
|
//! Constructor
|
|
virtual ~CModelMatcherLogComponent();
|
|
|
|
private:
|
|
QScopedPointer<Ui::CModelMatcherLogComponent> ui;
|
|
QTextDocument m_text { this };
|
|
|
|
//! Init
|
|
void initGui();
|
|
|
|
//! Contexts available
|
|
bool hasContexts() const;
|
|
|
|
//! Enabled messages
|
|
bool enabledMessages() const;
|
|
|
|
//! Callsign was entered
|
|
void callsignEntered();
|
|
|
|
//! When values changed elsewhere
|
|
void valuesChanged();
|
|
|
|
//! Flag changed
|
|
void enabledCheckboxChanged(bool enabled);
|
|
|
|
//! Connection status changed
|
|
void connectionStatusChanged(BlackCore::INetwork::ConnectionStatus from, BlackCore::INetwork::ConnectionStatus to);
|
|
};
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|