refs #195, refs #212, SELCAL code selector as own component, as now used with flight plan and cockpit

This commit is contained in:
Klaus Basan
2014-04-26 16:07:03 +02:00
parent 4149b0a19d
commit c7ae163002
3 changed files with 154 additions and 0 deletions

View 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