Fixed spelling: It should be separator

This commit is contained in:
Andre Polykanine A.K.A. Menelion Elensúlë 2018-02-21 00:32:41 +02:00
parent dd94cd691b
commit 39cd73baa9
1 changed files with 8 additions and 8 deletions

View File

@ -3689,8 +3689,8 @@ class MainWindow : Window {
void New() {} void New() {}
void Open() {} void Open() {}
void Save() {} void Save() {}
@seperator @separator
void eXit() @accelerator("Alt+F4") { void Exit() @accelerator("Alt+F4") {
window.close(); window.close();
} }
} }
@ -3699,7 +3699,7 @@ class MainWindow : Window {
void Undo() { void Undo() {
undo(); undo();
} }
@seperator @separator
void Cut() {} void Cut() {}
void Copy() {} void Copy() {}
void Paste() {} void Paste() {}
@ -3733,7 +3733,7 @@ class MainWindow : Window {
static if(__traits(compiles, triggering = &__traits(getMember, t, memberName))) { static if(__traits(compiles, triggering = &__traits(getMember, t, memberName))) {
.menu menu; .menu menu;
.toolbar toolbar; .toolbar toolbar;
bool seperator; bool separator;
.accelerator accelerator; .accelerator accelerator;
.icon icon; .icon icon;
string label; string label;
@ -3742,8 +3742,8 @@ class MainWindow : Window {
menu = attr; menu = attr;
else static if(is(typeof(attr) == .toolbar)) else static if(is(typeof(attr) == .toolbar))
toolbar = attr; toolbar = attr;
else static if(is(attr == .seperator)) else static if(is(attr == .separator))
seperator = true; separator = true;
else static if(is(typeof(attr) == .accelerator)) else static if(is(typeof(attr) == .accelerator))
accelerator = attr; accelerator = attr;
else static if(is(typeof(attr) == .icon)) else static if(is(typeof(attr) == .icon))
@ -3776,7 +3776,7 @@ class MainWindow : Window {
mcs[menu.name] = mc; mcs[menu.name] = mc;
} }
if(seperator) if(separator)
mc.addSeparator(); mc.addSeparator();
mc.addItem(new MenuItem(action)); mc.addItem(new MenuItem(action));
} }
@ -6478,7 +6478,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/bb760476%28v=vs.85%29.as
// These are all for setMenuAndToolbarFromAnnotatedCode // These are all for setMenuAndToolbarFromAnnotatedCode
/// This item in the menu will be preceded by a separator line /// This item in the menu will be preceded by a separator line
struct seperator {} struct separator {}
/// Program-wide keyboard shortcut to trigger the action /// Program-wide keyboard shortcut to trigger the action
struct accelerator { string keyString; } struct accelerator { string keyString; }
/// tells which menu the action will be on /// tells which menu the action will be on