|
1 | 1 | /* |
2 | | - * Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> |
3 | | - * (C) 2020 Vladimir Sadovnikov <[email protected]> |
| 2 | + * Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> |
| 3 | + * (C) 2024 Vladimir Sadovnikov <[email protected]> |
4 | 4 | * |
5 | 5 | * This file is part of lsp-tk-lib |
6 | 6 | * Created on: 19 нояб. 2017 г. |
@@ -68,10 +68,6 @@ namespace lsp |
68 | 68 | public: |
69 | 69 | static const w_class_t metadata; |
70 | 70 |
|
71 | | - private: |
72 | | - Fader & operator = (const Fader &); |
73 | | - Fader(const Fader &); |
74 | | - |
75 | 71 | protected: |
76 | 72 | enum flags_t |
77 | 73 | { |
@@ -127,15 +123,19 @@ namespace lsp |
127 | 123 | static status_t slot_end_edit(Widget *sender, void *ptr, void *data); |
128 | 124 |
|
129 | 125 | protected: |
130 | | - virtual void size_request(ws::size_limit_t *r); |
131 | | - virtual void property_changed(Property *prop); |
132 | | - virtual void realize(const ws::rectangle_t *r); |
| 126 | + virtual void size_request(ws::size_limit_t *r) override; |
| 127 | + virtual void property_changed(Property *prop) override; |
| 128 | + virtual void realize(const ws::rectangle_t *r) override; |
133 | 129 |
|
134 | 130 | public: |
135 | 131 | explicit Fader(Display *dpy); |
136 | | - virtual ~Fader(); |
| 132 | + Fader(const Fader &) = delete; |
| 133 | + Fader(Fader &&) = delete; |
| 134 | + virtual ~Fader() override; |
| 135 | + Fader & operator = (const Fader &) = delete; |
| 136 | + Fader & operator = (Fader &&) = delete; |
137 | 137 |
|
138 | | - virtual status_t init(); |
| 138 | + virtual status_t init() override; |
139 | 139 |
|
140 | 140 | public: |
141 | 141 | LSP_TK_PROPERTY(Color, button_color, &sBtnColor); |
@@ -164,23 +164,18 @@ namespace lsp |
164 | 164 |
|
165 | 165 | public: |
166 | 166 |
|
167 | | - virtual ws::mouse_pointer_t current_pointer(); |
| 167 | + virtual status_t on_mouse_down(const ws::event_t *e) override; |
| 168 | + virtual status_t on_mouse_up(const ws::event_t *e) override; |
| 169 | + virtual status_t on_mouse_move(const ws::event_t *e) override; |
| 170 | + virtual status_t on_mouse_scroll(const ws::event_t *e) override; |
| 171 | + virtual status_t on_mouse_pointer(pointer_event_t *e) override; |
| 172 | + virtual void draw(ws::ISurface *s) override; |
168 | 173 |
|
| 174 | + public: |
169 | 175 | virtual status_t on_begin_edit(); |
170 | | - |
171 | 176 | virtual status_t on_change(); |
172 | | - |
173 | 177 | virtual status_t on_end_edit(); |
174 | 178 |
|
175 | | - virtual status_t on_mouse_down(const ws::event_t *e); |
176 | | - |
177 | | - virtual status_t on_mouse_up(const ws::event_t *e); |
178 | | - |
179 | | - virtual status_t on_mouse_move(const ws::event_t *e); |
180 | | - |
181 | | - virtual status_t on_mouse_scroll(const ws::event_t *e); |
182 | | - |
183 | | - virtual void draw(ws::ISurface *s); |
184 | 179 | }; |
185 | 180 |
|
186 | 181 | } /* namespace tk */ |
|
0 commit comments