diff --git a/RadialMenu/RadialMenu.sln b/RadialMenu/RadialMenu.sln index 21046a2..e551f13 100644 --- a/RadialMenu/RadialMenu.sln +++ b/RadialMenu/RadialMenu.sln @@ -5,6 +5,8 @@ Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "GettingStarted", "GettingSt EndProject Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "AddingColorPickerInsideRadialMenu", "AddingColorPickerInsideRadialMenu\AddingColorPickerInsideRadialMenu.jsproj", "{B68FF94B-8846-4095-82EC-6BE123B12D6A}" EndProject +Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "TextEditingWithRadialMenu", "TextEditingWithRadialMenu\TextEditingWithRadialMenu.jsproj", "{A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -65,6 +67,30 @@ Global {B68FF94B-8846-4095-82EC-6BE123B12D6A}.Release|x86.ActiveCfg = Release|x86 {B68FF94B-8846-4095-82EC-6BE123B12D6A}.Release|x86.Build.0 = Release|x86 {B68FF94B-8846-4095-82EC-6BE123B12D6A}.Release|x86.Deploy.0 = Release|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|ARM.ActiveCfg = Debug|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|ARM.Build.0 = Debug|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|ARM.Deploy.0 = Debug|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x64.ActiveCfg = Debug|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x64.Build.0 = Debug|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x64.Deploy.0 = Debug|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x86.ActiveCfg = Debug|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x86.Build.0 = Debug|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Debug|x86.Deploy.0 = Debug|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|Any CPU.Build.0 = Release|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|Any CPU.Deploy.0 = Release|Any CPU + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|ARM.ActiveCfg = Release|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|ARM.Build.0 = Release|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|ARM.Deploy.0 = Release|ARM + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x64.ActiveCfg = Release|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x64.Build.0 = Release|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x64.Deploy.0 = Release|x64 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x86.ActiveCfg = Release|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x86.Build.0 = Release|x86 + {A4D560E4-937F-40CE-AFAB-80EF2EB27DD6}.Release|x86.Deploy.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/RadialMenu/TextEditingWithRadialMenu/ReadMe.html b/RadialMenu/TextEditingWithRadialMenu/ReadMe.html new file mode 100644 index 0000000..aca2fe8 --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/ReadMe.html @@ -0,0 +1,4 @@ +

+ In this example you can see a functional RadRadialMenu configured to work as a text editing context menu. You can change the font style, font name, font color and font size. + You can also align the text, group it in lists and copy/paste it. To do these things, you have to select a portion of the text and choose the action from the radial menu. +

\ No newline at end of file diff --git a/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu.jsproj b/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu.jsproj new file mode 100644 index 0000000..ca13ff3 --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu.jsproj @@ -0,0 +1,84 @@ + + + + + Debug + AnyCPU + + + Debug + ARM + + + Debug + x64 + + + Debug + x86 + + + Release + AnyCPU + + + Release + ARM + + + Release + x64 + + + Release + x86 + + + + a4d560e4-937f-40ce-afab-80ef2eb27dd6 + + + 11.0 + + + + + + Windows + 8.0 + en-US + TextEditingWithRadialMenu_TemporaryKey.pfx + + + + Designer + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu_TemporaryKey.pfx b/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu_TemporaryKey.pfx new file mode 100644 index 0000000..7fec6f4 Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/TextEditingWithRadialMenu_TemporaryKey.pfx differ diff --git a/RadialMenu/TextEditingWithRadialMenu/css/default.css b/RadialMenu/TextEditingWithRadialMenu/css/default.css new file mode 100644 index 0000000..5edc000 --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/css/default.css @@ -0,0 +1,8 @@ +.mainContent { + margin: 120px 0 250px 120px; +} + +.info { + color: #feef7a; + margin-left: 120px; +} diff --git a/RadialMenu/TextEditingWithRadialMenu/default.html b/RadialMenu/TextEditingWithRadialMenu/default.html new file mode 100644 index 0000000..0d4b78f --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/default.html @@ -0,0 +1,170 @@ + + + + + GettingStarted + + + + + + + + + + + + + + + + + +
+
+ Telerik is a market-leading provider of end-to-end solutions for application development, software testing, agile project management, + reporting, and content management across all major development platforms. Telerik's award-winning software development products enable + enterprises and organizations of every size to generate tangible productivity gains, reduce time-to-market, and stay on time and under + budget. With tens of thousands of users in more than 90 countries around the world, Telerik’s customers include numerous Fortune 2000 + companies, academic institutions, governments, and non-profit organizations. +
+
+
+
+
+ + diff --git a/RadialMenu/TextEditingWithRadialMenu/images/logo.png b/RadialMenu/TextEditingWithRadialMenu/images/logo.png new file mode 100644 index 0000000..e26771c Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/logo.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/images/orderedList.png b/RadialMenu/TextEditingWithRadialMenu/images/orderedList.png new file mode 100644 index 0000000..1e82a72 Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/orderedList.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/images/smalllogo.png b/RadialMenu/TextEditingWithRadialMenu/images/smalllogo.png new file mode 100644 index 0000000..1eb0d9d Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/smalllogo.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/images/splashscreen.png b/RadialMenu/TextEditingWithRadialMenu/images/splashscreen.png new file mode 100644 index 0000000..c951e03 Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/splashscreen.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/images/storelogo.png b/RadialMenu/TextEditingWithRadialMenu/images/storelogo.png new file mode 100644 index 0000000..dcb6727 Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/storelogo.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/images/unorderedList.png b/RadialMenu/TextEditingWithRadialMenu/images/unorderedList.png new file mode 100644 index 0000000..cdd59b6 Binary files /dev/null and b/RadialMenu/TextEditingWithRadialMenu/images/unorderedList.png differ diff --git a/RadialMenu/TextEditingWithRadialMenu/js/default.js b/RadialMenu/TextEditingWithRadialMenu/js/default.js new file mode 100644 index 0000000..f9a820c --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/js/default.js @@ -0,0 +1,95 @@ +// For an introduction to the Blank template, see the following documentation: +// http://go.microsoft.com/fwlink/?LinkId=232509 +(function () { + "use strict"; + + WinJS.Binding.optimizeBindingReferences = true; + + var app = WinJS.Application; + var activation = Windows.ApplicationModel.Activation; + + WinJS.Namespace.define("Events", { + action: WinJS.Utilities.markSupportedForProcessing(function (e) { + var item = e.item; + var action = e.item.id; + if (item.parent) { + // handle nested commands based on the parent item id. The value for the commands + // is represented by the item id. + switch (item.parent.id) { + case "FontName": + document.execCommand("fontName", false, action); + break; + case "FontSize": + var size = parseInt(action); + document.execCommand("fontSize", false, size); + break; + case "FontColor": + document.execCommand("foreColor", false, action); + break; + case "BackColor": + document.execCommand("backColor", false, action); + break; + case "Justify": + document.execCommand(action, false); + break; + case "FontStyle": + document.execCommand(action, false); + break; + case "CopyTools": + document.execCommand(action, false); + break; + case "Lists": + document.execCommand(action, false); + break; + } + } + else { + switch (action) { + // handle root level commands. In this case if the user clicks on the 'Copy' button + // without expanding it, the text will be copied. + case "CopyTools": + document.execCommand("copy", false); + break; + } + } + + }) + , + expand: WinJS.Utilities.markSupportedForProcessing(function (e) { + var menu = e.menu; + // persist the selected state of items based on the current text selection when the menu expands + menu.getItem("Bold").selected = document.queryCommandState("bold"); + menu.getItem("Italic").selected = document.queryCommandState("italic"); + menu.getItem("Underline").selected = document.queryCommandState("underline"); + menu.getItem("JustifyLeft").selected = document.queryCommandState("JustifyLeft"); + menu.getItem("JustifyRight").selected = document.queryCommandState("JustifyRight"); + menu.getItem("JustifyCenter").selected = document.queryCommandState("JustifyCenter"); + menu.getItem("InsertOrderedList").selected = document.queryCommandState("InsertOrderedList"); + menu.getItem("InsertUnorderedList").selected = document.queryCommandState("InsertUnorderedList"); + }) + }); + + app.onactivated = function (args) { + if (args.detail.kind === activation.ActivationKind.launch) { + if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) { + // TODO: This application has been newly launched. Initialize + // your application here. + } else { + // TODO: This application has been reactivated from suspension. + // Restore application state here. + } + args.setPromise(WinJS.UI.processAll()); + } + }; + + app.oncheckpoint = function (args) { + // TODO: This application is about to be suspended. Save any state + // that needs to persist across suspensions here. You might use the + // WinJS.Application.sessionState object, which is automatically + // saved and restored across suspension. If you need to complete an + // asynchronous operation before your application is suspended, call + // args.setPromise(). + }; + + app.start(); +})(); diff --git a/RadialMenu/TextEditingWithRadialMenu/package.appxmanifest b/RadialMenu/TextEditingWithRadialMenu/package.appxmanifest new file mode 100644 index 0000000..fd20a3a --- /dev/null +++ b/RadialMenu/TextEditingWithRadialMenu/package.appxmanifest @@ -0,0 +1,48 @@ + + + + + + + TextEditingWithRadialMenu + myankov + images\storelogo.png + + + + 6.2.1 + 6.2.1 + + + + + + + + + + + + + + + + + + + + + + +