3 * Copyright (C) 2006 Pierre Dumuid
4 * Copyright (C) 1997-2012 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include "awindowgui.h"
26 #include "effectlist.h"
30 #include "localsession.h"
32 #include "pluginserver.h"
35 EffectTipItem::EffectTipItem(AWindowGUI *gui)
36 : BC_MenuItem("","i",'i')
41 EffectTipItem::~EffectTipItem()
46 int EffectTipItem::handle_event()
48 int v = !gui->tip_info ? 1 : 0;
53 void EffectTipItem::update(int v)
55 if( v >= 0 ) gui->tip_info = v;
56 else v = gui->tip_info;
57 const char *text = v ? _("Info off") : _("Info on");
62 EffectListMenu::EffectListMenu(MWindow *mwindow, AWindowGUI *gui)
63 : BC_PopupMenu(0, 0, 0, "", 0)
65 this->mwindow = mwindow;
69 EffectListMenu:: ~EffectListMenu()
73 void EffectListMenu::create_objects()
75 add_item(info = new EffectTipItem(gui));
76 add_item(format = new AWindowListFormat(mwindow, gui));
77 add_item(new AWindowListSort(mwindow, gui));
80 void EffectListMenu::update()