Skip to content

Commit 538ebe0

Browse files
committed
improved improved context menus
redesigned the redesign for eric
1 parent 66f1864 commit 538ebe0

File tree

4 files changed

+54
-50
lines changed

4 files changed

+54
-50
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu>
3-
<label id="contextmenuEventKindLabel" styleName="menuLabel" style="padding: 2px;" text="Event Kind: " />
4-
<label id="contextmenuEventKind" styleName="menuLabel" style="padding: 2px;" text="Event Kind" />
5-
<property-grid>
6-
<property id="contextmenuPosition" label="Time (MS)" type="float" value="0" />
7-
</property-grid>
8-
<dropdown id="contextmenuUnit" text="Milliseconds" value="MILLISECONDS" selectedIndex="0" >
9-
<data>
10-
<item id="MILLISECONDS" text="Milliseconds" />
11-
<item id="STEPS" text="Steps" />
12-
</data>
13-
</dropdown>
2+
<menu width="220px">
3+
<label id="contextmenuEventKindLabel" styleName="menuLabel" style="padding: 2px; padding-left: 12px; padding-top: 8px;" text="Event Kind: " />
4+
<label id="contextmenuEventKind" styleName="menuLabel" style="padding: 2px; padding-left: 12px;" text="Event Kind" />
5+
<grid columns="2">
6+
<dropdown width="50%" id="contextmenuUnit" text="Time (MS)" value="MILLISECONDS" selectedIndex="0" >
7+
<data>
8+
<item id="MILLISECONDS" text="Time (MS)" />
9+
<item id="STEPS" text="Time (Steps)" />
10+
</data>
11+
</dropdown>
12+
<number-stepper width="50%" id="contextmenuPosition" pos="0" />
13+
</grid>
1414
<menu-item id="contextmenuEdit" text="Edit Event" />
1515
<menu-item id="contextmenuDelete" text="Delete Event" shortcutText="Delete" />
1616
</menu>

exclude/data/ui/chart-editor/context-menus/hold-note.xml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu width="220px">
3-
<label id="contextmenuNoteKindLabel" styleName="menuLabel" style="padding: 2px;" text="Hold Note Kind: " />
4-
<label id="contextmenuNoteKind" styleName="menuLabel" style="padding: 2px;" text="Note Kind" />
5-
<menu-separator />
6-
<property-grid>
7-
<property id="contextmenuPosition" label="Time (MS)" type="float" value="0" />
8-
<property id="contextmenuLength" label="Length (MS)" type="float" value="0" />
9-
</property-grid>
10-
<dropdown id="contextmenuUnit" text="Milliseconds" value="MILLISECONDS" selectedIndex="0" >
11-
<data>
12-
<item id="MILLISECONDS" text="Milliseconds" />
13-
<item id="STEPS" text="Steps" />
14-
</data>
15-
</dropdown>
16-
<menu-separator />
2+
<menu width="240px">
3+
<label id="contextmenuNoteKindLabel" styleName="menuLabel" style="padding: 2px; padding-left: 12px; padding-top: 8px;" text="Hold Note Kind: " />
4+
<label id="contextmenuNoteKind" styleName="menuLabel" style="padding: 2px; padding-left: 12px;" text="Note Kind" />
5+
<grid columns="2">
6+
<dropdown width="50%" id="contextmenuPosUnit" text="Time (MS)" value="MILLISECONDS" selectedIndex="0" >
7+
<data>
8+
<item id="MILLISECONDS" text="Time (MS)" />
9+
<item id="STEPS" text="Time (Steps)" />
10+
</data>
11+
</dropdown>
12+
<number-stepper width="50%" id="contextmenuPosition" pos="0" />
13+
<dropdown width="50%" id="contextmenuLengthUnit" text="Time (MS)" value="MILLISECONDS" selectedIndex="0" >
14+
<data>
15+
<item id="MILLISECONDS" text="Length (MS)" />
16+
<item id="STEPS" text="Length (Steps)" />
17+
</data>
18+
</dropdown>
19+
<number-stepper width="50%" id="contextmenuLength" pos="0" />
20+
</grid>
1721
<menu-item id="contextmenuFlip" text="Flip Note" shortcutText="Ctrl+F" />
1822
<menu-item id="contextmenuRemoveHold" text="Remove Hold" shortcutText="Right Click" />
1923
<menu-item id="contextmenuDelete" text="Delete Note" shortcutText="Delete" />

exclude/data/ui/chart-editor/context-menus/note.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu>
3-
<label id="contextmenuNoteKindLabel" styleName="menuLabel" style="padding: 2px;" text="Note Kind: " />
4-
<label id="contextmenuNoteKind" styleName="menuLabel" style="padding: 2px;" text="Note Kind" />
5-
<property-grid>
6-
<property id="contextmenuPosition" label="Time (MS)" type="float" value="0" />
7-
</property-grid>
8-
<dropdown id="contextmenuUnit" text="Milliseconds" value="MILLISECONDS" selectedIndex="0" >
9-
<data>
10-
<item id="MILLISECONDS" text="Milliseconds" />
11-
<item id="STEPS" text="Steps" />
12-
</data>
13-
</dropdown>
2+
<menu width="220px">
3+
<label id="contextmenuNoteKindLabel" styleName="menuLabel" style="padding: 2px; padding-left: 12px; padding-top: 8px;" text="Note Kind: " />
4+
<label id="contextmenuNoteKind" styleName="menuLabel" style="padding: 2px; padding-left: 12px;" text="Note Kind" />
5+
<grid columns="2">
6+
<dropdown width="50%" id="contextmenuUnit" text="Time (MS)" value="MILLISECONDS" selectedIndex="0" >
7+
<data>
8+
<item id="MILLISECONDS" text="Time (MS)" />
9+
<item id="STEPS" text="Time (Steps)" />
10+
</data>
11+
</dropdown>
12+
<number-stepper width="50%" id="contextmenuPosition" pos="0" />
13+
</grid>
1414
<menu-item id="contextmenuFlip" text="Flip Note" shortcutText="Ctrl+F" />
1515
<menu-item id="contextmenuAddHold" text="Add Hold" />
1616
<menu-item id="contextmenuDelete" text="Delete Note" shortcutText="Delete" />

exclude/data/ui/chart-editor/context-menus/selection.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu width="220px">
3-
<property-grid>
4-
<property id="contextmenuOffset" label="Offset (MS)" type="float" value="0" />
5-
</property-grid>
6-
<dropdown id="contextmenuUnit" text="Milliseconds" value="MILLISECONDS" selectedIndex="0" >
7-
<data>
8-
<item id="MILLISECONDS" text="Milliseconds" />
9-
<item id="STEPS" text="Steps" />
10-
</data>
11-
</dropdown>
12-
<menu-item id="contextmenuOffsetMove" text="Offset Selection" />
2+
<menu width="240px">
3+
<grid columns="2">
4+
<dropdown width="50%" id="contextmenuUnit" text="Offset (MS)" value="MILLISECONDS" selectedIndex="0" >
5+
<data>
6+
<item id="MILLISECONDS" text="Offset (MS)" />
7+
<item id="STEPS" text="Offset (Steps)" />
8+
</data>
9+
</dropdown>
10+
<number-stepper width="50%" id="contextmenuOffset" pos="0" />
11+
</grid>
12+
<menu-item id="contextmenuOffsetMove" text="Offset Selection" />
1313
<menu-separator />
1414
<menu-item id="contextmenuCut" text="Cut Selection" shortcutText="Ctrl+X" />
1515
<menu-item id="contextmenuCopy" text="Copy Selection" shortcutText="Ctrl+C" />

0 commit comments

Comments
 (0)