1 /*  cdrdao - write audio CD-Rs in disc-at-once mode
2  *
3  *  Copyright (C) 2007  Denis Leroy
4  *
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.
9  *
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.
14  *
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef __PREFERENCES_DIALOG_H
21 #define __PREFERENCES_DIALOG_H
22 
23 #include <gtkmm.h>
24 #include <libglademm.h>
25 #include <gconfmm.h>
26 
27 class PreferencesDialog : public Gtk::Dialog
28 {
29  public:
30     PreferencesDialog(BaseObjectType* cobject,
31 		      const Glib::RefPtr<Gnome::Glade::Xml>&);
32     virtual ~PreferencesDialog();
33 
34     void show();
35 
36  protected:
37     void readFromGConf();
38     bool saveToGConf();
39     void on_button_apply();
40     void on_button_cancel();
41     void on_button_ok();
42     void on_button_browse();
43     void on_button_browse_cancel();
44     void on_button_browse_open();
45 
46     Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
47     Glib::RefPtr<Gnome::Conf::Client> m_refClient;
48 
49     Gtk::Button* _applyButton;
50     Gtk::Button* _cancelButton;
51     Gtk::Button* _okButton;
52     Gtk::Entry*  _tempDirEntry;
53     Gtk::FileChooserDialog* _tempDirDialog;
54     Gtk::Button* _browseButton;
55     Gtk::Button* _browseCancel;
56     Gtk::Button* _browseOpen;
57 };
58 
59 #endif
60