1 #include "bcdisplayinfo.h"
2 #include "despikewindow.h"
7 #define _(String) gettext(String)
8 #define gettext_noop(String) String
9 #define N_(String) gettext_noop (String)
12 PLUGIN_THREAD_OBJECT(Despike, DespikeThread, DespikeWindow)
19 DespikeWindow::DespikeWindow(Despike *despike, int x, int y)
20 : BC_Window(despike->gui_string,
31 this->despike = despike;
34 DespikeWindow::~DespikeWindow()
38 int DespikeWindow::create_objects()
41 add_tool(new BC_Title(5, y, _("Maximum level:")));
43 add_tool(level = new DespikeLevel(despike, x, y));
45 add_tool(new BC_Title(5, y, _("Maximum rate of change:")));
47 add_tool(slope = new DespikeSlope(despike, x, y));
53 int DespikeWindow::close_event()
55 // Set result to 1 to indicate a client side close
64 DespikeLevel::DespikeLevel(Despike *despike, int x, int y)
72 despike->config.level)
74 this->despike = despike;
76 int DespikeLevel::handle_event()
78 despike->config.level = get_value();
79 despike->send_configure_change();
83 DespikeSlope::DespikeSlope(Despike *despike, int x, int y)
91 despike->config.slope)
93 this->despike = despike;
95 int DespikeSlope::handle_event()
97 despike->config.slope = get_value();
98 despike->send_configure_change();