diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Configuration/Commands.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Configuration/Commands.uexml index fc33a5a4..18fffa27 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Configuration/Commands.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Configuration/Commands.uexml @@ -14,6 +14,8 @@ + + @@ -106,6 +108,7 @@ + diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Languages/English.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Languages/English.uexml index 452073bc..c48607b5 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Languages/English.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Languages/English.uexml @@ -73,8 +73,10 @@ + + - + diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index 20553a0e..2def3a07 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -269,6 +269,10 @@ namespace UniversalEditor.UserInterface { LastWindow.PrintDocument(); }); + Application.AttachCommandEventHandler("FileProperties", delegate (object sender, EventArgs e) + { + LastWindow.ShowDocumentPropertiesDialog(); + }); Application.AttachCommandEventHandler("FileRestart", delegate(object sender, EventArgs e) { RestartApplication(); diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs index 3eb7be5e..33aeaf9f 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs @@ -39,7 +39,9 @@ namespace UniversalEditor.UserInterface void CloseWindow(); void PrintDocument(); - + + void ShowDocumentPropertiesDialog(); + Editor GetCurrentEditor(); bool FullScreen { get; set; } diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index e0ca97d5..2307eca6 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -812,23 +812,21 @@ namespace UniversalEditor.UserInterface public void SetWindowListVisible(bool visible, bool modal) { // this calls out to the DockingContainerControl in WF - /* if (modal) { - dcc.DisplayWindowListDialog(); + // dckContainer.ShowWindowListPopupDialog(); } else { if (visible) { - dcc.ShowWindowListPopupDialog(); + // dckContainer.ShowWindowListPopup(); } else { - dcc.HideWindowListPopupDialog(); + // dckContainer.HideWindowListPopup(); } } - */ } public event EventHandler WindowClosed; @@ -838,5 +836,12 @@ namespace UniversalEditor.UserInterface public SolutionObjectModel CurrentSolution { get; set; } #endregion + + + public void ShowDocumentPropertiesDialog() + { + MessageDialog.ShowDialog("TODO: Implement Document Properties dialog!", "Not Implemented", MessageDialogButtons.OK, MessageDialogIcon.Error); + } } } + \ No newline at end of file