1 #pragma once 2 3 #ifndef CACHEFXCOMMAND_INCLUDE 4 #define CACHEFXCOMMAND_INCLUDE 5 6 #include "tfx.h" 7 8 #include <QObject> 9 10 //============================================================================= 11 // CacheFxCommand 12 //----------------------------------------------------------------------------- 13 14 class CacheFxCommand final : public QObject { 15 Q_OBJECT 16 17 public: 18 CacheFxCommand(); 19 ~CacheFxCommand(); 20 21 static CacheFxCommand *instance(); 22 23 void onNewScene(); 24 void onSceneLoaded(); 25 26 void onLevelChanged(const std::string &levelName); 27 28 public slots: 29 30 void onFxChanged(); 31 void onXsheetChanged(); 32 void onObjectChanged(); 33 }; 34 35 //============================================================================= 36 // Misc Stuff 37 //----------------------------------------------------------------------------- 38 39 void buildTreeDescription(std::string &desc, const TFxP &root); 40 41 #endif 42