mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 14:45:33 +08:00
refs #335, SELCAL tweaks discovered during refactoring
* better case handling in SELCAL * SELCAL in aircraft * SELCAL selector, improved getter / setters * changed cockpit SELCAL elements to promoted GUI element * synchronized flightplan and cockpit SELCAL codes, used new signal/slot syntacs in flightplan * added SELCAL in own aircraft context
This commit is contained in:
committed by
Roland Winklmeier
parent
dd587207fe
commit
0c6f5f1777
@@ -12,7 +12,9 @@
|
||||
#ifndef BLACKGUI_SELCALCODESELECTOR_H
|
||||
#define BLACKGUI_SELCALCODESELECTOR_H
|
||||
|
||||
#include "blackmisc/avselcal.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CSelcalCodeSelector; }
|
||||
namespace BlackGui
|
||||
@@ -33,21 +35,30 @@ namespace BlackGui
|
||||
//! SELCAL code
|
||||
QString getSelcalCode() const;
|
||||
|
||||
//! SELCAL
|
||||
BlackMisc::Aviation::CSelcal getSelcal() const;
|
||||
|
||||
//! Reset the SELCAL code
|
||||
void resetSelcalCodes(bool allowEmptyValue = false);
|
||||
|
||||
//! Set the SELCAL code
|
||||
void setSelcalCode(const QString &selcal);
|
||||
|
||||
//! Set the SELCAL code
|
||||
void setSelcalCode(const BlackMisc::Aviation::CSelcal &selcal);
|
||||
|
||||
//! Valid code?
|
||||
bool hasValidCode() const;
|
||||
|
||||
//! Clear
|
||||
void clear();
|
||||
|
||||
signals:
|
||||
//! Value has been changed
|
||||
void valueChanged();
|
||||
|
||||
private:
|
||||
Ui::CSelcalCodeSelector *ui;
|
||||
QScopedPointer<Ui::CSelcalCodeSelector> ui;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user