File size: 3,403 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========
PlaceObj('XTemplate', {
__is_kind_of = "GedApp",
group = "GedApps",
id = "GedHGTesting",
save_in = "Ged",
PlaceObj('XTemplateWindow', {
'__class', "GedApp",
'Title', "Testing Project <Project>, Dev <Dev>",
}, {
PlaceObj('XTemplateWindow', {
'__context', function (parent, context) return "root" end,
'__class', "GedListPanel",
'Id', "idList",
'Title', "Tests",
'ActionContext', "ContentPanelAction",
'Format', "<TestView>",
'FilterName', "HGTestFilterObject",
'FilterClass', "HGTestFilter",
'SelectionBind', "SelectedPreset",
'ItemActionContext', "ContentPanelAction",
}, {
PlaceObj('XTemplateWindow', {
'__context', function (parent, context) return "HGTestFilterObject" end,
'__class', "GedPropPanel",
'Dock', "bottom",
'Title', "Filter",
'EnableSearch', false,
'DisplayWarnings', false,
'EnableUndo', false,
'EnableCollapseDefault', false,
'EnableShowInternalNames', false,
'EnableCollapseCategories', false,
'HideFirstCategory', true,
}),
}),
PlaceObj('XTemplateAction', {
'ActionId', "Save",
'ActionTranslate', false,
'ActionName', "Save",
'ActionIcon', "CommonAssets/UI/Ged/save.tga",
'ActionToolbar', "main",
'ActionToolbarSplit', true,
'ActionShortcut', "Ctrl-S",
'OnAction', function (self, host, source, ...)
CreateRealTimeThread(function()
host:OnSaving()
host:Call("GedPresetSave", "SelectedPreset", "HGTest")
host:Send("GedObjModified", "root")
end)
end,
}),
PlaceObj('XTemplateAction', {
'ActionId', "Refresh",
'ActionTranslate', false,
'ActionName', "Refresh",
'ActionIcon', "CommonAssets/UI/Ged/redo.tga",
'ActionToolbar', "main",
'ActionToolbarSplit', true,
'ActionShortcut', "F5",
'OnAction', function (self, host, source, ...)
host:Send("GedObjModified", "root")
end,
'ActionContexts', {
"ContentPanelAction",
},
}),
PlaceObj('XTemplateAction', {
'ActionId', "Edit",
'ActionTranslate', false,
'ActionName', "Edit Test",
'ActionIcon', "CommonAssets/UI/Ged/rollover-mode.tga",
'ActionToolbar', "main",
'ActionToolbarSplit', true,
'ActionShortcut', "Ctrl-E",
'OnAction', function (self, host, source, ...)
host:Send("GedCallMethod", "SelectedPreset", "OpenEditor")
end,
'ActionContexts', {
"ContentPanelAction",
},
}),
PlaceObj('XTemplateAction', {
'ActionId', "TestSuccess",
'ActionTranslate', false,
'ActionName', "Log test success",
'ActionIcon', "CommonAssets/UI/Icons/thumbs up.tga",
'ActionToolbar', "main",
'ActionShortcut', "Ctrl-O",
'OnAction', function (self, host, source, ...)
host:Send("GedCallMethod", "SelectedPreset", "LogTest", true)
host:Send("GedObjModified", "root")
end,
'ActionContexts', {
"ContentPanelAction",
},
}),
PlaceObj('XTemplateAction', {
'ActionId', "TestFail",
'ActionTranslate', false,
'ActionName', "Log test fail",
'ActionIcon', "CommonAssets/UI/Icons/down thumbs.tga",
'ActionToolbar', "main",
'ActionShortcut', "Ctrl-F",
'OnAction', function (self, host, source, ...)
host:Send("GedCallMethod", "SelectedPreset", "LogTest", false)
host:Send("GedObjModified", "root")
end,
'ActionContexts', {
"ContentPanelAction",
},
}),
}),
})
|