mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T362, mapping component added workbench component
- adjusted UI - singe function to get view per tab - used setTabWidgetViewText
This commit is contained in:
@@ -72,15 +72,16 @@ namespace BlackGui
|
||||
|
||||
public:
|
||||
//! Tab index.
|
||||
//! Must match real tab index
|
||||
//! \remark Must match real tab index
|
||||
enum TabIndex
|
||||
{
|
||||
NoValidTab = -1,
|
||||
TabOwnModelSet = 0,
|
||||
TabOwnModels = 1,
|
||||
TabStash = 2,
|
||||
TabModelMatcher = 3,
|
||||
TabVPilot = 4
|
||||
TabWorkbench = 2,
|
||||
TabStash = 3,
|
||||
TabModelMatcher = 4,
|
||||
TabVPilot = 5
|
||||
};
|
||||
|
||||
//! Constructor
|
||||
@@ -113,6 +114,9 @@ namespace BlackGui
|
||||
//! Current model view
|
||||
Views::CAircraftModelView *currentModelView() const;
|
||||
|
||||
//! Current model view
|
||||
Views::CAircraftModelView *modelView(TabIndex tab) const;
|
||||
|
||||
//! Unvalidated consolidated aircraft model from the editor subparts (icao, distributor)
|
||||
//! \note not guaranteed to be valid, just a snapshot of its current editor state
|
||||
BlackMisc::Simulation::CAircraftModel getEditorAircraftModel() const;
|
||||
@@ -247,6 +251,9 @@ namespace BlackGui
|
||||
//! vPilot data changed
|
||||
void onVPilotDataChanged(int count, bool withFilter);
|
||||
|
||||
//! Workbench data changed
|
||||
void onWorkbenchDataChanged(int count, bool withFilter);
|
||||
|
||||
//! Tab index changed
|
||||
void onTabIndexChanged(int index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user