2021-02-13 12:39:32 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ardour_gtk_bbt_marker_dialog_h__
|
|
|
|
#define __ardour_gtk_bbt_marker_dialog_h__
|
|
|
|
|
|
|
|
#include <gtkmm/box.h>
|
2022-06-03 15:20:13 -04:00
|
|
|
#include <gtkmm/entry.h>
|
2021-02-13 12:39:32 -05:00
|
|
|
#include <gtkmm/label.h>
|
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
|
|
|
|
#include "temporal/tempo.h"
|
|
|
|
#include "temporal/types.h"
|
|
|
|
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "audio_clock.h"
|
|
|
|
|
|
|
|
class BBTMarkerDialog : public ArdourDialog
|
|
|
|
{
|
|
|
|
public:
|
2022-12-05 13:15:53 -05:00
|
|
|
BBTMarkerDialog (Temporal::timepos_t const &, Temporal::BBT_Time const&);
|
2022-08-17 18:27:53 -04:00
|
|
|
BBTMarkerDialog (Temporal::MusicTimePoint&);
|
2021-02-13 12:39:32 -05:00
|
|
|
|
|
|
|
Temporal::timepos_t position() const;
|
|
|
|
Temporal::BBT_Time bbt_value () const;
|
2022-06-03 15:20:13 -04:00
|
|
|
std::string name() const;
|
2021-02-13 12:39:32 -05:00
|
|
|
|
|
|
|
private:
|
2022-08-17 18:27:53 -04:00
|
|
|
void init (bool add);
|
2021-02-13 12:39:32 -05:00
|
|
|
Temporal::MusicTimePoint* _point;
|
2022-12-05 13:15:53 -05:00
|
|
|
Temporal::timepos_t _position;
|
|
|
|
Temporal::BBT_Time _bbt;
|
2021-02-13 12:39:32 -05:00
|
|
|
|
|
|
|
Gtk::HBox bbt_box;
|
|
|
|
Gtk::SpinButton bar_entry;
|
|
|
|
Gtk::SpinButton beat_entry;
|
|
|
|
Gtk::Label entry_label;
|
2022-06-03 15:20:13 -04:00
|
|
|
|
|
|
|
Gtk::HBox name_box;
|
|
|
|
Gtk::Entry name_entry;
|
|
|
|
Gtk::Label name_label;
|
2021-02-13 12:39:32 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_gtk_bbt_marker_dialog_h__ */
|