increase threshold for drag-playhead-does-vertical-zoom
[ardour2.git] / gtk2_ardour / export_preset_selector.h
bloba57fc83aad9f1fbdc761e44c96e0ea768d9778ef
1 /*
2 Copyright (C) 2008 Paul Davis
3 Author: Sakari Bergen
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.
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.
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.
21 #ifndef __export_preset_selector_h__
22 #define __export_preset_selector_h__
24 #include <sigc++/signal.h>
25 #include <gtkmm.h>
27 #include "ardour/export_profile_manager.h"
29 class ExportPresetSelector : public Gtk::HBox
32 public:
34 ExportPresetSelector ();
36 void set_manager (boost::shared_ptr<ARDOUR::ExportProfileManager> manager);
38 sigc::signal<void> CriticalSelectionChanged;
40 private:
42 typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;
43 typedef ARDOUR::ExportPresetPtr PresetPtr;
44 typedef ARDOUR::ExportProfileManager::PresetList PresetList;
46 ManagerPtr profile_manager;
47 sigc::connection select_connection;
49 void sync_with_manager ();
50 void update_selection ();
51 void create_new ();
52 void save_current ();
53 void remove_current ();
55 struct PresetCols : public Gtk::TreeModelColumnRecord
57 public:
58 Gtk::TreeModelColumn<PresetPtr> preset;
59 Gtk::TreeModelColumn<std::string> label;
61 PresetCols () { add (preset); add (label); }
63 PresetCols cols;
64 Glib::RefPtr<Gtk::ListStore> list;
65 PresetPtr current;
66 PresetPtr previous;
68 Gtk::Label label;
69 Gtk::ComboBoxEntry entry;
71 Gtk::Button save_button;
72 Gtk::Button remove_button;
73 Gtk::Button new_button;
76 #endif