From 497b56ec93db498054f2e87025438249de9fd855 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 27 Feb 2021 08:35:13 -0500 Subject: [PATCH] rename StartPagePanel to StartPage (because it displays in the document area, it is a Page) --- Libraries/UniversalEditor.UserInterface/MainWindow.cs | 2 +- .../{Panels/StartPagePanel.cs => Pages/StartPage.cs} | 11 ++++++++--- .../UniversalEditor.UserInterface.csproj | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) rename Libraries/UniversalEditor.UserInterface/{Panels/StartPagePanel.cs => Pages/StartPage.cs} (91%) diff --git a/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/Libraries/UniversalEditor.UserInterface/MainWindow.cs index 41fc93fb..5ae9a75f 100644 --- a/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -852,7 +852,7 @@ namespace UniversalEditor.UserInterface private void InitStartPage() { - StartPagePanel lblStartPage = new StartPagePanel(); + StartPage lblStartPage = new StartPage(); InitDocTab("Start Page", "Start Page", lblStartPage); } diff --git a/Libraries/UniversalEditor.UserInterface/Panels/StartPagePanel.cs b/Libraries/UniversalEditor.UserInterface/Pages/StartPage.cs similarity index 91% rename from Libraries/UniversalEditor.UserInterface/Panels/StartPagePanel.cs rename to Libraries/UniversalEditor.UserInterface/Pages/StartPage.cs index a3641ea3..9649c166 100644 --- a/Libraries/UniversalEditor.UserInterface/Panels/StartPagePanel.cs +++ b/Libraries/UniversalEditor.UserInterface/Pages/StartPage.cs @@ -1,10 +1,10 @@ // -// SolutionExplorerPanel.cs +// StartPage.cs - the initial Page the user sees at application startup // // Author: // Michael Becker // -// Copyright (c) 2019 +// Copyright (c) 2019-2021 Mike Becker's Software // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ using MBS.Framework.UserInterface.Layouts; namespace UniversalEditor.UserInterface.Panels { [ContainerLayout("~/Panels/StartPage.glade", "GtkWindow")] - public class StartPagePanel : Panel + public class StartPage : Page { private Button cmdCreateNewProject; private Button cmdOpenExistingProject; @@ -37,6 +37,11 @@ namespace UniversalEditor.UserInterface.Panels private Label lblHeader; private Label lblNewsTitle; + public StartPage() + { + Title = "Start Page"; + } + protected override void OnCreated(EventArgs e) { base.OnCreated(e); diff --git a/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj b/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj index f5b94d8e..89b11fdc 100644 --- a/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj +++ b/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj @@ -93,7 +93,6 @@ - @@ -136,6 +135,7 @@ +