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 <gtkmm.h>
-#include <ardour/location.h>
-#include <ardour/session.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_session (ARDOUR::Session *);
void set_number (int);
+ void focus_name();
sigc::signal<void,ARDOUR::Location*> remove_requested;
sigc::signal<void> redraw_ranges;
void go_button_pressed (LocationPart part);
void clock_changed (LocationPart part);
+ void change_aborted (LocationPart part);
void cd_toggled ();
void hide_toggled ();
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 set_session (ARDOUR::Session *);
- private:
-
-
- ARDOUR::LocationStack *locations;
+ void on_show();
+ private:
+ ARDOUR::LocationStack* locations;
+ ARDOUR::Location *newest_location;
+
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__