ardour
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TempoDialog Class Reference

#include <tempo_dialog.h>

Inheritance diagram for TempoDialog:
ArdourDialog ARDOUR::SessionHandlePtr

Public Member Functions

 TempoDialog (ARDOUR::TempoMap &, framepos_t, const std::string &action)
 
 TempoDialog (ARDOUR::TempoSection &, const std::string &action)
 
double get_bpm ()
 
double get_note_type ()
 
bool get_bbt_time (Timecode::BBT_Time &)
 
- Public Member Functions inherited from ArdourDialog
 ArdourDialog (std::string title, bool modal=false, bool use_separator=false)
 
 ArdourDialog (Gtk::Window &parent, std::string title, bool modal=false, bool use_separator=false)
 
 ~ArdourDialog ()
 
bool on_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
bool on_delete_event (GdkEventAny *)
 
void on_unmap ()
 
void on_show ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual void set_session (ARDOUR::Session *)
 

Private Types

typedef std::map< std::string,
float > 
NoteTypes
 

Private Member Functions

void init (const Timecode::BBT_Time &start, double, double, bool)
 
bool is_user_input_valid () const
 
void bpm_changed ()
 
bool bpm_button_press (GdkEventButton *)
 
bool bpm_button_release (GdkEventButton *)
 
bool entry_key_release (GdkEventKey *)
 
void pulse_change ()
 
bool tap_tempo_button_press (GdkEventButton *)
 
bool tap_tempo_focus_out (GdkEventFocus *)
 

Private Attributes

NoteTypes note_types
 
bool tapped
 
gint64 last_tap
 
double average_interval
 
Gtk::ComboBoxText pulse_selector
 
Gtk::Adjustment bpm_adjustment
 
Gtk::SpinButton bpm_spinner
 
Gtk::Entry when_bar_entry
 
Gtk::Entry when_beat_entry
 
Gtk::Label when_bar_label
 
Gtk::Label when_beat_label
 
Gtk::Label pulse_selector_label
 
Gtk::Button tap_tempo_button
 

Additional Inherited Members

- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 38 of file tempo_dialog.h.

Member Typedef Documentation

typedef std::map<std::string,float> TempoDialog::NoteTypes
private

Definition at line 59 of file tempo_dialog.h.

Constructor & Destructor Documentation

TempoDialog::TempoDialog ( ARDOUR::TempoMap ,
framepos_t  ,
const std::string &  action 
)
TempoDialog::TempoDialog ( ARDOUR::TempoSection ,
const std::string &  action 
)

Member Function Documentation

bool TempoDialog::bpm_button_press ( GdkEventButton *  )
private

Definition at line 205 of file tempo_dialog.cc.

bool TempoDialog::bpm_button_release ( GdkEventButton *  )
private

Definition at line 211 of file tempo_dialog.cc.

void TempoDialog::bpm_changed ( )
private

Definition at line 199 of file tempo_dialog.cc.

bool TempoDialog::entry_key_release ( GdkEventKey *  )
private

Definition at line 220 of file tempo_dialog.cc.

bool TempoDialog::get_bbt_time ( Timecode::BBT_Time &  requested)

Definition at line 233 of file tempo_dialog.cc.

double TempoDialog::get_bpm ( )

Definition at line 227 of file tempo_dialog.cc.

double TempoDialog::get_note_type ( )

Definition at line 249 of file tempo_dialog.cc.

void TempoDialog::init ( const Timecode::BBT_Time &  start,
double  bpm,
double  note_type,
bool  movable 
)
private

Definition at line 66 of file tempo_dialog.cc.

bool TempoDialog::is_user_input_valid ( ) const
private

Definition at line 191 of file tempo_dialog.cc.

void TempoDialog::pulse_change ( )
private

Definition at line 262 of file tempo_dialog.cc.

bool TempoDialog::tap_tempo_button_press ( GdkEventButton *  ev)
private

Definition at line 268 of file tempo_dialog.cc.

bool TempoDialog::tap_tempo_focus_out ( GdkEventFocus *  )
private

Definition at line 308 of file tempo_dialog.cc.

Member Data Documentation

double TempoDialog::average_interval
private

Definition at line 64 of file tempo_dialog.h.

Gtk::Adjustment TempoDialog::bpm_adjustment
private

Definition at line 67 of file tempo_dialog.h.

Gtk::SpinButton TempoDialog::bpm_spinner
private

Definition at line 68 of file tempo_dialog.h.

gint64 TempoDialog::last_tap
private

Definition at line 63 of file tempo_dialog.h.

NoteTypes TempoDialog::note_types
private

Definition at line 60 of file tempo_dialog.h.

Gtk::ComboBoxText TempoDialog::pulse_selector
private

Definition at line 66 of file tempo_dialog.h.

Gtk::Label TempoDialog::pulse_selector_label
private

Definition at line 73 of file tempo_dialog.h.

Gtk::Button TempoDialog::tap_tempo_button
private

Definition at line 74 of file tempo_dialog.h.

bool TempoDialog::tapped
private

Definition at line 62 of file tempo_dialog.h.

Gtk::Entry TempoDialog::when_bar_entry
private

Definition at line 69 of file tempo_dialog.h.

Gtk::Label TempoDialog::when_bar_label
private

Definition at line 71 of file tempo_dialog.h.

Gtk::Entry TempoDialog::when_beat_entry
private

Definition at line 70 of file tempo_dialog.h.

Gtk::Label TempoDialog::when_beat_label
private

Definition at line 72 of file tempo_dialog.h.


The documentation for this class was generated from the following files: