/* Copyright (C) 2004-2006 Bart 'plors' Hakvoort * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ #ifndef GPARTED_HBOXOPERATIONS_H #define GPARTED_HBOXOPERATIONS_H #include "../include/Operation.h" #include #include #include #include #include namespace GParted { class HBoxOperations : public Gtk::HBox { public: HBoxOperations() ; ~HBoxOperations() ; void load_operations( const std::vector operations ) ; void clear() ; sigc::signal< void > signal_undo ; sigc::signal< void > signal_clear ; sigc::signal< void > signal_apply ; sigc::signal< void > signal_close ; private: bool on_signal_button_press_event( GdkEventButton * event ) ; void on_undo() ; void on_clear() ; void on_apply() ; void on_close() ; Gtk::Menu menu_popup ; Gtk::ScrolledWindow scrollwindow ; Gtk::TreeView treeview_operations ; Glib::RefPtr liststore_operations ; struct treeview_operations_Columns : public Gtk::TreeModelColumnRecord { Gtk::TreeModelColumn operation_description; Gtk::TreeModelColumn< Glib::RefPtr > operation_icon; treeview_operations_Columns() { add( operation_description ); add( operation_icon ); } }; treeview_operations_Columns treeview_operations_columns; }; } //GParted #endif /* GPARTED_HBOXOPERATIONS_H */