Ref T362, mapping component added workbench component

- adjusted UI
- singe function to get view per tab
- used setTabWidgetViewText
This commit is contained in:
Klaus Basan
2018-09-19 15:04:48 +02:00
parent b07234562f
commit 8fcbc09473
3 changed files with 89 additions and 48 deletions

View File

@@ -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);