Skip to content

Commit f53acfd

Browse files
committed
UI refactoring
1 parent 5fdb457 commit f53acfd

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

include/private/ui/gott_compressor.h

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2023 Vladimir Sadovnikov <sadko4u@gmail.com>
2+
* Copyright (C) 2026 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2026 Vladimir Sadovnikov <sadko4u@gmail.com>
44
*
55
* This file is part of lsp-plugins-gott-compressor
66
* Created on: 19 июн. 2023 г.
@@ -64,8 +64,8 @@ namespace lsp
6464
static void make_value_less_eq(ui::IPort *dst, ui::IPort *src);
6565

6666
protected:
67-
static status_t slot_split_mouse_in(tk::Widget *sender, void *ptr, void *data);
68-
static status_t slot_split_mouse_out(tk::Widget *sender, void *ptr, void *data);
67+
static status_t slot_split_mouse_in(tk::Widget *sender, void *ptr, void *data);
68+
static status_t slot_split_mouse_out(tk::Widget *sender, void *ptr, void *data);
6969

7070
protected:
7171
band_t *find_band_by_port(const ui::IPort *port);
@@ -76,22 +76,27 @@ namespace lsp
7676

7777
protected:
7878
template <class T>
79-
T *find_split_widget(const char *fmt, const char *base, size_t id);
80-
split_t *find_split_by_widget(tk::Widget *widget);
79+
T *find_split_widget(const char *fmt, const char *base, size_t id);
80+
split_t *find_split_by_widget(tk::Widget *widget);
8181

8282
public:
8383
explicit gott_compressor(const meta::plugin_t *meta);
84-
virtual ~gott_compressor() override;
84+
gott_compressor(const gott_compressor &) = delete;
85+
gott_compressor(gott_compressor &&) = delete;
86+
virtual ~gott_compressor() override;
87+
88+
gott_compressor & operator = (const gott_compressor &) = delete;
89+
gott_compressor & operator = (gott_compressor &&) = delete;
8590

8691
virtual status_t post_init() override;
8792
virtual status_t pre_destroy() override;
8893

8994
protected:
90-
void on_split_mouse_in(split_t *s);
91-
void on_split_mouse_out();
95+
void on_split_mouse_in(split_t *s);
96+
void on_split_mouse_out();
9297

93-
void add_splits();
94-
void update_split_note_text(split_t *s);
98+
void add_splits();
99+
void update_split_note_text(split_t *s);
95100

96101
public:
97102
virtual void notify(ui::IPort *port, size_t flags) override;

src/main/ui/gott_compressor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2025 Vladimir Sadovnikov <sadko4u@gmail.com>
2+
* Copyright (C) 2026 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2026 Vladimir Sadovnikov <sadko4u@gmail.com>
44
*
55
* This file is part of lsp-plugins-gott-compressor
66
* Created on: 29 мая 2023 г.
@@ -211,7 +211,7 @@ namespace lsp
211211
expr::Parameters params;
212212
tk::prop::String lc_string;
213213
LSPString text;
214-
lc_string.bind(s->wNote->style(), pDisplay->dictionary());
214+
lc_string.bind(s->wNote->style(), display()->dictionary());
215215
SET_LOCALE_SCOPED(LC_NUMERIC, "C");
216216

217217
// Frequency

0 commit comments

Comments
 (0)