mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Ref T362, Ref T348 "removed models" context menu
This commit is contained in:
@@ -105,9 +105,12 @@ namespace BlackGui
|
||||
//! Current tab index
|
||||
TabIndex currentTabIndex() const;
|
||||
|
||||
//! Is stashed view
|
||||
//! Is stashed view?
|
||||
bool isStashTab() const;
|
||||
|
||||
//! Is workbench tab?
|
||||
bool isWorkbenchTab() const;
|
||||
|
||||
//! Tab can contribute to model set
|
||||
bool canAddToModelSetTab() const;
|
||||
|
||||
@@ -233,6 +236,9 @@ namespace BlackGui
|
||||
//! Data for vPilot have been loaded
|
||||
void onLoadVPilotDataFinished(bool success);
|
||||
|
||||
//! Load removed models
|
||||
void loadRemovedModels();
|
||||
|
||||
//! Merge with vPilot models
|
||||
void mergeWithVPilotModels();
|
||||
|
||||
@@ -413,6 +419,25 @@ namespace BlackGui
|
||||
QAction *m_menuAction = nullptr;
|
||||
};
|
||||
|
||||
//! Menu for removed models
|
||||
class CRemovedModelsMenu : public Menus::IMenuDelegate
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
CRemovedModelsMenu(CDbMappingComponent *mappingComponent) :
|
||||
Menus::IMenuDelegate(mappingComponent)
|
||||
{}
|
||||
|
||||
//! \copydoc IMenuDelegate::customMenu
|
||||
virtual void customMenu(Menus::CMenuActions &menuActions) override;
|
||||
|
||||
private:
|
||||
//! Mapping component
|
||||
CDbMappingComponent *mappingComponent() const;
|
||||
|
||||
QAction *m_menuAction = nullptr;
|
||||
};
|
||||
|
||||
//! Apply DB data to selected models
|
||||
class CApplyDbDataMenu : public Menus::IMenuDelegate
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user