extremely preliminary UWP code
50
misc/UWP/Package.appxmanifest
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<Package
|
||||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
IgnorableNamespaces="uap mp">
|
||||
|
||||
<Identity
|
||||
Name="64f1d536-965b-4190-90d3-47d861786f88"
|
||||
Publisher="CN=ClassiCube"
|
||||
Version="1.0.0.0" />
|
||||
|
||||
<mp:PhoneIdentity PhoneProductId="64f1d536-965b-4190-90d3-47d861786f88" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
|
||||
|
||||
<Properties>
|
||||
<DisplayName>ClassiCube-UWP</DisplayName>
|
||||
<PublisherDisplayName>ClassiCube</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
|
||||
<Resources>
|
||||
<Resource Language="x-generate"/>
|
||||
</Resources>
|
||||
|
||||
<Applications>
|
||||
<Application Id="App"
|
||||
Executable="$targetnametoken$.exe"
|
||||
EntryPoint="ClassiCube_UWP.App">
|
||||
<uap:VisualElements
|
||||
DisplayName="ClassiCube-UWP"
|
||||
Description="ClassiCube-UWP"
|
||||
BackgroundColor="transparent" Square44x44Logo="Assets\Square44x44Logo.png" Square150x150Logo="Assets\Square150x150Logo.png">
|
||||
<uap:DefaultTile>
|
||||
<uap:ShowNameOnTiles>
|
||||
<uap:ShowOn Tile="square150x150Logo"/>
|
||||
</uap:ShowNameOnTiles>
|
||||
</uap:DefaultTile>
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
</Capabilities>
|
||||
</Package>
|
76
misc/UWP/Source.cpp
Normal file
|
@ -0,0 +1,76 @@
|
|||
using namespace Windows::ApplicationModel;
|
||||
using namespace Windows::ApplicationModel::Core;
|
||||
using namespace Windows::ApplicationModel::Activation;
|
||||
using namespace Windows::Devices::Input;
|
||||
using namespace Windows::Graphics::Display;
|
||||
using namespace Windows::Foundation;
|
||||
using namespace Windows::System;
|
||||
using namespace Windows::UI::Core;
|
||||
using namespace Windows::UI::Input;
|
||||
using namespace Platform;
|
||||
|
||||
void Launch_Browser(void) {
|
||||
wchar_t* tmp = L"https://google.com";
|
||||
auto str = ref new String(tmp);
|
||||
auto uri = ref new Uri(str);
|
||||
|
||||
auto options = ref new Windows::System::LauncherOptions();
|
||||
options->TreatAsUntrusted = true;
|
||||
Windows::System::Launcher::LaunchUriAsync(uri, options);
|
||||
}
|
||||
|
||||
void OpenFileDialog(void) {
|
||||
auto picker = ref new Windows::Storage::Pickers::FileOpenPicker();
|
||||
picker->FileTypeFilter->Append(ref new String(L".jpg"));
|
||||
picker->FileTypeFilter->Append(ref new String(L".jpeg"));
|
||||
picker->FileTypeFilter->Append(ref new String(L".png"));
|
||||
|
||||
//Windows::Storage::StorageFile file = picker->PickSingleFileAsync();
|
||||
}
|
||||
|
||||
ref class CCApp sealed : IFrameworkView
|
||||
{
|
||||
public:
|
||||
virtual void Initialize(CoreApplicationView^ view)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void Load(String^ EntryPoint)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void Uninitialize()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void Run()
|
||||
{
|
||||
CoreWindow^ window = CoreWindow::GetForCurrentThread();
|
||||
window->Activate();
|
||||
Launch_Browser();
|
||||
|
||||
CoreDispatcher^ dispatcher = window->Dispatcher;
|
||||
dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit);
|
||||
}
|
||||
|
||||
virtual void SetWindow(CoreWindow^ win)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
ref class CCAppSource sealed : IFrameworkViewSource
|
||||
{
|
||||
public:
|
||||
virtual IFrameworkView^ CreateView()
|
||||
{
|
||||
return ref new CCApp();
|
||||
}
|
||||
};
|
||||
|
||||
[MTAThread]
|
||||
int main(Array<String^>^ args)
|
||||
{
|
||||
//init_apartment();
|
||||
auto source = ref new CCAppSource();
|
||||
CoreApplication::Run(source);
|
||||
}
|
BIN
misc/UWP/assets/LockScreenLogo.scale-200.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
misc/UWP/assets/SplashScreen.scale-200.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
misc/UWP/assets/Square150x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
misc/UWP/assets/Square44x44Logo.scale-200.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
misc/UWP/assets/StoreLogo.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
misc/UWP/assets/Wide310x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 3.1 KiB |