-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.xaml
More file actions
82 lines (82 loc) · 5.75 KB
/
Copy pathOptions.xaml
File metadata and controls
82 lines (82 loc) · 5.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<ResourceDictionary
x:Class="Roberthasson.NINA.Lumixcamera.Options"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- This data template will be displayed in N.I.N.A. on the options->plugin tab with the datacontext of the TestPlugin instance -->
<!-- In order for this datatemplate to be picked correctly, the key has to follow the naming convention of <IPlugin.Name>_Options -->
<!-- Furthermore the Resource Dictionary has to be exported via code behind export attributes -->
<DataTemplate x:Key="LumixCamera_Options">
<StackPanel Orientation="Vertical">
<TextBlock FontWeight="Bold" Margin="0,0,0,4" Text="Extended features (LUMIX Tether)" />
<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
<CheckBox IsChecked="{Binding UseTetherExtended}" VerticalAlignment="Center" />
<TextBlock Margin="6,0,0,0" VerticalAlignment="Center">
<TextBlock.Text>Use LUMIX Tether extended features (BULB, RAW/JPG, battery, real camera state)</TextBlock.Text>
<TextBlock.ToolTip>Requires Panasonic's free LUMIX Tether installed and CLOSED (it can't run at the same time as NINA). The plugin loads the DLL from your install — it is never bundled. RESTART N.I.N.A. after changing this — the mode is chosen when the plugin loads, so a reconnect alone is not enough.</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
<TextBlock VerticalAlignment="Center">
<TextBlock.Text>LUMIX Tether DLL path (optional)</TextBlock.Text>
<TextBlock.ToolTip>Leave blank to auto-detect at C:\Program Files\Panasonic\LUMIX Tether\Lmxptpif.dll</TextBlock.ToolTip>
</TextBlock>
<TextBox MinWidth="240" Margin="6,0,0,0" Text="{Binding TetherDllPath}" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,6" IsEnabled="{Binding UseTetherExtended}">
<CheckBox IsChecked="{Binding PreferJpeg}" VerticalAlignment="Center" />
<TextBlock Margin="6,0,0,0" VerticalAlignment="Center">
<TextBlock.Text>Prefer JPEG (workaround for cameras whose RAW NINA can't decode, e.g. GH7)</TextBlock.Text>
<TextBlock.ToolTip>Extended mode only. Forces JPEG capture so the preview always displays. Reconnect after changing.</TextBlock.ToolTip>
</TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,6" IsEnabled="{Binding UseTetherExtended}">
<TextBlock VerticalAlignment="Center">
<TextBlock.Text>Save destination</TextBlock.Text>
<TextBlock.ToolTip>Extended mode only. Where captured images are stored: SD card, directly to the PC (no card needed), or both. Reconnect after changing.</TextBlock.ToolTip>
</TextBlock>
<ComboBox MinWidth="140" Margin="6,0,0,0" SelectedIndex="{Binding SaveTarget}">
<ComboBoxItem Content="SD card only" />
<ComboBoxItem Content="PC only (cardless)" />
<ComboBoxItem Content="PC + SD card" />
</ComboBox>
</StackPanel>
<Separator Margin="0,0,0,8" />
<!--<StackPanel Orientation="Horizontal">
<TextBlock Text="Default Notification Message" />
<TextBox MinWidth="50" Text="{Binding DefaultNotificationMessage}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Profile Specific Notification Message" />
<TextBox MinWidth="50" Text="{Binding ProfileSpecificNotificationMessage}" />
</StackPanel>-->
<StackPanel Orientation="Horizontal">
<TextBlock>
<TextBlock.Text>Override Sensor Width</TextBlock.Text>
<TextBlock.ToolTip>In case the camera is not recognized or the embedded sensor values are not correct insert here in pixels the true value or 0 to use the sdk values</TextBlock.ToolTip>
</TextBlock>
<TextBox MinWidth="50" Text="{Binding SensorWidth}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock>
<TextBlock.Text>Override Sensor Height</TextBlock.Text>
<TextBlock.ToolTip>In case the camera is not recognized or the embedded sensor values are not correct insert here in pixels the true value or 0 to use the sdk values</TextBlock.ToolTip>
</TextBlock>
<TextBox MinWidth="50" Text="{Binding SensorHeight}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock>
<TextBlock.Text>Override Pixel Pitch</TextBlock.Text>
<TextBlock.ToolTip>In case the camera is not recognized or the embedded sensor values are not correct insert here in pixels the true value or 0 to use the sdk values</TextBlock.ToolTip>
</TextBlock>
<TextBox MinWidth="50" Text="{Binding PixelPitch}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock>
<TextBlock.Text>Override Bit Depth</TextBlock.Text>
<TextBlock.ToolTip>Default driver uses bit depth of 14. if you prefer another enter it here</TextBlock.ToolTip>
</TextBlock>
<TextBox MinWidth="50" Text="{Binding BitDepth}" />
</StackPanel>
</StackPanel>
</DataTemplate>
</ResourceDictionary>