Placeholders for future feature implementations

This commit is contained in:
Michael Becker 2019-09-23 03:37:51 -04:00
parent 2e89b9e13c
commit f06b776502
5 changed files with 23 additions and 7 deletions

View File

@ -14,6 +14,8 @@
<CommandReference CommandID="FileRecentFiles" />
<CommandReference CommandID="FileRecentProjects" />
<Separator />
<CommandReference CommandID="FileProperties" />
<Separator />
<CommandReference CommandID="FileRestart" />
<CommandReference CommandID="FileExit" />
</Items>
@ -106,6 +108,7 @@
<CommandPlaceholder PlaceholderID="RecentProjects" />
</Items>
</Command>
<Command ID="FileProperties" />
<Command ID="FileRestart" />
<Command ID="FileExit" StockType="Quit">
<Shortcut Modifiers="Control" Key="Q" />

View File

@ -73,8 +73,10 @@
<Command ID="FileCloseWindow" Title="_Window" />
<Command ID="FilePrint" Title="_Print..." />
<Command ID="FileProperties" Title="P_roperties..." />
<Command ID="FileRestart" Title="_Restart" />
<Command ID="FileRestart" Title="Restart" />
<Command ID="FileExit" Title="E_xit" />
<!-- Edit -->

View File

@ -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();

View File

@ -39,7 +39,9 @@ namespace UniversalEditor.UserInterface
void CloseWindow();
void PrintDocument();
void ShowDocumentPropertiesDialog();
Editor GetCurrentEditor();
bool FullScreen { get; set; }

View File

@ -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);
}
}
}