Emergency 20 Dokumentation  4.1.0
Public Member Functions | Static Public Member Functions | List of all members
qsf::editor::MaterialBrowserMaterialsMenu Class Reference

Material browser materials menu. More...

#include <MaterialBrowserMaterialsMenu.h>

Inheritance diagram for qsf::editor::MaterialBrowserMaterialsMenu:
Inheritance graph
[legend]
Collaboration diagram for qsf::editor::MaterialBrowserMaterialsMenu:
Collaboration graph
[legend]

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 AssetPackages &selectedAssetPackages, const std::vector< GlobalAssetId > &globalAssetIds, bool firstAssetAsTitle=false, QWidget *parent=nullptr, uint8 flags=0)
 Constructor. More...
 
virtual ~AssetMenu ()
 Destructor. More...
 

Static Public Member Functions

static void saveMaterials (const std::vector< GlobalAssetId > &globalAssetIds, bool forceCompile)
 Save given materials. More...
 

Additional Inherited Members

- Public Types inherited from qsf::editor::AssetMenu
enum  Flag { NO_SHOW_IN_ASSET_BROWSER = 1<<0, NO_SHOW_IN_PREFAB_BROWSER = 1<<1, NO_SHOW_IN_MATERIAL_BROWSER = 1<<2 }
 
- Protected Member Functions inherited from qsf::editor::AssetMenu
 AssetMenu ()
 Default constructor. More...
 
void setGlobalAssetIds (const std::vector< GlobalAssetId > &globalAssetIds, const AssetPackages &selectedAssetPackages=AssetPackages())
 Set global asset IDs and add the Qt actions to the Qt menu. More...
 
bool isAnyAssetInALockedProject (const std::vector< GlobalAssetId > &globalAssetIds) const
 
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
 
AssetPackages mSelectedAssetPackages
 List of selected asset packages, empty means consider all asset packages. More...
 

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

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: