1
/* Copyright (C) 2004-2006 Bart 'plors' Hakvoort
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Library General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
#ifndef HBOX_OPERATIONS
19
#define HBOX_OPERATIONS
21
#include "../include/Operation.h"
23
#include <gtkmm/box.h>
24
#include <gtkmm/liststore.h>
25
#include <gtkmm/menu.h>
26
#include <gtkmm/scrolledwindow.h>
27
#include <gtkmm/treeview.h>
32
class HBoxOperations : public Gtk::HBox
38
void load_operations( const std::vector<Operation *> operations ) ;
41
sigc::signal< void > signal_undo ;
42
sigc::signal< void > signal_clear ;
43
sigc::signal< void > signal_apply ;
44
sigc::signal< void > signal_close ;
47
bool on_signal_button_press_event( GdkEventButton * event ) ;
53
Gtk::Menu menu_popup ;
54
Gtk::ScrolledWindow scrollwindow ;
55
Gtk::TreeView treeview_operations ;
56
Glib::RefPtr<Gtk::ListStore> liststore_operations ;
58
struct treeview_operations_Columns : public Gtk::TreeModelColumnRecord
60
Gtk::TreeModelColumn<Glib::ustring> operation_description;
61
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > operation_icon;
63
treeview_operations_Columns()
65
add( operation_description );
66
add( operation_icon );
69
treeview_operations_Columns treeview_operations_columns;
74
#endif //HBOX_OPERATIONS