Skip to content

Commit 1f57c0f

Browse files
committed
Made welcom page optional
The user may now disable the welcome page in Logbert.
1 parent 7a9705b commit 1f57c0f

File tree

16 files changed

+192
-137
lines changed

16 files changed

+192
-137
lines changed

src/Couchcoding.Logbert.Gui/Couchcoding.Logbert.Gui.csproj

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,6 @@
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<DebugType>pdbonly</DebugType>
27-
<Optimize>true</Optimize>
28-
<OutputPath>bin\Release\</OutputPath>
29-
<DefineConstants>TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
</PropertyGroup>
3316
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
3417
<DebugSymbols>true</DebugSymbols>
3518
<OutputPath>bin\x86\Debug\</OutputPath>

src/Couchcoding.Logbert.Gui/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.5.3.0")]
35-
[assembly: AssemblyFileVersion("1.5.3.0")]
34+
[assembly: AssemblyVersion("1.5.4.0")]
35+
[assembly: AssemblyFileVersion("1.5.4.0")]

src/Couchcoding.Logbert.Theme/Couchcoding.Logbert.Theme.csproj

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,23 @@
1313
<FileAlignment>512</FileAlignment>
1414
<Deterministic>true</Deterministic>
1515
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
1717
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
18+
<OutputPath>bin\x86\Debug\</OutputPath>
2119
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
20+
<DebugType>full</DebugType>
2421
<PlatformTarget>x86</PlatformTarget>
22+
<ErrorReport>prompt</ErrorReport>
23+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
2524
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
26+
<OutputPath>bin\x86\Release\</OutputPath>
3027
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
28+
<Optimize>true</Optimize>
29+
<DebugType>pdbonly</DebugType>
3330
<PlatformTarget>x86</PlatformTarget>
31+
<ErrorReport>prompt</ErrorReport>
32+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
3433
</PropertyGroup>
3534
<ItemGroup>
3635
<Reference Include="System" />

src/Couchcoding.Logbert.Theme/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.5.3.0")]
35-
[assembly: AssemblyFileVersion("1.5.3.0")]
34+
[assembly: AssemblyVersion("1.5.4.0")]
35+
[assembly: AssemblyFileVersion("1.5.4.0")]

src/Logbert.sln

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27703.2026
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Logbert", "Logbert\Logbert.csproj", "{EE81C506-55E4-417E-B1D6-09453F89C7CD}"
77
EndProject
@@ -17,41 +17,25 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Couchcoding.Logbert.Theme",
1717
EndProject
1818
Global
1919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20-
Debug|Any CPU = Debug|Any CPU
2120
Debug|x86 = Debug|x86
22-
Release|Any CPU = Release|Any CPU
2321
Release|x86 = Release|x86
2422
EndGlobalSection
2523
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26-
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27-
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
2824
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Debug|x86.ActiveCfg = Debug|x86
2925
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Debug|x86.Build.0 = Debug|x86
30-
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
31-
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Release|Any CPU.Build.0 = Release|Any CPU
3226
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Release|x86.ActiveCfg = Release|x86
3327
{EE81C506-55E4-417E-B1D6-09453F89C7CD}.Release|x86.Build.0 = Release|x86
34-
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35-
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Debug|Any CPU.Build.0 = Debug|Any CPU
3628
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Debug|x86.ActiveCfg = Debug|x86
3729
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Debug|x86.Build.0 = Debug|x86
38-
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Release|Any CPU.Build.0 = Release|Any CPU
4030
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Release|x86.ActiveCfg = Release|x86
4131
{0D9D135F-9D7A-4D90-8810-903450FD4245}.Release|x86.Build.0 = Release|x86
42-
{8C408EBB-DDB3-4217-BB6B-AF6584A13F4B}.Debug|Any CPU.ActiveCfg = Debug|x86
4332
{8C408EBB-DDB3-4217-BB6B-AF6584A13F4B}.Debug|x86.ActiveCfg = Debug|x86
44-
{8C408EBB-DDB3-4217-BB6B-AF6584A13F4B}.Release|Any CPU.ActiveCfg = Release|x86
4533
{8C408EBB-DDB3-4217-BB6B-AF6584A13F4B}.Release|x86.ActiveCfg = Release|x86
4634
{8C408EBB-DDB3-4217-BB6B-AF6584A13F4B}.Release|x86.Build.0 = Release|x86
47-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|Any CPU.Build.0 = Debug|Any CPU
49-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|x86.ActiveCfg = Debug|Any CPU
50-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|x86.Build.0 = Debug|Any CPU
51-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|x86.ActiveCfg = Release|Any CPU
54-
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|x86.Build.0 = Release|Any CPU
35+
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|x86.ActiveCfg = Debug|x86
36+
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Debug|x86.Build.0 = Debug|x86
37+
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|x86.ActiveCfg = Release|x86
38+
{DE30D0ED-E29F-4779-A057-C7C1F1EF4F59}.Release|x86.Build.0 = Release|x86
5539
EndGlobalSection
5640
GlobalSection(SolutionProperties) = preSolution
5741
HideSolutionNode = FALSE

src/Logbert/App.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@
570570
<setting name="CodeElement_Identifier_FontStyle" serializeAs="String">
571571
<value>Regular</value>
572572
</setting>
573+
<setting name="FrmMainShowWelcomePage" serializeAs="String">
574+
<value>True</value>
575+
</setting>
573576
</Couchcoding.Logbert.Properties.Settings>
574577
</userSettings>
575578
<applicationSettings>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#region Copyright © 2019 Couchcoding
2+
3+
// File: ListBoxEx.cs
4+
// Package: GuiLibrary
5+
// Project: Logbert
6+
//
7+
// The MIT License (MIT)
8+
//
9+
// Copyright (c) 2019 Couchcoding
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in
19+
// all copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27+
// THE SOFTWARE.
28+
29+
#endregion
30+
31+
using Couchcoding.Logbert.Gui.Helper;
32+
using System.Drawing;
33+
using System.Windows.Forms;
34+
using WeifenLuo.WinFormsUI.Docking;
35+
36+
namespace Couchcoding.Logbert.Controls
37+
{
38+
/// <summary>
39+
/// Implements a <see cref="DockPanel"/> that supports a background image even if it is themed.
40+
/// </summary>
41+
internal sealed class DockPanelEx : DockPanel
42+
{
43+
#region Overridden Methods
44+
45+
/// <summary>
46+
/// Raises the <see cref="E:System.Windows.Forms.Control.Paint"/> event.
47+
/// </summary>
48+
/// <param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs"/> that contains the event data.</param>
49+
protected override void OnPaint(PaintEventArgs e)
50+
{
51+
base.OnPaint(e);
52+
53+
if (BackgroundImage != null && Height > 0 && Width > 0)
54+
{
55+
Rectangle imageDimensions = new Rectangle(
56+
0
57+
, 0
58+
, BackgroundImage.Width
59+
, BackgroundImage.Height);
60+
61+
e.Graphics.DrawImage(BackgroundImage, new Rectangle(
62+
0
63+
, 0
64+
, DpiHelper.RescaleByDpiX(imageDimensions.Width)
65+
, DpiHelper.RescaleByDpiY(imageDimensions.Height))
66+
, imageDimensions
67+
, GraphicsUnit.Pixel);
68+
}
69+
}
70+
71+
#endregion
72+
}
73+
}

0 commit comments

Comments
 (0)