| 1 |
/* |
| 2 |
* Audacity: A Digital Audio Editor |
| 3 |
*/ |
| 4 |
import QtQuick 2.15 |
| 5 |
import QtQuick.Controls 2.15 |
| 6 |
import QtQuick.Layouts 1.15 |
| 7 |
|
| 8 |
import Muse.Ui 1.0 |
| 9 |
import Muse.UiComponents 1.0 |
| 10 |
|
| 11 |
import Audacity.ProjectScene 1.0 |
| 12 |
|
| 13 |
StyledPopupView { |
| 14 |
id: root |
| 15 |
|
| 16 |
contentWidth: 280 |
| 17 |
contentHeight: 600 |
| 18 |
|
| 19 |
PlaybackToolBarCustomiseModel { |
| 20 |
id: customiseModel |
| 21 |
} |
| 22 |
|
| 23 |
onOpened: { |
| 24 |
customiseModel.load() |
| 25 |
view.focusOnFirst() |
| 26 |
} |
| 27 |
|
| 28 |
onClosed: { |
| 29 |
view.clearFocus() |
| 30 |
} |
| 31 |
|
| 32 |
ColumnLayout { |
| 33 |
anchors.fill: parent |
| 34 |
|
| 35 |
spacing: 0 |
| 36 |
|
| 37 |
StyledTextLabel { |
| 38 |
id: titleLabel |
| 39 |
Layout.alignment: Qt.AlignTop |
| 40 |
Layout.fillWidth: true |
| 41 |
Layout.topMargin: 8 |
| 42 |
|
| 43 |
text: qsTrc("projectscene", "Customize toolbar") |
| 44 |
horizontalAlignment: Text.AlignLeft |
| 45 |
font: ui.theme.largeBodyBoldFont |
| 46 |
} |
| 47 |
|
| 48 |
CustomiseView { |
| 49 |
id: view |
| 50 |
Layout.fillHeight: true |
| 51 |
Layout.fillWidth: true |
| 52 |
Layout.topMargin: 12 |
| 53 |
|
| 54 |
model: customiseModel |
| 55 |
|
| 56 |
navigationPanel.section: root.navigationSection |
| 57 |
navigationPanel.order: 2 |
| 58 |
navigationPanel.accessible.name: titleLabel.text |
| 59 |
} |
| 60 |
} |
| 61 |
} |