root / trunk / Pithos.Client.WPF / PreferencesView.xaml @ 9bae55d1
History | View | Annotate | Download (11.8 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" Title="Pithos Preferences" Height="382" Width="445" WindowStartupLocation="CenterScreen" Background="#FFD4D0C8"> |
6 |
<Window.Resources> |
7 |
<ResourceDictionary> |
8 |
<ResourceDictionary.MergedDictionaries> |
9 |
<ResourceDictionary Source="PithosStyles.xaml" /> |
10 |
</ResourceDictionary.MergedDictionaries> |
11 |
</ResourceDictionary> |
12 |
</Window.Resources> |
13 |
|
14 |
<Grid> |
15 |
<Grid.RowDefinitions> |
16 |
<RowDefinition Height="*"/> |
17 |
<RowDefinition Height="Auto"/> |
18 |
</Grid.RowDefinitions> |
19 |
|
20 |
<tb:TaskbarIcon x:Name="PithosIcon" |
21 |
IconSource="{Binding StatusIcon}" |
22 |
ToolTipText="{Binding StatusMessage}" |
23 |
|
24 |
MenuActivation="LeftOrRightClick" |
25 |
DoubleClickCommand="{Binding OpenPithosFolderCommand}"> |
26 |
<tb:TaskbarIcon.ContextMenu> |
27 |
<ContextMenu x:Name="TaskbarMenu" > |
28 |
<MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" /> |
29 |
<MenuItem Header="Launch PITHOS Site" x:Name="GoToSite" cal:Message.Attach="GoToSite" /> |
30 |
<MenuItem Header="Recently Changed Files" x:Name="RecentFiles" ItemsSource="{Binding RecentFiles}"> |
31 |
<MenuItem.ItemTemplate> |
32 |
<DataTemplate> |
33 |
<TextBlock Text="{Binding FileName}"/> |
34 |
</DataTemplate> |
35 |
</MenuItem.ItemTemplate> |
36 |
</MenuItem> |
37 |
<Separator /> |
38 |
<MenuItem Header="{Binding UsageMessage}" x:Name="UsageMessage" /> |
39 |
<Separator /> |
40 |
<MenuItem Header="{Binding StatusMessage}" x:Name="StatusMessage" /> |
41 |
<Separator /> |
42 |
<MenuItem Header="Pause Synching" x:Name="ToggleSynching" cal:Message.Attach="ToggleSynching" /> |
43 |
<Separator /> |
44 |
<MenuItem Header="Preferences ..." x:Name="ShowPreferences" cal:Message.Attach="ShowPreferences" /> |
45 |
<Separator /> |
46 |
<MenuItem Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" /> |
47 |
</ContextMenu> |
48 |
</tb:TaskbarIcon.ContextMenu> |
49 |
</tb:TaskbarIcon> |
50 |
|
51 |
|
52 |
|
53 |
<TabControl Grid.Row="0"> |
54 |
<TabItem > |
55 |
<TabItem.Header> |
56 |
<StackPanel> |
57 |
<Image Source="/Pithos.Client.WPF;component/Images/General.png" Stretch="Uniform" Height="32"/> |
58 |
<TextBlock Text="General"/> |
59 |
</StackPanel> |
60 |
</TabItem.Header> |
61 |
<GroupBox Height="66" VerticalAlignment="Top" Name="groupBox1" Margin="10,5"> |
62 |
<StackPanel> |
63 |
<CheckBox Content="Show Desktop Notifications" Height="16" Name="Settings_ShowDesktopNotifications" Margin="5,10,5,0" /> |
64 |
<CheckBox Content="Start on System Startup" Height="16" Name="Settings_StartOnSystemStartup" Margin="5,5,5,0" /> |
65 |
</StackPanel> |
66 |
</GroupBox> |
67 |
</TabItem> |
68 |
<TabItem > |
69 |
<TabItem.Header> |
70 |
<StackPanel> |
71 |
<Image Source="/Pithos.Client.WPF;component/Images/Accounts.png" Stretch="Uniform" Height="32"/> |
72 |
<TextBlock Text="Accounts"/> |
73 |
</StackPanel> |
74 |
</TabItem.Header> |
75 |
<StackPanel Orientation="Horizontal"> |
76 |
<Grid Margin="5,10,5,5"> |
77 |
<Grid.RowDefinitions> |
78 |
<RowDefinition Height="*"/> |
79 |
<RowDefinition Height="Auto"/> |
80 |
</Grid.RowDefinitions> |
81 |
<ListBox Name="Settings_Accounts" SelectedItem="{Binding CurrentAccount}" Grid.Row="0" DisplayMemberPath="AccountName" VerticalAlignment="Stretch" > |
82 |
|
83 |
</ListBox> |
84 |
<StackPanel Orientation="Horizontal" Grid.Row="1"> |
85 |
<Button Name="AddAccount" Content="Add" Style="{StaticResource ButtonStyle}" Width="50"/> |
86 |
<Button Name="RemoveAccount" Content="Remove" Style="{StaticResource ButtonStyle}" Width="50"/> |
87 |
</StackPanel> |
88 |
</Grid> |
89 |
<GroupBox Header="Account" Padding="5" Margin="5" Height="137" HorizontalAlignment="Stretch" VerticalAlignment="Top" Width="272"> |
90 |
<Grid> |
91 |
<Grid.ColumnDefinitions> |
92 |
<ColumnDefinition Width="Auto"/> |
93 |
<ColumnDefinition Width="91*"/> |
94 |
</Grid.ColumnDefinitions> |
95 |
<Grid.RowDefinitions> |
96 |
<RowDefinition Height="Auto"/> |
97 |
<RowDefinition Height="Auto"/> |
98 |
<RowDefinition Height="Auto"/> |
99 |
<RowDefinition /> |
100 |
</Grid.RowDefinitions> |
101 |
<Label Content="Account" Grid.Column="0" Grid.Row="0" Margin="0,5" HorizontalAlignment="Left"/> |
102 |
<TextBox Name="CurrentAccount_AccountName" Grid.Column="1" Grid.Row="0" Margin="5"/> |
103 |
<Label Content="API Key" Grid.Column="0" Grid.Row="1" Margin="0,5" HorizontalAlignment="Left"/> |
104 |
<TextBox Name="CurrentAccount_ApiKey" Grid.Column="1" Grid.Row="1" Margin="5"/> |
105 |
<Button Name="SelectSyncFolders" Content="Selective Sync" Width="Auto" HorizontalAlignment="Left" Style="{StaticResource ButtonStyle}" Grid.Column="1" Grid.Row="2"/> |
106 |
</Grid> |
107 |
</GroupBox> |
108 |
</StackPanel> |
109 |
</TabItem> |
110 |
<TabItem > |
111 |
<TabItem.Header> |
112 |
<StackPanel> |
113 |
<Image Source="/Pithos.Client.WPF;component/Images/Bandwidth.png" Stretch="Uniform" Height="32"/> |
114 |
<TextBlock Text="Bandwidth"/> |
115 |
</StackPanel> |
116 |
</TabItem.Header> |
117 |
<StackPanel> |
118 |
<GroupBox Header="Download Rate" Height="100" Margin="10,5" VerticalAlignment="Top"> |
119 |
<Grid /> |
120 |
</GroupBox> |
121 |
<GroupBox Header="Upload Rate" Height="100" Margin="10,5" VerticalAlignment="Top"> |
122 |
<Grid /> |
123 |
</GroupBox> |
124 |
</StackPanel> |
125 |
</TabItem> |
126 |
<TabItem > |
127 |
<TabItem.Header> |
128 |
<StackPanel> |
129 |
<Image Source="/Pithos.Client.WPF;component/Images/Network.png" Stretch="Uniform" Height="32"/> |
130 |
<TextBlock Text="Proxy"/> |
131 |
</StackPanel> |
132 |
</TabItem.Header> |
133 |
<GroupBox Header="Proxy Settings" Height="275" Margin="10,5" VerticalAlignment="Top" Width="396"> |
134 |
<Grid> |
135 |
<RadioButton Content="No Proxy" Margin="5,2,5,2" Height="16" VerticalAlignment="Top"/> |
136 |
<RadioButton Content="Use System Defaults" Margin="5,22,5,2" Height="16" VerticalAlignment="Top"/> |
137 |
<RadioButton Content="Manual" Margin="5,42,5,2" Height="16" VerticalAlignment="Top"/> |
138 |
<Label Content="Proxy Type" Height="28" HorizontalAlignment="Left" Margin="5,56,0,0" Name="label1" VerticalAlignment="Top" Target="{Binding}" /> |
139 |
<ComboBox Height="23" HorizontalAlignment="Left" Margin="76,61,0,0" Name="Settings_ProxyType" VerticalAlignment="Top" Width="71"> |
140 |
<ComboBoxItem Content="HTTP" IsSelected="True" /> |
141 |
<ComboBoxItem Content="SOCKS4" /> |
142 |
<ComboBoxItem Content="SOCKS5" /> |
143 |
</ComboBox> |
144 |
<Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="7,86,0,0" Name="label2" VerticalAlignment="Top" /> |
145 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="76,90,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" /> |
146 |
<TextBlock Height="23" HorizontalAlignment="Left" Margin="244,90,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" /> |
147 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="254,90,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" /> |
148 |
|
149 |
<GroupBox Height="109" HorizontalAlignment="Left" Margin="7,119,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" > |
150 |
<GroupBox.Header> |
151 |
<CheckBox Content="Proxy requires authentication" Height="16" VerticalAlignment="Top" Name="Settings_ProxyAuthentication" /> |
152 |
</GroupBox.Header> |
153 |
<Grid> |
154 |
<Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="0,6,0,0" Name="label3" VerticalAlignment="Top" /> |
155 |
<Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="0,32,0,0" Name="label4" VerticalAlignment="Top" /> |
156 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="65,6,0,0" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" /> |
157 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="65,37,0,0" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" /> |
158 |
</Grid> |
159 |
</GroupBox> |
160 |
</Grid> |
161 |
</GroupBox> |
162 |
</TabItem> |
163 |
<TabItem > |
164 |
<TabItem.Header> |
165 |
<StackPanel> |
166 |
<Image Source="/Pithos.Client.WPF;component/Images/Advanced.png" Stretch="Uniform" Height="32"/> |
167 |
<TextBlock Text="Advanced"/> |
168 |
</StackPanel> |
169 |
</TabItem.Header> |
170 |
<StackPanel> |
171 |
|
172 |
<GroupBox Header="Pithos Folder" Height="60" Name="groupBox3" Margin="5" VerticalAlignment="Top"> |
173 |
<Grid> |
174 |
<TextBox Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Settings_PithosPath" VerticalAlignment="Top" Width="247" /> |
175 |
<Button Content="Move" Height="23" HorizontalAlignment="Left" Margin="259,6,0,0" Name="ChangePithosFolder" VerticalAlignment="Top" Width="75" /> |
176 |
</Grid> |
177 |
</GroupBox> |
178 |
<CheckBox Content="Activate Shell Extensions" Height="16" HorizontalAlignment="Left" Margin="5" Name="ExtensionsActivated" VerticalAlignment="Top" /> |
179 |
</StackPanel> |
180 |
</TabItem> |
181 |
</TabControl> |
182 |
|
183 |
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right"> |
184 |
<Button Name="SaveChanges" Content="OK" Click="SaveChanges_Click" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
185 |
<Button Name="RejectChanges" Content="Cancel" Click="RejectChanges_Click" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/> |
186 |
<Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" /> |
187 |
</StackPanel> |
188 |
</Grid> |
189 |
</Window> |