mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #195, refs #212, SELCAL code selector as own component, as now used with flight plan and cockpit
This commit is contained in:
45
src/blackgui/selcalcodeselector.h
Normal file
45
src/blackgui/selcalcodeselector.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef BLACKGUI_SELCALCODESELECTOR_H
|
||||
#define BLACKGUI_SELCALCODESELECTOR_H
|
||||
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CSelcalCodeSelector; }
|
||||
namespace BlackGui
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief SELCAL mode selector
|
||||
*/
|
||||
class CSelcalCodeSelector : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSelcalCodeSelector(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CSelcalCodeSelector();
|
||||
|
||||
//! SELCAL code
|
||||
QString getSelcalCode() const;
|
||||
|
||||
//! Reset the SELCAL code
|
||||
void resetSelcalCodes(bool allowEmptyValue = false);
|
||||
|
||||
//! Set the SELCAL code
|
||||
void setSelcalCode(const QString &selcal);
|
||||
|
||||
//! Valid code?
|
||||
bool hasValidCode() const;
|
||||
|
||||
signals:
|
||||
//! Value has been changed
|
||||
void valueChanged();
|
||||
|
||||
private:
|
||||
Ui::CSelcalCodeSelector *ui;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user