diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 21:02:35 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:52:29 +0100 |
commit | f6a72b69f8660ec1aaa6fb00ee9907e798835a25 (patch) | |
tree | bb795dfd30c383deaa76aa792c709cf8f0218f68 /src/PatchageModule.hpp | |
parent | 2e7a3b3bc94f8d68475883c845f31ee42cba115c (diff) | |
download | patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.tar.gz patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.tar.bz2 patchage-f6a72b69f8660ec1aaa6fb00ee9907e798835a25.zip |
Ensure that modules always have an ID
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r-- | src/PatchageModule.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp index aa25546..e5abe43 100644 --- a/src/PatchageModule.hpp +++ b/src/PatchageModule.hpp @@ -17,6 +17,7 @@ #ifndef PATCHAGE_PATCHAGEMODULE_HPP #define PATCHAGE_PATCHAGEMODULE_HPP +#include "ClientID.hpp" #include "Configuration.hpp" #include "warnings.hpp" @@ -38,6 +39,7 @@ public: PatchageModule(Patchage* app, const std::string& name, ModuleType type, + ClientID id, double x = 0, double y = 0); @@ -63,6 +65,7 @@ public: void store_location(double x, double y); ModuleType type() const { return _type; } + ClientID id() const { return _id; } const std::string& name() const { return _name; } protected: @@ -72,6 +75,7 @@ protected: Gtk::Menu* _menu; std::string _name; ModuleType _type; + ClientID _id; }; #endif // PATCHAGE_PATCHAGEMODULE_HPP |