root / trunk / Pithos.Client.WPF / PreferencesView.xaml @ 5120f3cb
History | View | Annotate | Download (14.5 kB)
1 |
<Window x:Class="Pithos.Client.WPF.PreferencesView" |
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification" |
5 |
xmlns:cal="http://www.caliburnproject.org" |
6 |
x:Name="TheView" |
7 |
Title="Pithos Preferences" Height="381" Width="548" |
8 |
ShowInTaskbar="true" |
9 |
WindowStartupLocation="CenterScreen" |
10 |
Icon="/Pithos.Client.WPF;component/Images/Tray.ico" |
11 |
Background="#FFD4D0C8"> |
12 |
<Window.Resources> |
13 |
<ResourceDictionary> |
14 |
<ResourceDictionary.MergedDictionaries> |
15 |
<ResourceDictionary Source="PithosStyles.xaml" /> |
16 |
</ResourceDictionary.MergedDictionaries> |
17 |
</ResourceDictionary> |
18 |
</Window.Resources> |
19 |
<!-- <Window.TaskbarItemInfo> |
20 |
<TaskbarItemInfo Description="{Binding StatusMessage}" > |
21 |
<TaskbarItemInfo.ThumbButtonInfos> |
22 |
<ThumbButtonInfo> |
23 |
|
24 |
</ThumbButtonInfo> |
25 |
</TaskbarItemInfo.ThumbButtonInfos> |
26 |
</TaskbarItemInfo> |
27 |
</Window.TaskbarItemInfo>--> |
28 |
<Grid> |
29 |
<Grid.RowDefinitions> |
30 |
<RowDefinition Height="*"/> |
31 |
<RowDefinition Height="Auto"/> |
32 |
</Grid.RowDefinitions> |
33 |
|
34 |
<tb:TaskbarIcon x:Name="TaskbarView" |
35 |
IconSource="{Binding StatusIcon}" |
36 |
ToolTipText="{Binding StatusMessage}" |
37 |
DataContext="{Binding Taskbar}" |
38 |
MenuActivation="LeftOrRightClick" |
39 |
DoubleClickCommand="{Binding DataContext.Taskbar.OpenPithosFolderCommand,ElementName=TheView}" |
40 |
cal:Bind.Model="{Binding DataContext.Taskbar,ElementName=TheView}"> |
41 |
<tb:TaskbarIcon.ContextMenu> |
42 |
<ContextMenu x:Name="TaskbarMenu" > |
43 |
<MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" FontWeight="Bold" /> |
44 |
<MenuItem Header="Launch PITHOS Site" x:Name="GoToSite" cal:Message.Attach="GoToSite" /> |
45 |
<MenuItem Header="Recently Changed Files" x:Name="Taskbar_RecentFiles" ItemsSource="{Binding RecentFiles}"> |
46 |
<MenuItem.ItemTemplate> |
47 |
<DataTemplate> |
48 |
<TextBlock Text="{Binding FileName}"/> |
49 |
</DataTemplate> |
50 |
</MenuItem.ItemTemplate> |
51 |
</MenuItem> |
52 |
<Separator /> |
53 |
<MenuItem Header="{Binding UsageMessage}" x:Name="UsageMessage" /> |
54 |
<Separator /> |
55 |
<MenuItem Header="{Binding StatusMessage}" x:Name="StatusMessage" /> |
56 |
<Separator /> |
57 |
<MenuItem Header="{Binding PauseSyncCaption}" x:Name="ToggleSynching" cal:Message.Attach="ToggleSynching" /> |
58 |
<Separator /> |
59 |
<MenuItem Header="Preferences ..." x:Name="ShowPreferences" Click="ShowPreferences_Click" cal:Message.Attach="ShowPreferences" /> |
60 |
<Separator /> |
61 |
<MenuItem Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" /> |
62 |
</ContextMenu> |
63 |
</tb:TaskbarIcon.ContextMenu> |
64 |
</tb:TaskbarIcon> |
65 |
|
66 |
|
67 |
|
68 |
<TabControl Grid.Row="0"> |
69 |
<TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
70 |
<TabItem.Header> |
71 |
<StackPanel> |
72 |
<Image Source="/Pithos.Client.WPF;component/Images/General.png" Stretch="Uniform" Height="32"/> |
73 |
<TextBlock Text="General"/> |
74 |
</StackPanel> |
75 |
</TabItem.Header> |
76 |
<GroupBox Height="66" VerticalAlignment="Top" Name="groupBox1" Margin="10,5"> |
77 |
<StackPanel> |
78 |
<CheckBox Content="Show Desktop Notifications" Height="16" Name="Settings_ShowDesktopNotifications" Margin="5,10,5,0" /> |
79 |
<CheckBox Content="Start on System Startup" Height="16" Name="Settings_StartOnSystemStartup" Margin="5,5,5,0" /> |
80 |
</StackPanel> |
81 |
</GroupBox> |
82 |
</TabItem> |
83 |
<TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
84 |
<TabItem.Header> |
85 |
<StackPanel> |
86 |
<Image Source="/Pithos.Client.WPF;component/Images/Accounts.png" Stretch="Uniform" Height="32"/> |
87 |
<TextBlock Text="Accounts"/> |
88 |
</StackPanel> |
89 |
</TabItem.Header> |
90 |
<Grid VerticalAlignment="Stretch" > |
91 |
<Grid.ColumnDefinitions> |
92 |
<ColumnDefinition Width="Auto"/> |
93 |
<ColumnDefinition Width="*"/> |
94 |
</Grid.ColumnDefinitions> |
95 |
<Grid Margin="5,10,5,5" Column="0" Width="150"> |
96 |
<Grid.RowDefinitions> |
97 |
<RowDefinition Height="*"/> |
98 |
<RowDefinition Height="Auto"/> |
99 |
</Grid.RowDefinitions> |
100 |
<ListBox Name="Settings_Accounts" SelectedIndex="{Binding SelectedAccountIndex}" Grid.Row="0" |
101 |
VerticalAlignment="Stretch" > |
102 |
<ListBox.ItemTemplate> |
103 |
<DataTemplate> |
104 |
<TextBlock Text="{Binding AccountName}" /> |
105 |
</DataTemplate> |
106 |
</ListBox.ItemTemplate> |
107 |
</ListBox> |
108 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
109 |
<Button Name="AddPithosAccount" Content="Add" Style="{StaticResource ButtonStyle}" Width="50"/> |
110 |
<Button Name="RemoveAccount" Content="Remove" Style="{StaticResource ButtonStyle}" Width="50"/> |
111 |
</StackPanel> |
112 |
</Grid> |
113 |
<GroupBox Header="Account" Padding="5" Margin="5" Height="231" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1"> |
114 |
<Grid> |
115 |
<Grid.ColumnDefinitions> |
116 |
<ColumnDefinition Width="Auto"/> |
117 |
<ColumnDefinition Width="91*"/> |
118 |
</Grid.ColumnDefinitions> |
119 |
<Grid.RowDefinitions> |
120 |
<RowDefinition Height="Auto"/> |
121 |
<RowDefinition Height="Auto"/> |
122 |
<RowDefinition Height="Auto"/> |
123 |
<RowDefinition Height="Auto"/> |
124 |
<RowDefinition Height="Auto"/> |
125 |
<RowDefinition Height="Auto"/> |
126 |
<RowDefinition /> |
127 |
</Grid.RowDefinitions> |
128 |
<Label Content="Account" Grid.Column="0" Grid.Row="0" Margin="0,5" HorizontalAlignment="Left"/> |
129 |
<TextBox Name="CurrentAccount_AccountName" Grid.Column="1" Grid.Row="0" Margin="5"/> |
130 |
<Label Content="API Key" Grid.Column="0" Grid.Row="1" Margin="0,5" HorizontalAlignment="Left"/> |
131 |
<TextBox Name="CurrentAccount_ApiKey" Grid.Column="1" Grid.Row="1" Margin="5"/> |
132 |
<Label Content="Folder" Grid.Column="0" Grid.Row="2" Margin="0,5" HorizontalAlignment="Left"/> |
133 |
<Grid Grid.Row="2" Grid.Column="1" > |
134 |
<Grid.ColumnDefinitions> |
135 |
<ColumnDefinition Width="*"/> |
136 |
<ColumnDefinition Width="Auto"/> |
137 |
</Grid.ColumnDefinitions> |
138 |
<TextBox Name="CurrentAccount_RootPath" Margin="5" HorizontalAlignment="Stretch" Grid.Column="0"/> |
139 |
<Button Name="MoveAccountFolder" Content="Move ..." Width="60" Height="30" Grid.Column="1" /> |
140 |
</Grid> |
141 |
<CheckBox Name="CurrentAccount_IsActive" Content="Account is Active" Grid.Column="1" Grid.Row="3" Margin="5"/> |
142 |
<CheckBox Name="CurrentAccount_UsePithos" Content="Use Pithos Extensions" Grid.Column="1" Grid.Row="4" Margin="5"/> |
143 |
<Button Name="SelectSyncFolders" Content="Selective Sync" Width="Auto" HorizontalAlignment="Left" Style="{StaticResource ButtonStyle}" Grid.Column="1" Grid.Row="5"/> |
144 |
|
145 |
</Grid> |
146 |
|
147 |
</GroupBox> |
148 |
|
149 |
</Grid> |
150 |
</TabItem> |
151 |
<TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
152 |
<TabItem.Header> |
153 |
<StackPanel> |
154 |
<Image Source="/Pithos.Client.WPF;component/Images/Bandwidth.png" Stretch="Uniform" Height="32"/> |
155 |
<TextBlock Text="Bandwidth"/> |
156 |
</StackPanel> |
157 |
</TabItem.Header> |
158 |
<StackPanel> |
159 |
<GroupBox Header="Download Rate" Height="100" Margin="10,5" VerticalAlignment="Top"> |
160 |
<Grid /> |
161 |
</GroupBox> |
162 |
<GroupBox Header="Upload Rate" Height="100" Margin="10,5" VerticalAlignment="Top"> |
163 |
<Grid /> |
164 |
</GroupBox> |
165 |
</StackPanel> |
166 |
</TabItem> |
167 |
<TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
168 |
<TabItem.Header> |
169 |
<StackPanel> |
170 |
<Image Source="/Pithos.Client.WPF;component/Images/Network.png" Stretch="Uniform" Height="32"/> |
171 |
<TextBlock Text="Proxy"/> |
172 |
</StackPanel> |
173 |
</TabItem.Header> |
174 |
<GroupBox Header="Proxy Settings" Height="275" Margin="10,5" VerticalAlignment="Top" Width="396"> |
175 |
<Grid> |
176 |
<RadioButton Name="Settings_UseDefaultProxy" Content="Use System Defaults" Margin="5,6,5,0" Height="16" VerticalAlignment="Top"/> |
177 |
<RadioButton Name="Settings_UseManualProxy" Content="Manual" Margin="5,28,5,0" Height="16" VerticalAlignment="Top"/> |
178 |
<Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="5,47,0,0" Name="label2" VerticalAlignment="Top" /> |
179 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="76,51,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/> |
180 |
<TextBlock Height="23" HorizontalAlignment="Left" Margin="244,51,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" /> |
181 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="254,51,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/> |
182 |
|
183 |
<GroupBox Height="109" HorizontalAlignment="Left" Margin="5,80,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"> |
184 |
<GroupBox.Header> |
185 |
<CheckBox Content="Proxy requires authentication" Height="16" VerticalAlignment="Top" Name="Settings_ProxyAuthentication" /> |
186 |
</GroupBox.Header> |
187 |
<Grid > |
188 |
<Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="0,6,0,0" Name="label3" VerticalAlignment="Top" /> |
189 |
<Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="0,32,0,0" Name="label4" VerticalAlignment="Top" /> |
190 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="65,6,0,0" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/> |
191 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="65,37,0,0" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/> |
192 |
</Grid> |
193 |
</GroupBox> |
194 |
</Grid> |
195 |
</GroupBox> |
196 |
</TabItem> |
197 |
<TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
198 |
<TabItem.Header> |
199 |
<StackPanel> |
200 |
<Image Source="/Pithos.Client.WPF;component/Images/Advanced.png" Stretch="Uniform" Height="32"/> |
201 |
<TextBlock Text="Advanced"/> |
202 |
</StackPanel> |
203 |
</TabItem.Header> |
204 |
<StackPanel> |
205 |
|
206 |
<GroupBox Header="Pithos Folder" Height="60" Name="groupBox3" Margin="5" VerticalAlignment="Top"> |
207 |
<Grid> |
208 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Settings_PithosPath" VerticalAlignment="Top" Width="247" /> |
209 |
<Button Content="Move" Height="23" HorizontalAlignment="Left" Margin="259,6,0,0" Name="ChangePithosFolder" VerticalAlignment="Top" Width="75" /> |
210 |
</Grid> |
211 |
</GroupBox> |
212 |
<CheckBox Content="Activate Shell Extensions" Height="16" HorizontalAlignment="Left" Margin="5" Name="ExtensionsActivated" VerticalAlignment="Top" /> |
213 |
<Button Content="Refresh Overlays" Name="RefreshOverlays" HorizontalAlignment="Left" Margin="5" Style="{StaticResource ButtonStyle}" Width="Auto" /> |
214 |
</StackPanel> |
215 |
</TabItem> |
216 |
</TabControl> |
217 |
|
218 |
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right"> |
219 |
<Button Name="SaveChanges" Content="OK" Click="SaveChanges_Click" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
220 |
<Button Name="RejectChanges" Content="Cancel" Click="RejectChanges_Click" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
221 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
222 |
</StackPanel> |
223 |
</Grid> |
224 |
</Window> |