[Qttabbar-Commit] SF.net SVN: qttabbar:[331] branches/options/QTTabBar
Status: Beta
Brought to you by:
masamunexgp
From: <ka...@us...> - 2011-10-09 05:59:47
|
Revision: 331 http://qttabbar.svn.sourceforge.net/qttabbar/?rev=331&view=rev Author: kawanon Date: 2011-10-09 05:59:40 +0000 (Sun, 09 Oct 2011) Log Message: ----------- Started work on image/text filetypes on Tooltips tab. Modified Paths: -------------- branches/options/QTTabBar/OptionsDialog.xaml branches/options/QTTabBar/OptionsDialog.xaml.cs Modified: branches/options/QTTabBar/OptionsDialog.xaml =================================================================== --- branches/options/QTTabBar/OptionsDialog.xaml 2011-10-04 21:02:01 UTC (rev 330) +++ branches/options/QTTabBar/OptionsDialog.xaml 2011-10-09 05:59:40 UTC (rev 331) @@ -896,73 +896,72 @@ Margin="8,1" Width="250"/> </StackPanel> - <Grid - Margin="13,1,0,1"> + <Grid Margin="13,15,0,1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> + <ColumnDefinition Width="80"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> - <ColumnDefinition Width="Auto"/> - <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> + <RowDefinition Height="Auto"/> + <RowDefinition Height="*"/> </Grid.RowDefinitions> <Label - Content="Image filetypes:" + Content="Image filetypes" Height="16" - Margin="2" - Padding="0"/> + Padding="0" FontWeight="Bold"/> <Label - Content="Text filetypes:" + Content="Text filetypes" Height="16" + Padding="0" + Grid.Column="2" FontWeight="Bold"/> + <ListBox + x:Name="lstImageFiletypes" + Width="150" + Height="200" Grid.Row="1" - Height="16" - Margin="2" - Padding="0"/> - <ComboBox + Grid.RowSpan="3" + Grid.Column="0"></ListBox> + <ListBox + x:Name="lstTextFiletypes" + Width="150" + Height="200" + Grid.Row="1" + Grid.RowSpan="3" + Grid.Column="2"></ListBox> + <Button + Content="Add" Grid.Column="1" + Grid.Row="1" Height="23" HorizontalAlignment="Left" - IsEditable="True" Margin="2" - VerticalAlignment="Top" + VerticalAlignment="Bottom" Width="60"/> <Button - Content="Add" - Grid.Column="2" + Content="Remove" + Grid.Column="1" + Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Top" Width="60"/> <Button - Content="Remove" - Grid.Column="3" - Height="23" - HorizontalAlignment="Left" - Margin="2,2,0,2" - Width="60"/> - <Button + x:Name="btnResetImageFiletypes" Content="Reset" - Grid.Column="4" - Height="23" - HorizontalAlignment="Left" - Margin="2" - VerticalAlignment="Top" - Width="60"/> - <ComboBox Grid.Column="1" - Grid.Row="1" + Grid.Row="3" Height="23" HorizontalAlignment="Left" - IsEditable="True" Margin="2" - VerticalAlignment="Top" - Width="60"/> + VerticalAlignment="Bottom" + Width="60" Click="btnResetImageFiletypes_Click" /> <Button Content="Add" - Grid.Column="2" + Grid.Column="3" Grid.Row="1" Height="23" HorizontalAlignment="Left" @@ -972,21 +971,22 @@ <Button Content="Remove" Grid.Column="3" - Grid.Row="1" + Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Top" Width="60"/> <Button + x:Name="btnResetTextFiletypes" Content="Reset" - Grid.Column="4" - Grid.Row="1" + Grid.Column="3" + Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="2" - VerticalAlignment="Top" - Width="60"/> + VerticalAlignment="Bottom" + Width="60" Click="btnResetTextFiletypes_Click" /> </Grid> </StackPanel> </TabItem> Modified: branches/options/QTTabBar/OptionsDialog.xaml.cs =================================================================== --- branches/options/QTTabBar/OptionsDialog.xaml.cs 2011-10-04 21:02:01 UTC (rev 330) +++ branches/options/QTTabBar/OptionsDialog.xaml.cs 2011-10-09 05:59:40 UTC (rev 331) @@ -474,8 +474,20 @@ #endregion + #region ---------- Tooltips ---------- + + private void btnResetImageFiletypes_Click(object sender, RoutedEventArgs e) { + lstImageFiletypes.ItemsSource = ThumbnailTooltipForm.MakeDefaultImgExts(); + } + + private void btnResetTextFiletypes_Click(object sender, RoutedEventArgs e) { + lstTextFiletypes.ItemsSource = new string[] { ".txt", ".ini", ".inf", ".cs", ".log", ".js", ".vbs" }; + } + + #endregion + #region ---------- Mouse ---------- - + private void InitializeMouse() { MouseBindings = new ObservableCollection<MouseEntry>(); foreach(var p in workingConfig.mouse.GlobalMouseActions) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |