1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#pragma once
#include <sigc++/connection.h>
#include "ipatch.h"
#include "PatchSettings.h"
namespace patch
{
class PatchModule :
public IPatchModule
{
private:
std::unique_ptr<PatchSettings> _settings;
sigc::connection _patchTextureChanged;
public:
// PatchCreator implementation
scene::INodePtr createPatch(PatchDefType type) override;
IPatchSettings& getSettings() override;
// RegisterableModule implementation
const std::string& getName() const override;
const StringSet& getDependencies() const override;
void initialiseModule(const IApplicationContext& ctx) override;
void shutdownModule() override;
private:
void registerPatchCommands();
};
}
|