|
| 1 | +<Window x:Class="Turbo_C__.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:Turbo_C__" |
| 7 | + mc:Ignorable="d" |
| 8 | + Title="Turbo C++" |
| 9 | + Height="450" |
| 10 | + Width="800" |
| 11 | + Background="#FF252526" |
| 12 | + Icon="Resources/TCnew.ico" |
| 13 | + ResizeMode="NoResize" AllowsTransparency="True" WindowStyle="None"> |
| 14 | + <Window.Resources> |
| 15 | + <Style x:Key="linkButton" TargetType="{x:Type Button}"> |
| 16 | + <Setter Property="Background" Value="Transparent"/> |
| 17 | + <Setter Property="Foreground" Value="#FF007ACC" /> |
| 18 | + <Setter Property="BorderThickness" Value="0" /> |
| 19 | + <Setter Property="Template"> |
| 20 | + <Setter.Value> |
| 21 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 22 | + <Border Background="{TemplateBinding Background}"> |
| 23 | + <ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center"/> |
| 24 | + </Border> |
| 25 | + </ControlTemplate> |
| 26 | + </Setter.Value> |
| 27 | + </Setter> |
| 28 | + <Style.Triggers> |
| 29 | + <Trigger Property="IsMouseOver" Value="True"> |
| 30 | + <Setter Property="Foreground" Value="#FF009FFF"/> |
| 31 | + <Setter Property="Cursor" Value="Hand" /> |
| 32 | + <Setter Property="Background" Value="Transparent"/> |
| 33 | + </Trigger> |
| 34 | + </Style.Triggers> |
| 35 | + </Style> |
| 36 | + <Style x:Key="runButton" TargetType="{x:Type Button}"> |
| 37 | + <Setter Property="Background" Value="Transparent"/> |
| 38 | + <Setter Property="Foreground" Value="#FF009FFF"/> |
| 39 | + <Setter Property="BorderBrush" Value="#FF009FFF" /> |
| 40 | + <Setter Property="Template"> |
| 41 | + <Setter.Value> |
| 42 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 43 | + <Border Background="{TemplateBinding Background}" BorderThickness="2" BorderBrush="#FF009FFF"> |
| 44 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 45 | + </Border> |
| 46 | + </ControlTemplate> |
| 47 | + </Setter.Value> |
| 48 | + </Setter> |
| 49 | + <Style.Triggers> |
| 50 | + <Trigger Property="IsMouseOver" Value="True"> |
| 51 | + <Setter Property="Cursor" Value="Hand" /> |
| 52 | + <Setter Property="Foreground" Value="White" /> |
| 53 | + <Setter Property="Background" Value="Transparent"/> |
| 54 | + </Trigger> |
| 55 | + </Style.Triggers> |
| 56 | + </Style> |
| 57 | + </Window.Resources> |
| 58 | + |
| 59 | + <WindowChrome.WindowChrome> |
| 60 | + <WindowChrome CaptionHeight="{Binding ActualHeight,ElementName=titlebar}"/> |
| 61 | + </WindowChrome.WindowChrome> |
| 62 | + |
| 63 | + <DockPanel LastChildFill="True"> |
| 64 | + <!--Title Bar--> |
| 65 | + <Border BorderBrush="#FF007ACC" BorderThickness="1,1,1,0" DockPanel.Dock="Top" Height="30" x:Name="titlebar" Background="#FF2D2D30"> |
| 66 | + <Grid Background="#FF2D2D30"> |
| 67 | + <Image x:Name="image" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="25" Source="Resources/TCnew.ico" RenderTransformOrigin="3.282,3.04" Margin="10,5,0,0"/> |
| 68 | + <Button x:Name="ExitButton" HorizontalAlignment="Right" Content="X" Foreground="White" Width="24" BorderThickness="0" Click="ExitButton_Click" WindowChrome.IsHitTestVisibleInChrome="True"> |
| 69 | + <Button.Style> |
| 70 | + <Style TargetType="{x:Type Button}"> |
| 71 | + <Setter Property="Background" Value="Transparent"/> |
| 72 | + <Setter Property="Template"> |
| 73 | + <Setter.Value> |
| 74 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 75 | + <Border Background="{TemplateBinding Background}"> |
| 76 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 77 | + </Border> |
| 78 | + </ControlTemplate> |
| 79 | + </Setter.Value> |
| 80 | + </Setter> |
| 81 | + <Style.Triggers> |
| 82 | + <Trigger Property="IsMouseOver" Value="True"> |
| 83 | + <Setter Property="Background" Value="Red"/> |
| 84 | + </Trigger> |
| 85 | + </Style.Triggers> |
| 86 | + </Style> |
| 87 | + </Button.Style> |
| 88 | + </Button> |
| 89 | + <TextBlock Text="{Binding Title, FallbackValue=Turbo C++, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" |
| 90 | + Margin="30,0,24,0" |
| 91 | + VerticalAlignment="Center" Foreground="White"/> |
| 92 | + </Grid> |
| 93 | + </Border> |
| 94 | + |
| 95 | + <!--Window Content--> |
| 96 | + <Border BorderBrush="#FF007ACC" DockPanel.Dock="Top" BorderThickness="1,1,1,1" Height="400"> |
| 97 | + <Grid Height="400"> |
| 98 | + <Grid.ColumnDefinitions> |
| 99 | + <ColumnDefinition Width="3*"/> |
| 100 | + <ColumnDefinition Width="52*"/> |
| 101 | + <ColumnDefinition Width="78*"/> |
| 102 | + </Grid.ColumnDefinitions> |
| 103 | + |
| 104 | + <!--Advert--> |
| 105 | + <WebBrowser x:Name="webBrowserAd" Grid.Column="2" HorizontalAlignment="Left" Height="45" Margin="391,187,0,0" VerticalAlignment="Top" Width="55" Source="https://turbocpp.codeplex.com" Visibility="Hidden"/> |
| 106 | + |
| 107 | + <DockPanel HorizontalAlignment="Left" Height="399" LastChildFill="False" VerticalAlignment="Top" Width="301" Background="#FF28282B" Grid.ColumnSpan="2" Margin="0,0,0,-1"/> |
| 108 | + <Button x:Name="turboc" Content="Turbo C++" HorizontalAlignment="Left" Margin="15,24,0,0" VerticalAlignment="Top" Width="150" ToolTip="https://turbocpp.codeplex.com/" Foreground="White" BorderThickness="0" FontSize="29.333" Click="turboc_Click" Grid.ColumnSpan="2" HorizontalContentAlignment="Left"> |
| 109 | + <Button.Style> |
| 110 | + <Style TargetType="{x:Type Button}"> |
| 111 | + <Setter Property="Background" Value="Transparent"/> |
| 112 | + <Setter Property="Template"> |
| 113 | + <Setter.Value> |
| 114 | + <ControlTemplate TargetType="{x:Type Button}"> |
| 115 | + <Border Background="{TemplateBinding Background}"> |
| 116 | + <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 117 | + </Border> |
| 118 | + </ControlTemplate> |
| 119 | + </Setter.Value> |
| 120 | + </Setter> |
| 121 | + <Style.Triggers> |
| 122 | + <Trigger Property="IsMouseOver" Value="True"> |
| 123 | + <Setter Property="Foreground" Value="#FF007ACC"/> |
| 124 | + </Trigger> |
| 125 | + </Style.Triggers> |
| 126 | + </Style> |
| 127 | + </Button.Style> |
| 128 | + </Button> |
| 129 | + |
| 130 | + <!--Start--> |
| 131 | + <Label x:Name="labelStart" Content="Start" HorizontalAlignment="Left" Margin="13,80,0,0" VerticalAlignment="Top" Foreground="White" FontSize="18.667" Grid.ColumnSpan="2" FontFamily="Segoe UI Light"/> |
| 132 | + <Button x:Name="buttonNewProject" Content="New Project..." HorizontalAlignment="Left" Margin="0,120,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonNewProject_Click" Style="{StaticResource linkButton}" ToolTip="Create new project in turbo c++" /> |
| 133 | + <Button x:Name="buttonNew" Content="New Source File..." HorizontalAlignment="Left" Margin="0,143,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonNew_Click" Style="{StaticResource linkButton}" ToolTip="Create new source file (C, C++, Header Files etc.) in Turbo C++" /> |
| 134 | + <Button x:Name="buttonOpenProject" Content="Open Project..." HorizontalAlignment="Left" Margin="0,165,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonOpenProject_Click" Style="{StaticResource linkButton}" ToolTip="Open existing project in turbo c++" /> |
| 135 | + <Button x:Name="buttonOpenSourceFile" Content="Open Source File..." HorizontalAlignment="Left" Margin="0,187,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonOpenSourceFile_Click" Style="{StaticResource linkButton}" ToolTip="Open existing source file (C, C++, Header Files etc.) in Turbo C++" /> |
| 136 | + |
| 137 | + <Label x:Name="labelRecent" Content="Recent" HorizontalAlignment="Left" Margin="14,224,0,0" VerticalAlignment="Top" Foreground="White" FontSize="18.667" FontFamily="Segoe UI Light" Grid.ColumnSpan="2"/> |
| 138 | + <Button x:Name="buttonRecent1" Content="Recent1" HorizontalAlignment="Left" Margin="0,266,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonRecent1_Click" Style="{StaticResource linkButton}" /> |
| 139 | + <Button x:Name="buttonRecent2" Content="Recent2" HorizontalAlignment="Left" Margin="0,289,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonRecent2_Click" Style="{StaticResource linkButton}" /> |
| 140 | + <Button x:Name="buttonRecent3" Content="Recent3" HorizontalAlignment="Left" Margin="0,311,0,0" VerticalAlignment="Top" Width="125" Grid.Column="1" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonRecent3_Click" Style="{StaticResource linkButton}" /> |
| 141 | + |
| 142 | + <CheckBox x:Name="checkBoxFullScreen" Content="Full screen mode (If graphics card available)" HorizontalAlignment="Left" Margin="0,354,0,0" VerticalAlignment="Top" Width="317" Foreground="White" Grid.ColumnSpan="2" Grid.Column="1" ToolTip="Full screen mode only works If graphics card available in your system with minimum memory requirements" /> |
| 143 | + <CheckBox x:Name="checkBoxKeepWindowOpen" Content="Keep this window open after run turbo c++" HorizontalAlignment="Left" Margin="17,374,0,0" VerticalAlignment="Top" Foreground="White" Grid.ColumnSpan="2" ToolTip="Keep current window open even you switch to turbo c++ window ( Recommended for saving files automatically)." /> |
| 144 | + |
| 145 | + <Label x:Name="labelDiscoverNew" Content="New to programming language?" Grid.Column="1" HorizontalAlignment="Left" Margin="305,1,0,0" VerticalAlignment="Top" Foreground="White" FontSize="29.333" FontFamily="Segoe UI Light" Grid.ColumnSpan="2"/> |
| 146 | + <Button x:Name="buttonLearnC" Content="Learn about C language" HorizontalAlignment="Left" Margin="0,49,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonLearnC_Click" RenderTransformOrigin="0.5,0.5" Style="{StaticResource linkButton}" ToolTip="Learn basic C language" /> |
| 147 | + <Button x:Name="buttonLearnCPP" Content="Learn about C++ language" HorizontalAlignment="Left" Margin="0,74,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonLearnCPP_Click" RenderTransformOrigin="0.5,0.5" Style="{StaticResource linkButton}" ToolTip="Learn basic C++ language" /> |
| 148 | + <Button x:Name="buttonDocumentation" Content="Jump to documentation page" HorizontalAlignment="Left" Margin="0,99,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonDocumentation_Click" RenderTransformOrigin="0.5,0.5" Style="{StaticResource linkButton}" ToolTip="Turbo C++ documentation" /> |
| 149 | + |
| 150 | + <Label x:Name="labelMore" Content="Help Improve the Turbo C++ Family of Software" Grid.Column="1" HorizontalAlignment="Left" Margin="307,140,0,0" VerticalAlignment="Top" Foreground="White" FontSize="18.667" FontFamily="Segoe UI Light" Grid.ColumnSpan="2"/> |
| 151 | + <Button x:Name="buttonReportABug" Content="Report a bug" HorizontalAlignment="Left" Margin="0,175,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" RenderTransformOrigin="0.5,0.5" Click="buttonReportABug_Click" Style="{StaticResource linkButton}" ToolTip="Report a bug directly to developer" /> |
| 152 | + <Button x:Name="buttonSubmitAnIdea" Content="Submit an idea" HorizontalAlignment="Left" Margin="0,200,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonSubmitAnIdea_Click" RenderTransformOrigin="0.5,0.5" Style="{StaticResource linkButton}" ToolTip="Submit an idea directly to developer" /> |
| 153 | + <Button x:Name="buttonLicense" Content="Microsoft Public License (Ms-PL)" HorizontalAlignment="Left" Margin="0,225,0,0" VerticalAlignment="Top" Width="225" Grid.Column="2" HorizontalContentAlignment="Left" FontSize="13.333" Click="buttonLicense_Click" RenderTransformOrigin="0.5,0.5" Style="{StaticResource linkButton}" ToolTip="Read lisense" /> |
| 154 | + |
| 155 | + <Label x:Name="labelConfigC" Content="Turbo C++ default startup" Grid.Column="1" HorizontalAlignment="Left" Margin="307,308,0,0" VerticalAlignment="Top" Foreground="White" FontSize="18.667" FontFamily="Segoe UI Light" Grid.ColumnSpan="2"/> |
| 156 | + <Button x:Name="buttonStartC" Content="Start Turbo C++" Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="458" IsDefault="True" Margin="0,0,10,10" FontSize="24" Click="buttonStartC_Click" Style="{StaticResource runButton}" BorderBrush="#FF0086FB" /> |
| 157 | + </Grid> |
| 158 | + |
| 159 | + </Border> |
| 160 | + |
| 161 | + <!--Tab Bar--> |
| 162 | + <Border BorderBrush="#FF007ACC" BorderThickness="1" DockPanel.Dock="Bottom" Height="20" x:Name="tabBar" Background="#FF007ACC" VerticalAlignment="Bottom"> |
| 163 | + <Grid> |
| 164 | + <TextBlock x:Name="tbBottomDocTitle" Text="Ready" Margin="10,0,0,0" VerticalAlignment="Center" Foreground="White" HorizontalAlignment="Left" Height="20"/> |
| 165 | + <TextBlock x:Name="tbVirtualMemory" Text="Virtual Memory : --- MB" VerticalAlignment="Center" Foreground="White" HorizontalAlignment="Right" Margin="0,0,160,0" Height="20"/> |
| 166 | + <TextBlock x:Name="tbPysicalMemory" Text="Physical Memory : -- MB" VerticalAlignment="Center" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" Height="20"/> |
| 167 | + </Grid> |
| 168 | + </Border> |
| 169 | + </DockPanel> |
| 170 | +</Window> |
0 commit comments