Emergency 2017 Dokumentation  v3.0.1
qsf::editor::MaterialBrowserMaterialsMenu Class Reference

Material browser materials menu. More...

#include <MaterialBrowserMaterialsMenu.h>

Public Member Functions

 MaterialBrowserMaterialsMenu (const std::vector< GlobalAssetId > &globalAssetIds)
 Constructor. More...
 
virtual ~MaterialBrowserMaterialsMenu ()
 Destructor. More...
 
- Public Member Functions inherited from qsf::editor::AssetMenu
 AssetMenu (const std::vector< GlobalAssetId > &globalAssetIds, bool firstAssetAsTitle=false, QWidget *parent=nullptr)
 Constructor. More...
 
virtual ~AssetMenu ()
 Destructor. More...
 

Static Public Member Functions

static void saveMaterials (const std::vector< GlobalAssetId > &globalAssetIds, bool forceCompile)
 Save given materials. More...
 
- Static Public Member Functions inherited from qsf::editor::AssetMenu
static bool isAnyAssetInALockedProject (const std::vector< GlobalAssetId > &globalAssetIds)
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::editor::AssetMenu
 AssetMenu ()
 Default constructor. More...
 
void setGlobalAssetIds (const std::vector< GlobalAssetId > &globalAssetIds)
 Set global asset IDs and add the Qt actions to the Qt menu. More...
 
virtual std::string getAbsoluteCachedAssetFilename (size_t index) const
 Retrieve the local absolute cached asset filename to use in different actions. More...
 
- Protected Attributes inherited from qsf::editor::AssetMenu
std::vector< GlobalAssetIdmGlobalAssetIds
 

Detailed Description

Material browser materials menu.

Note
  • This menu is more complex and dynamic, so it's justified to have a special menu class for this task

Definition at line 35 of file MaterialBrowserMaterialsMenu.h.

Constructor & Destructor Documentation

qsf::editor::MaterialBrowserMaterialsMenu::MaterialBrowserMaterialsMenu ( const std::vector< GlobalAssetId > &  globalAssetIds)
explicit

Constructor.

Parameters
[in]globalAssetIdsList of global asset IDs this menu should operate on
virtual qsf::editor::MaterialBrowserMaterialsMenu::~MaterialBrowserMaterialsMenu ( )
virtual

Destructor.

Member Function Documentation

static void qsf::editor::MaterialBrowserMaterialsMenu::saveMaterials ( const std::vector< GlobalAssetId > &  globalAssetIds,
bool  forceCompile 
)
static

Save given materials.

Parameters
[in]globalAssetIdsList of global asset IDs to save
Todo:
  • TODO(co) Just a first quick'n'dirty solution to have something for the artists, move this stuff elsewhere

The documentation for this class was generated from the following file: