mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #702, GUI to display reverse lookup messages
This commit is contained in:
60
src/blackgui/components/modelmatcherlogcomponent.h
Normal file
60
src/blackgui/components/modelmatcherlogcomponent.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/* 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 <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
|
||||
~CModelMatcherLogComponent();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CModelMatcherLogComponent> ui;
|
||||
QTimer m_timer { this };
|
||||
QTextDocument m_text { this };
|
||||
|
||||
//! Init
|
||||
void initGui();
|
||||
|
||||
private slots:
|
||||
//! Update the completer
|
||||
void ps_updateCallsignCompleter();
|
||||
|
||||
//! Callsign was entered
|
||||
void ps_callsignEntered();
|
||||
|
||||
//! Flag changed
|
||||
void ps_reverseLookupEnabled(bool enabled);
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user