3 * Copyright (C) 2014 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "bcdisplayinfo.h"
25 #include "edgewindow.h"
28 EdgeWindow::EdgeWindow(Edge *plugin)
29 : PluginClientWindow(plugin,
36 this->plugin = plugin;
39 EdgeWindow::~EdgeWindow()
43 void EdgeWindow::create_objects()
45 int x = xS(10), y = yS(10);
46 int margin = plugin->get_theme()->widget_border;
51 add_subwindow(title = new BC_Title(x,
54 y += title->get_h() + margin;
55 add_subwindow(amount = new EdgeAmount(this,
59 y += amount->get_h() + margin;
70 EdgeAmount::EdgeAmount(EdgeWindow *gui,
81 gui->plugin->config.amount,
87 int EdgeAmount::handle_event()
89 gui->plugin->config.amount = get_value();
90 gui->plugin->send_configure_change();