#define __ardour_basic_ui_h__
#include <string>
+#include <stdint.h>
-#include <jack/types.h>
-#include "control_protocol/timecode.h"
+#include "pbd/signals.h"
+
+#include "ardour/types.h"
+
+#include "timecode/time.h"
+
+#include "control_protocol/visibility.h"
namespace ARDOUR {
class Session;
+ class SessionEvent;
}
-class BasicUI {
+class LIBCONTROLCP_API BasicUI {
public:
BasicUI (ARDOUR::Session&);
virtual ~BasicUI ();
- void add_marker ();
+ void add_marker (const std::string& = std::string());
void register_thread (std::string name);
void loop_toggle ();
void access_action ( std::string action_path );
- static sigc::signal<void,std::string,std::string> AccessAction;
+ static PBD::Signal2<void,std::string,std::string> AccessAction;
void goto_start ();
void goto_end ();
void rewind ();
void set_transport_speed (double speed);
double get_transport_speed ();
- jack_nframes_t transport_frame ();
- void locate (jack_nframes_t frame, bool play = false);
+ ARDOUR::framepos_t transport_frame ();
+ void locate (ARDOUR::framepos_t frame, bool play = false);
bool locating ();
bool locked ();
void rec_enable_toggle ();
void toggle_all_rec_enables ();
- jack_nframes_t timecode_frames_per_hour ();
+ ARDOUR::framecnt_t timecode_frames_per_hour ();
- void timecode_time (jack_nframes_t where, Timecode::Time&);
- void timecode_to_sample (Timecode::Time& timecode, jack_nframes_t& sample, bool use_offset, bool use_subframes) const;
- void sample_to_timecode (jack_nframes_t sample, Timecode::Time& timecode, bool use_offset, bool use_subframes) const;
+ void timecode_time (framepos_t where, Timecode::Time&);
+ void timecode_to_sample (Timecode::Time& timecode, framepos_t & sample, bool use_offset, bool use_subframes) const;
+ void sample_to_timecode (framepos_t sample, Timecode::Time& timecode, bool use_offset, bool use_subframes) const;
protected:
BasicUI ();