Rename libmusictime libtimecode (consistent with already used namespace "Timecode").
[ardour.git] / libs / surfaces / control_protocol / control_protocol / basic_ui.h
index 23b274ca01f56fbc4080e6b1cc538e7d28dd3a9b..3bd5ea1c0a30b99ebfc5ca3f220df32fd299e559 100644 (file)
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_basic_ui_h__
 #define __ardour_basic_ui_h__
 
 #include <string>
+#include <stdint.h>
+
+#include "pbd/signals.h"
+
+#include "ardour/types.h"
 
 #include <jack/types.h>
-#include <control_protocol/smpte.h>
+
+#include "timecode/time.h"
 
 namespace ARDOUR {
        class Session;
+       class SessionEvent;
 }
 
 class BasicUI {
@@ -43,17 +49,19 @@ class BasicUI {
        /* transport control */
 
        void loop_toggle ();
+       void access_action ( std::string action_path );
+       static PBD::Signal2<void,std::string,std::string> AccessAction;
        void goto_start ();
        void goto_end ();
        void rewind ();
        void ffwd ();
        void transport_stop ();
        void transport_play (bool jump_back = true);
-       void set_transport_speed (float speed);
-       float get_transport_speed ();
+       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 ();
 
@@ -71,11 +79,11 @@ class BasicUI {
        void rec_enable_toggle ();
        void toggle_all_rec_enables ();
 
-       jack_nframes_t smpte_frames_per_hour ();
+       ARDOUR::framecnt_t timecode_frames_per_hour ();
 
-       void smpte_time (jack_nframes_t where, SMPTE::Time&);
-       void smpte_to_sample (SMPTE::Time& smpte, jack_nframes_t& sample, bool use_offset, bool use_subframes) const;
-       void sample_to_smpte (jack_nframes_t sample, SMPTE::Time& smpte, 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 ();