Skip to content

Commit

Permalink
New non-sandboxed GUI app, little changes, gui+dll linked, need to ma…
Browse files Browse the repository at this point in the history
…nage pipes for child devices
  • Loading branch information
raybbian committed Jul 12, 2024
1 parent 0a199c6 commit f634902
Show file tree
Hide file tree
Showing 107 changed files with 1,441 additions and 22,963 deletions.
2 changes: 0 additions & 2 deletions Configurator/.bundle/config

This file was deleted.

11 changes: 0 additions & 11 deletions Configurator/.eslintrc.js

This file was deleted.

74 changes: 0 additions & 74 deletions Configurator/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions Configurator/.prettierrc.js

This file was deleted.

1 change: 0 additions & 1 deletion Configurator/.watchmanconfig

This file was deleted.

874 changes: 0 additions & 874 deletions Configurator/.yarn/releases/yarn-3.6.4.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions Configurator/.yarnrc.yml

This file was deleted.

13 changes: 0 additions & 13 deletions Configurator/App.tsx

This file was deleted.

16 changes: 16 additions & 0 deletions Configurator/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Application
x:Class="Configurator.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Configurator">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
36 changes: 36 additions & 0 deletions Configurator/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;

namespace Configurator
{
public partial class App : Application
{
public App()
{
this.InitializeComponent();
}

protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.Activate();
}

private Window m_window;
}
}
Binary file added Configurator/Assets/LockScreenLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Configurator/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Configurator/Assets/Square44x44Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Configurator/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Configurator/Assets/Wide310x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions Configurator/Configurator.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>Configurator</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) &gt;= 8">win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) &lt; 8">win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<WindowsPackageType>None</WindowsPackageType>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
</PropertyGroup>
<ItemGroup>
<None Remove="Device.xaml" />
</ItemGroup>

<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240627000" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored.
-->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
<ItemGroup>
<Page Update="Device.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>

<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
the Windows App SDK Nuget package has not yet been restored.
-->
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
</PropertyGroup>
</Project>
108 changes: 108 additions & 0 deletions Configurator/Device.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<UserControl
x:Class="Configurator.Device"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Configurator"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid x:Name="AppContent" Background="{ThemeResource LayerOnMicaBaseAltFillColorDefault}" Padding="12, 8, 12, 12" ColumnSpacing="18">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="24"/>
<RowDefinition Height="32"/>
</Grid.RowDefinitions>
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" FontWeight="SemiBold">Device Info</TextBlock>
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" FontWeight="SemiBold" Grid.Row="1">Set Configuration</TextBlock>
<StackPanel Grid.Row="2" Orientation="Horizontal" x:Name="ConfigPanel">
<StackPanel.Resources>
<Style TargetType="ToggleButton">
<Style.Setters>
<Setter Property="CornerRadius" Value="0"/>
</Style.Setters>
</Style>
</StackPanel.Resources>
<ToggleButton
CornerRadius="4, 0, 0, 4"
Content="1" />
<ToggleButton
Content="2" Grid.Column="1"/>
<ToggleButton
Content="3" Grid.Column="2"/>
<ToggleButton
Content="4" Grid.Column="3"/>
<ToggleButton
Content="5" Grid.Column="4"/>
<ToggleButton
Content="6" Grid.Column="5"/>
<ToggleButton
x:Name="LastConfigButton"
CornerRadius="0, 4, 4, 0"
Content="7" Grid.Column="6"/>
</StackPanel>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="24"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" FontWeight="SemiBold">Enabled Features</TextBlock>
<Grid x:Name="FeatureSelector" ColumnSpacing="12" VerticalAlignment="Stretch" Grid.Row="1" RowSpacing="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="0">
<FontIcon Glyph="&#xE91B;"/>
</ToggleButton>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="1">
<FontIcon Glyph="&#xE8D6;" />
</ToggleButton>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2">
<FontIcon Glyph="&#xECF0;" />
</ToggleButton>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="2">
<FontIcon Glyph="&#xE839;" />
</ToggleButton>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="1" Grid.Row="2">
<FontIcon Glyph="&#xE704;" />
</ToggleButton>
<ToggleButton VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2" Grid.Row="2">
<FontIcon Glyph="&#xF7EE;" />
</ToggleButton>
<Grid Grid.Row="1" Grid.Column="0">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="1" Grid.Column="0" TextAlignment="Center" HorizontalAlignment="Center">Photo Transfer</TextBlock>
</Grid>
<Grid Grid.Row="1" Grid.Column="1">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="1" Grid.Column="1" TextAlignment="Center" HorizontalAlignment="Center">Audio Streaming</TextBlock>
</Grid>
<Grid Grid.Row="1" Grid.Column="2">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="1" Grid.Column="2" TextAlignment="Center" HorizontalAlignment="Center">iTunes USB</TextBlock>
</Grid>
<Grid Grid.Row="3" Grid.Column="1">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="3" Grid.Column="0" TextAlignment="Center" HorizontalAlignment="Center">Data Tethering</TextBlock>
</Grid>
<Grid Grid.Row="3" Grid.Column="0">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="3" Grid.Column="1" TextAlignment="Center" HorizontalAlignment="Center">P2P Ethernet</TextBlock>
</Grid>
<Grid Grid.Row="3" Grid.Column="2">
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Grid.Row="3" Grid.Column="2" TextAlignment="Center" HorizontalAlignment="Center">Screen Share</TextBlock>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>
Loading

0 comments on commit f634902

Please sign in to comment.