9 changed files
BExplorer/BetterExplorer | ||
Customize | ||
CustomizeQAT.xaml | ||
Tabs | ||
SavedTabsList.cs | ||
Translation | ||
DefaultLocale.xaml | ||
fmAbout.xaml | ||
Shell | ||
FolderSelectDialog.cs | ||
Icons.cs | ||
NavigationLog.cs | ||
Reflector.cs | ||
ShellLibrary.cs | ||
CustomizeQAT.xaml
/BExplorer/BetterExplorer/Customize/CustomizeQAT.xaml-4+4/BExplorer/BetterExplorer/Customize/CustomizeQAT.xaml
Add comment 6 <Grid>
Add comment 7 <ListBox HorizontalAlignment="Left" x:Name="AllControls" Margin="30,30,0,55" Width="200"/>
Add comment 8 <ListBox x:Name="QATControls" Margin="0,30,90,55" HorizontalAlignment="Right" Width="200"/>
Add comment 9 Minus <TextBlock HorizontalAlignment="Left" Margin="30,9,0,0" TextWrapping="Wrap" Text="Add or remove items from the Quick Access Toolbar:" VerticalAlignment="Top"/>
Add comment 9 Plus <TextBlock HorizontalAlignment="Left" Margin="30,9,0,0" TextWrapping="Wrap" Text="{DynamicResource CustomizeQAT_Textbox1}" VerticalAlignment="Top"/>
Add comment 10 <Grid Margin="0,0,60,25" HorizontalAlignment="Center" VerticalAlignment="Center" Width="70">
Add comment 11 <Button Content="Add »" x:Name="btnAdd" VerticalAlignment="Top" HorizontalAlignment="Left" Width="70" Click="btnAdd_Click"/>
Add comment 12 <Button Content="« Remove" x:Name="btnRemove" Margin="0,27,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="70" Click="btnRemove_Click"/>
Add comment 15 <Button Content="Move Up" x:Name="btnMoveUp" Margin="0,0,0,28" Click="btnMoveUp_Click" />
Add comment 16 <Button Content="Move Down" x:Name="btnMoveDown" Margin="0,28,0,0" VerticalAlignment="Top" Click="btnMoveDown_Click" />
Add comment 17 </Grid>
Add comment 18 Minus <Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Right" Margin="0,0,10,20" VerticalAlignment="Bottom" Width="75" Click="btnCancel_Click"/>
Add comment 19 Minus <Button Content="Apply" HorizontalAlignment="Right" Margin="0,0,90,20" VerticalAlignment="Bottom" Width="75" Click="btnApply_Click"/>
Add comment 20 Minus <Button x:Name="btnOkay" Content="OK" HorizontalAlignment="Right" Margin="0,0,170,20" VerticalAlignment="Bottom" Width="75" Click="btnOkay_Click"/>
Add comment 18 Plus <Button x:Name="btnCancel" Content="{StaticResource txtCancel}" HorizontalAlignment="Right" Margin="0,0,10,20" VerticalAlignment="Bottom" Width="75" Click="btnCancel_Click"/>
Add comment 19 Plus <Button Content="{StaticResource txtApply}" HorizontalAlignment="Right" Margin="0,0,90,20" VerticalAlignment="Bottom" Width="75" Click="btnApply_Click"/>
Add comment 20 Plus <Button x:Name="btnOkay" Content="{StaticResource txtOK}" HorizontalAlignment="Right" Margin="0,0,170,20" VerticalAlignment="Bottom" Width="75" Click="btnOkay_Click"/>
Add comment 21 <TextBlock HorizontalAlignment="Left" Margin="30,281,0,0" TextWrapping="Wrap" Text="Note: This feature is still experimental." VerticalAlignment="Top"/>
Add comment 22 </Grid>
Add comment 23 </Window>
SavedTabsList.cs
/BExplorer/BetterExplorer/Tabs/SavedTabsList.cs-40+34/BExplorer/BetterExplorer/Tabs/SavedTabsList.cs
Add comment 2 using System.Collections.Generic;
Add comment 3 using System.IO;
Add comment 4
Add comment 5 Minus namespace BetterExplorer {
Add comment 5 Plus namespace BetterExplorer
Add comment 6 Plus {
Add comment 6 7
Add comment 7 8 /// <summary>
Add comment 8 9 /// Adds a new string to the tab collection. If a value already exists in the list, though, an
Add comment 9 10 /// ArgumentOutOfRangeException will be thrown.
Add comment 10 11 /// </summary>
Add comment 11 Minus public class SavedTabsList : List<string> {
Add comment 12 Plus public class SavedTabsList : List<string>
Add comment 13 Plus {
Add comment 12 14
Add comment 13 Minus public static SavedTabsList CreateFromString(string values) {
Add comment 15 Plus public static SavedTabsList CreateFromString(string values)
Add comment 16 Plus {
Add comment 14 17 var o = new SavedTabsList();
Add comment 15 18 o.AddRange(values.Split('|'));
Add comment 16 19 return o;
Add comment 17 20 }
Add comment 18 21
Add comment 19 Minus public static SavedTabsList LoadTabList(string file) {
Add comment 20 Minus /*
Add comment 21 Minus string line;
Add comment 22 Minus using (StreamReader sr = new StreamReader(file)) {
Add comment 23 Minus line = sr.ReadLine();
Add comment 24 Minus }
Add comment 25 Minus return SavedTabsList.CreateFromString(line);
Add comment 26 Minus */
Add comment 27 Minus
Add comment 28 Minus using (StreamReader sr = new StreamReader(file)) {
Add comment 22 Plus public static SavedTabsList LoadTabList(string file)
Add comment 23 Plus {
Add comment 24 Plus using (StreamReader sr = new StreamReader(file))
Add comment 25 Plus {
Add comment 29 26 return SavedTabsList.CreateFromString(sr.ReadLine());
Add comment 30 27 }
Add comment 31 28 }
Add comment 32 29
Add comment 33 Minus public static void SaveTabList(SavedTabsList locs, string file) {
Add comment 34 Minus //if (Directory.Exists(sstdir) == false)
Add comment 35 Minus //{
Add comment 36 Minus // Directory.CreateDirectory(sstdir);
Add comment 37 Minus //}
Add comment 38 Minus
Add comment 39 Minus using (StreamWriter sw = new StreamWriter(file, false)) {
Add comment 30 Plus public static void SaveTabList(SavedTabsList locs, string file)
Add comment 31 Plus {
Add comment 32 Plus using (StreamWriter sw = new StreamWriter(file, false))
Add comment 33 Plus {
Add comment 40 34 sw.WriteLine(locs.ListToString());
Add comment 41 35 }
Add comment 42 36 }
Add comment 43 37
Add comment 44 Minus public new void Add(string loc) {
Add comment 45 Minus if (!this.Contains(loc)) {
Add comment 38 Plus public new void Add(string loc)
Add comment 39 Plus {
Add comment 40 Plus if (!this.Contains(loc))
Add comment 41 Plus {
Add comment 46 42 base.Add(loc);
Add comment 47 43 }
Add comment 48 Minus else {
Add comment 44 Plus else
Add comment 45 Plus {
Add comment 49 46 throw new ArgumentOutOfRangeException("loc", "This location already exists within this list.");
Add comment 50 47 }
Add comment 51 48 }
Add comment 52 49
Add comment 53 Minus public new void Remove(string loc) {
Add comment 54 Minus if (this.Contains(loc)) {
Add comment 50 Plus public new void Remove(string loc)
Add comment 51 Plus {
Add comment 52 Plus if (this.Contains(loc))
Add comment 53 Plus {
Add comment 55 54 base.Remove(loc);
Add comment 56 55 }
Add comment 57 Minus else {
Add comment 56 Plus else
Add comment 57 Plus {
Add comment 58 throw new ArgumentOutOfRangeException("loc", "This location does not exist in this list and cannot be removed.");
Add comment 59 }
Add comment 60 Minus }
Add comment 61 Minus
Add comment 62 Minus /*
Add comment 63 Minus public void SwitchPlaces(int val1, int val2) {
Add comment 64 Minus string o = this[val1];
Add comment 65 Minus string i = this[val2];
Add comment 66 Minus
Add comment 67 Minus this[val2] = o;
Add comment 68 Minus this[val1] = i;
Add comment 69 60 }
Add comment 70 Minus */
Add comment 71 61
Add comment 72 Minus public string ListToString() {
Add comment 62 Plus public string ListToString()
Add comment 63 Plus {
Add comment 73 64 string path = null;
Add comment 74 Minus foreach (string item in this) {
Add comment 65 Plus foreach (string item in this)
Add comment 66 Plus {
Add comment 75 67 //This way i think is better of making multiple line in .Net ;)
Add comment 76 Minus if (string.IsNullOrEmpty(path)) {
Add comment 68 Plus if (string.IsNullOrEmpty(path))
Add comment 69 Plus {
Add comment 77 70 path = item;
Add comment 78 71 }
Add comment 79 Minus else {
Add comment 72 Plus else
Add comment 73 Plus {
Add comment 80 74 path = path + "|" + item;
Add comment 81 75 }
Add comment 82 76 }
DefaultLocale.xaml
/BExplorer/BetterExplorer/Translation/DefaultLocale.xaml+3/BExplorer/BetterExplorer/Translation/DefaultLocale.xaml
Add comment 435 <system:String x:Key="ResizeImage_textBlock6">Or set specific size:</system:String>
Add comment 436 <system:String x:Key="RunExeAsUser_textBlock1">Enter the username you wish to run this app under:</system:String>
Add comment 437 <system:String x:Key="RunExeAsUser_Title">Run as Another User</system:String>
Add comment 438 Plus <system:String x:Key="frmAbout_description">This is a replacement for the standard Windows Explorer, adding a Ribbon, new features, and tabs.</system:String>
Add comment 439 Plus <system:String x:Key="frmAbout_info">Product details:</system:String>
Add comment 440 Plus <system:String x:Key="CustomizeQAT_Textbox1">Add or remove items from the Quick Access Toolbar:</system:String>
Add comment 438 441 <!--<system:String x:Key="blank"></system:String>-->
Add comment 439 442 </ResourceDictionary>
Add comment 440 443