refs #702, GUI to display reverse lookup messages

This commit is contained in:
Klaus Basan
2016-07-05 13:11:52 +02:00
parent 83eca195a8
commit 299c82e113
3 changed files with 243 additions and 0 deletions

View 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