mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
149 lines
3.1 KiB
Text
149 lines
3.1 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $MusicusWorkEditor: Adw.NavigationPage {
|
|
title: _("Work");
|
|
|
|
Adw.ToolbarView {
|
|
[top]
|
|
Adw.HeaderBar header_bar {}
|
|
|
|
Gtk.ScrolledWindow {
|
|
Adw.Clamp {
|
|
Gtk.Box {
|
|
orientation: vertical;
|
|
margin-bottom: 24;
|
|
margin-start: 12;
|
|
margin-end: 12;
|
|
|
|
Gtk.Label {
|
|
label: _("Name");
|
|
xalign: 0;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"heading"
|
|
]
|
|
}
|
|
|
|
$MusicusTranslationEditor name_editor {
|
|
margin-top: 12;
|
|
}
|
|
|
|
Gtk.Label {
|
|
label: _("Composers");
|
|
xalign: 0;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"heading"
|
|
]
|
|
}
|
|
|
|
Gtk.ListBox composer_list {
|
|
selection-mode: none;
|
|
margin-top: 12;
|
|
|
|
styles [
|
|
"boxed-list"
|
|
]
|
|
|
|
Adw.ActionRow {
|
|
title: _("Add _composer");
|
|
use-underline: true;
|
|
activatable: true;
|
|
activated => $add_person() swapped;
|
|
|
|
[prefix]
|
|
Gtk.Box select_person_box {
|
|
Gtk.Image {
|
|
icon-name: "list-add-symbolic";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Gtk.Label {
|
|
label: _("Structure");
|
|
xalign: 0;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"heading"
|
|
]
|
|
}
|
|
|
|
Gtk.ListBox part_list {
|
|
selection-mode: none;
|
|
margin-top: 12;
|
|
|
|
styles [
|
|
"boxed-list"
|
|
]
|
|
|
|
Adw.ActionRow {
|
|
title: _("Add _part");
|
|
use-underline: true;
|
|
activatable: true;
|
|
activated => $add_part() swapped;
|
|
|
|
[prefix]
|
|
Gtk.Image {
|
|
icon-name: "list-add-symbolic";
|
|
}
|
|
}
|
|
}
|
|
|
|
Gtk.Label {
|
|
label: _("Instruments");
|
|
xalign: 0;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"heading"
|
|
]
|
|
}
|
|
|
|
Gtk.ListBox instrument_list {
|
|
selection-mode: none;
|
|
margin-top: 12;
|
|
margin-bottom: 24;
|
|
|
|
styles [
|
|
"boxed-list"
|
|
]
|
|
|
|
Adw.ActionRow {
|
|
title: _("Add _instrument");
|
|
use-underline: true;
|
|
activatable: true;
|
|
activated => $add_instrument() swapped;
|
|
|
|
[prefix]
|
|
Gtk.Box select_instrument_box {
|
|
Gtk.Image {
|
|
icon-name: "list-add-symbolic";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Gtk.ListBox {
|
|
selection-mode: none;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"boxed-list"
|
|
]
|
|
|
|
Adw.ButtonRow save_row {
|
|
title: _("_Create work");
|
|
use-underline: true;
|
|
activated => $save() swapped;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|