bbt_marker_dialog: improve layout + spacings
This commit is contained in:
parent
b2a6fb70b4
commit
037de53c3f
|
@ -34,7 +34,8 @@ BBTMarkerDialog::BBTMarkerDialog (timepos_t const & pos, BBT_Time const& bbt)
|
||||||
, _point (0)
|
, _point (0)
|
||||||
, _position (pos)
|
, _position (pos)
|
||||||
, _bbt (bbt)
|
, _bbt (bbt)
|
||||||
, entry_label (_("BBT"))
|
, bar_label (_("Bar"))
|
||||||
|
, beat_label (_("Beat"))
|
||||||
, name_label (_("Name"))
|
, name_label (_("Name"))
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -46,7 +47,8 @@ BBTMarkerDialog::BBTMarkerDialog (MusicTimePoint& p)
|
||||||
, _point (&p)
|
, _point (&p)
|
||||||
, _position (timepos_t::from_superclock (p.sclock()))
|
, _position (timepos_t::from_superclock (p.sclock()))
|
||||||
, _bbt (TempoMap::use()->bbt_at (_position).round_to_beat ())
|
, _bbt (TempoMap::use()->bbt_at (_position).round_to_beat ())
|
||||||
, entry_label (_("BBT"))
|
, bar_label (_("Bar"))
|
||||||
|
, beat_label (_("Beat"))
|
||||||
, name_label (_("Name"))
|
, name_label (_("Name"))
|
||||||
{
|
{
|
||||||
init (false);
|
init (false);
|
||||||
|
@ -60,15 +62,19 @@ BBTMarkerDialog::init (bool add)
|
||||||
bar_entry.set_digits (0);
|
bar_entry.set_digits (0);
|
||||||
beat_entry.set_digits (0);
|
beat_entry.set_digits (0);
|
||||||
|
|
||||||
bbt_box.pack_start (entry_label);
|
bar_label.set_alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER);
|
||||||
bbt_box.pack_start (bar_entry);
|
beat_label.set_alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER);
|
||||||
bbt_box.pack_start (beat_entry);
|
|
||||||
|
bbt_box.pack_start (bar_label, true, true, 2);
|
||||||
|
bbt_box.pack_start (bar_entry, true, true, 2);
|
||||||
|
bbt_box.pack_start (beat_label, true, true, 2);
|
||||||
|
bbt_box.pack_start (beat_entry, true, true, 2);
|
||||||
|
|
||||||
bar_entry.set_value (_bbt.bars);
|
bar_entry.set_value (_bbt.bars);
|
||||||
beat_entry.set_value (_bbt.beats);
|
beat_entry.set_value (_bbt.beats);
|
||||||
|
|
||||||
name_box.pack_start (name_label);
|
name_box.pack_start (name_label, true, true, 4);
|
||||||
name_box.pack_start (name_entry);
|
name_box.pack_start (name_entry, true, true);
|
||||||
|
|
||||||
if (_point) {
|
if (_point) {
|
||||||
name_entry.set_text (_point->name());
|
name_entry.set_text (_point->name());
|
||||||
|
|
|
@ -49,7 +49,8 @@ private:
|
||||||
Gtk::HBox bbt_box;
|
Gtk::HBox bbt_box;
|
||||||
Gtk::SpinButton bar_entry;
|
Gtk::SpinButton bar_entry;
|
||||||
Gtk::SpinButton beat_entry;
|
Gtk::SpinButton beat_entry;
|
||||||
Gtk::Label entry_label;
|
Gtk::Label bar_label;
|
||||||
|
Gtk::Label beat_label;
|
||||||
|
|
||||||
Gtk::HBox name_box;
|
Gtk::HBox name_box;
|
||||||
Gtk::Entry name_entry;
|
Gtk::Entry name_entry;
|
||||||
|
|
Loading…
Reference in New Issue