mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Unified notification of source creation with Source info
New virtual function source::info used for notification after adding source
This commit is contained in:
6
Source.h
6
Source.h
@@ -230,6 +230,9 @@ public:
|
||||
// class-dependent icon
|
||||
virtual glm::ivec2 icon () const { return glm::ivec2(12, 11); }
|
||||
|
||||
// class-dependent notification
|
||||
virtual std::string info () const { return "Undefined"; }
|
||||
|
||||
SourceLink processingshader_link_;
|
||||
|
||||
protected:
|
||||
@@ -322,7 +325,8 @@ public:
|
||||
inline void detach() { origin_ = nullptr; }
|
||||
inline Source *origin() const { return origin_; }
|
||||
|
||||
glm::ivec2 icon() const override { return glm::ivec2(9, 2); }
|
||||
glm::ivec2 icon() const override;
|
||||
std::string info() const override;
|
||||
|
||||
protected:
|
||||
// only Source class can create new CloneSource via clone();
|
||||
|
||||
Reference in New Issue
Block a user