1
// Copyright (C) 2006-2007 W. Pantke <gnome-color-chooser@punk-ass-bitch.org>
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 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.
17
#ifndef _FILECHOOSER_BUTTON_H
18
#define _FILECHOOSER_BUTTON_H
20
#include "treehandler.h"
21
#include "modwidget.h"
23
#include <libglademm.h>
25
class FileChooserButton : public Gtk::FileChooserButton, public ModWidget
28
FileChooserButton(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
29
virtual ~FileChooserButton();
30
void init(int id, TreeHandler* config, std::string image_path);
32
void on_changed_preview();
35
Gtk::Image *preview_image;
36
std::string image_path;
40
#endif // _FILECHOOSER_BUTTON_H