-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beta 0.1 * app will check your connection, when on metered connection it will connect to the remote url, otherwise take the normal url * implemented demo url, disabled settings fields when demomode is checked * #4 Implemented demo mode * navigating forward in a sitemap works * 7 implement new design (#10) * app will check your connection, when on metered connection it will connect to the remote url, otherwise take the normal url * implemented demo url, disabled settings fields when demomode is checked * #4 Implemented demo mode * navigating forward in a sitemap works * Implemented NavigationService for widgets * Added styled Switch widget * add SliderWidget * added slider widget * fix merge issues * Added section switch widget (#14) * 15 add color widget (#16) * fix #11 * First step in fixing layout issues is done * generic UI fixes * added color widget, fixes #15 * added colorchanged handling and default value * fix widget bug * 15 add color widget (#17) * fix #11 * First step in fixing layout issues is done * generic UI fixes * added color widget, fixes #15 * added colorchanged handling and default value * fix widget bug * Made frame icon smaller and next to label (#27) * Added MJPEG widget (#28) * Fixed slider bug where click didn't trigger change event (#29) * fixes #22, background image gets a dark overlay to make titles more visible (#30) * Fixed nullreference on app launch and url set (#31) * added app title, icon and splashscreen (#32) * fixed issue #33 with not working demo mode (#34) * added demo mode check to url check * Replaced ListViewItemPresenter with UIElement structure like dokumented here - https://msdn.microsoft.com/de-de/library/windows/apps/mt299136.aspx (#35) Fixes issue #21 * Fixes #23 style of settingspage matches app design (#37) * Added support for authorization * 38-AddSupportForUsernameAndPassword (#39) * Fixes #23 style of settingspage matches app design * Added support for authorization * Fixes #23 style of settingspage matches app design * Added support for authorization * Completed rollershutter widget (#40) * Added capability to access private network for lokal openHAB instance access. (#43) issue #41 * Fixes #42 Crash on save with invalid url (#45) * change logo + disable colorpicker for now
- Loading branch information
1 parent
b10e6ac
commit 28931d4
Showing
119 changed files
with
3,762 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+644 Bytes
OpenHAB.Windows/Assets/Square44x44Logo.targetsize-16_altform-unplated.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-292 Bytes
(77%)
OpenHAB.Windows/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
OpenHAB.Windows/Assets/Square44x44Logo.targetsize-256_altform-unplated.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
OpenHAB.Windows/Assets/Square44x44Logo.targetsize-32_altform-unplated.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.84 KB
OpenHAB.Windows/Assets/Square44x44Logo.targetsize-48_altform-unplated.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<local:WidgetBase x:Class="OpenHAB.Windows.Controls.ChartWidget" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:OpenHAB.Windows.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<Grid Height="600" | ||
Margin="8,4,8,4" | ||
Background="{StaticResource OpenHABLightColor}" | ||
CornerRadius="5"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
|
||
<local:ImageLabel VerticalAlignment="Center" | ||
IconPath="{x:Bind Widget.Icon, Converter={StaticResource IconToPathConverter}, Mode=OneWay}" | ||
LabelText="{x:Bind Widget.Label, Mode=OneWay}" /> | ||
|
||
<Image x:Name="Chart" | ||
Grid.Row="1" | ||
Stretch="UniformToFill" /> | ||
</Grid> | ||
</local:WidgetBase> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Media.Imaging; | ||
using Microsoft.Practices.ServiceLocation; | ||
using OpenHAB.Core.Common; | ||
using OpenHAB.Core.Contracts.Services; | ||
|
||
namespace OpenHAB.Windows.Controls | ||
{ | ||
/// <summary> | ||
/// Widget control that represents an OpenHAB slider | ||
/// </summary> | ||
public sealed partial class ChartWidget : WidgetBase | ||
{ | ||
public static readonly DependencyProperty ChartUriProperty = DependencyProperty.Register( | ||
"ChartUri", typeof(string), typeof(ChartWidget), new PropertyMetadata(default(string))); | ||
|
||
public string ChartUri | ||
{ | ||
get { return (string) GetValue(ChartUriProperty); } | ||
set { SetValue(ChartUriProperty, value); } | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ChartWidget"/> class. | ||
/// </summary> | ||
public ChartWidget() | ||
{ | ||
InitializeComponent(); | ||
Loaded += OnLoaded; | ||
} | ||
|
||
private void OnLoaded(object sender, RoutedEventArgs routedEventArgs) | ||
{ | ||
var settingsService = ServiceLocator.Current.GetInstance<ISettingsService>(); | ||
var settings = settingsService.Load(); | ||
var serverUrl = settings.IsRunningInDemoMode.Value ? Constants.Api.DemoModeUrl : settings.OpenHABUrl; | ||
|
||
if (!serverUrl.EndsWith("/")) | ||
{ | ||
serverUrl += "/"; | ||
} | ||
|
||
// http://demo.openhab.org:8080/chart?groups=Weather_Chart&period=d | ||
ChartUri = $"{serverUrl}chart?groups={Widget.Item.Name}&period=d"; | ||
Chart.Source = new BitmapImage(new Uri(ChartUri)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<UserControl x:Class="OpenHAB.Windows.Controls.ColorMap" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
x:Name="map" | ||
mc:Ignorable="d"> | ||
|
||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> | ||
<Grid> | ||
<Grid x:Name="poly"> | ||
<Ellipse x:Name="ellipse" | ||
Stretch="Uniform" | ||
Stroke="Purple" | ||
StrokeThickness="2"> | ||
<Ellipse.Fill> | ||
<ImageBrush x:Name="image3" /> | ||
</Ellipse.Fill> | ||
</Ellipse> | ||
</Grid> | ||
<Canvas> | ||
<Thumb x:Name="thumb" | ||
Width="10" | ||
Height="10" | ||
Visibility="Collapsed"> | ||
<Thumb.Template> | ||
<ControlTemplate> | ||
<Ellipse Stroke="Gray" StrokeThickness="2"> | ||
<Ellipse.Fill> | ||
<SolidColorBrush Color="{StaticResource OpenHABLightGrey}" /> | ||
</Ellipse.Fill> | ||
</Ellipse> | ||
</ControlTemplate> | ||
</Thumb.Template> | ||
</Thumb> | ||
</Canvas> | ||
</Grid> | ||
</Grid> | ||
</UserControl> |
Oops, something went wrong.