1 #include "bcdisplayinfo.h"
3 #include "filesystem.h"
4 #include "gainwindow.h"
9 #define _(String) gettext(String)
10 #define gettext_noop(String) String
11 #define N_(String) gettext_noop (String)
13 PLUGIN_THREAD_OBJECT(Gain, GainThread, GainWindow)
20 GainWindow::GainWindow(Gain *gain, int x, int y)
21 : BC_Window(gain->gui_string,
35 GainWindow::~GainWindow()
39 int GainWindow::create_objects()
42 add_tool(new BC_Title(5, y, _("Level:")));
44 add_tool(level = new GainLevel(gain, x, y));
50 int GainWindow::close_event()
52 // Set result to 1 to indicate a client side close
61 GainLevel::GainLevel(Gain *gain, int x, int y)
73 int GainLevel::handle_event()
75 gain->config.level = get_value();
76 gain->send_configure_change();