along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __ardour_location_ui_h__
#define __ardour_location_ui_h__
-#include <gtk--.h>
+#include <gtkmm/box.h>
+#include <gtkmm/checkbutton.h>
+#include <gtkmm/button.h>
+#include <gtkmm/table.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/label.h>
+
#include <ardour/location.h>
#include <ardour/session.h>
#include "ardour_dialog.h"
-#include "keyboard_target.h"
namespace ARDOUR {
class LocationStack;
void set_number (int);
- SigC::Signal1<void,ARDOUR::Location*> remove_requested;
- SigC::Signal0<void> redraw_ranges;
+ sigc::signal<void,ARDOUR::Location*> remove_requested;
+ sigc::signal<void> redraw_ranges;
protected:
void scms_toggled ();
void preemph_toggled ();
- gint entry_focus_event (GdkEventFocus* ev);
-
void end_changed (ARDOUR::Location *);
void start_changed (ARDOUR::Location *);
void name_changed (ARDOUR::Location *);
void location_changed (ARDOUR::Location *);
void flags_changed (ARDOUR::Location *, void *src);
- SigC::Connection start_changed_connection;
- SigC::Connection end_changed_connection;
- SigC::Connection name_changed_connection;
- SigC::Connection changed_connection;
- SigC::Connection flags_changed_connection;
+ sigc::connection start_changed_connection;
+ sigc::connection end_changed_connection;
+ sigc::connection name_changed_connection;
+ sigc::connection changed_connection;
+ sigc::connection flags_changed_connection;
};
void set_session (ARDOUR::Session *);
private:
-
-
- ARDOUR::LocationStack *locations;
-
+ ARDOUR::LocationStack* locations;
+
void session_gone();
-
Gtk::VBox location_vpacker;
Gtk::HBox location_hpacker;
void location_removed (ARDOUR::Location *);
void location_added (ARDOUR::Location *);
void map_locations (ARDOUR::Locations::LocationList&);
+
+ protected:
+ bool on_delete_event (GdkEventAny*);
};
#endif // __ardour_location_ui_h__