22#ifndef GTKMM_KAGE_ASSET_MANAGER_H
23 #define GTKMM_KAGE_ASSET_MANAGER_H
25 #include <gtkmm/box.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/button.h>
41 unsigned int addAsset(std::string p_name =
"");
57 void render(
unsigned int p_renderID);
70 bool exists(std::string p_filePath);
79 std::string
getHashAt(
unsigned int p_index);
80 std::string
getIDAt(
unsigned int p_index);
81 bool setFilePathAt(
unsigned int p_index, std::string p_filePath);
82 bool setFileNameAt(
unsigned int p_index, std::string p_fileName);
83 bool setHashAt(
unsigned int p_index, std::string p_hash);
forward declaration
Definition asset.h:32
AssetType
Definition asset.h:34
void setAssetHash(std::string p_assetHash)
Definition assetmanager.cpp:696
unsigned int assetCtr
Definition assetmanager.h:94
std::string getHashAt(unsigned int p_index)
Definition assetmanager.cpp:825
unsigned int _selectedAssetID
Definition assetmanager.h:92
virtual ~KageAssetManager()
Definition assetmanager.cpp:34
bool setFileNameAt(unsigned int p_index, std::string p_fileName)
For use by Kage when Opening.
Definition assetmanager.cpp:786
bool setFilePathAt(unsigned int p_index, std::string p_filePath)
For use by Kage when Opening.
Definition assetmanager.cpp:761
std::string getImagePathByID(unsigned int p_index)
Definition assetmanager.cpp:709
std::string getFileNameAt(unsigned int p_index)
Definition assetmanager.cpp:797
std::string getLabelAt(unsigned int p_index)
Definition assetmanager.cpp:807
void renderLibrary(unsigned int p_ID)
Definition assetmanager.cpp:303
void setAssetType(KageAsset::AssetType p_assetType)
Definition assetmanager.cpp:263
void deleteAsset()
Definition assetmanager.cpp:206
std::string getLabel()
Definition assetmanager.cpp:550
unsigned int _currentAssetID
Definition assetmanager.h:97
void setCurrentAssetByID(unsigned int p_assetID)
Definition assetmanager.cpp:449
unsigned int _currentAssetIndex
Definition assetmanager.h:98
bool moveToTop()
Definition assetmanager.cpp:569
void render(unsigned int p_renderID)
Definition assetmanager.cpp:277
unsigned int addImageAsset(std::string p_name="")
Used by Kage when opening KAGE files with PNG Assets Blindly accepts that p_name is actually a PNG fi...
Definition assetmanager.cpp:142
unsigned int addAsset(std::string p_name="")
Definition assetmanager.cpp:38
void setLabel(std::string p_label)
Sets the label of current active Asset.
Definition assetmanager.cpp:536
std::string saveAssetsTo(std::string p_path)
Definition assetmanager.cpp:836
void renderStage()
Definition assetmanager.cpp:477
void setCurrentAsset(unsigned int p_asset)
Definition assetmanager.cpp:420
KageAsset::AssetType getAssetType()
Definition assetmanager.cpp:247
KageAsset * getAsset()
Definition assetmanager.cpp:383
KageAssetManager(Kage *p_kage)
Definition assetmanager.cpp:25
bool setHashAt(unsigned int p_index, std::string p_hash)
Definition assetmanager.cpp:814
std::vector< Gtk::Button * > labels
Definition assetmanager.h:95
bool exists(std::string p_filePath)
Definition assetmanager.cpp:678
std::string getImageByID(unsigned int p_id)
Definition assetmanager.cpp:739
void setSelected(KageAsset *p_asset)
Definition assetmanager.cpp:320
std::string _KageStudioAsset
Definition assetmanager.h:73
Kage * _kage
Definition assetmanager.h:90
unsigned int getCurrentAsset()
Definition assetmanager.cpp:402
bool moveToBottom()
Definition assetmanager.cpp:652
bool moveDown()
Definition assetmanager.cpp:623
std::string getIDAt(unsigned int p_index)
void setBelowAssetSelected(KageAsset *p_asset)
For use by Asset when Arrow Down is pressed.
Definition assetmanager.cpp:366
unsigned int assetCount()
Definition assetmanager.cpp:491
void renameAsset()
Definition assetmanager.cpp:510
void forceRender()
Definition assetmanager.cpp:293
std::vector< KageAsset * > assets
Definition assetmanager.h:96
bool removeAllAssets()
Definition assetmanager.cpp:307
std::string getFilePathAt(unsigned int p_index)
Definition assetmanager.cpp:772
void setAboveAssetSelected(KageAsset *p_asset)
For use by Asset when Arrow Up is pressed.
Definition assetmanager.cpp:348
bool moveUp()
Definition assetmanager.cpp:594