2021-11-07 03:20:15 +00:00
|
|
|
<UserControl
|
|
|
|
|
x:Class="Flow.Launcher.Plugin.Program.Views.ProgramSetting"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:program="clr-namespace:Flow.Launcher.Plugin.Program"
|
2021-11-27 22:37:08 +00:00
|
|
|
Height="520"
|
2021-11-07 03:20:15 +00:00
|
|
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
|
|
|
|
mc:Ignorable="d">
|
2021-11-27 21:09:36 +00:00
|
|
|
<Grid Margin="0">
|
2014-03-29 06:42:43 +00:00
|
|
|
<Grid.RowDefinitions>
|
2021-11-27 22:37:08 +00:00
|
|
|
<RowDefinition Height="170" />
|
2021-11-07 03:20:15 +00:00
|
|
|
<RowDefinition Height="*" />
|
2021-11-27 21:09:36 +00:00
|
|
|
<RowDefinition Height="60" />
|
2014-03-29 06:42:43 +00:00
|
|
|
</Grid.RowDefinitions>
|
2021-11-07 03:20:15 +00:00
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2021-11-27 21:09:36 +00:00
|
|
|
Orientation="Vertical">
|
2021-11-07 03:20:15 +00:00
|
|
|
<StackPanel Width="Auto" Orientation="Vertical">
|
2021-11-27 22:37:08 +00:00
|
|
|
<StackPanel Width="Auto" Orientation="Horizontal">
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="StartMenuEnabled"
|
|
|
|
|
Width="200"
|
|
|
|
|
Margin="70,8,10,8"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_index_start}"
|
|
|
|
|
IsChecked="{Binding EnableStartMenuSource}"
|
|
|
|
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_start_tooltip}" />
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="RegistryEnabled"
|
|
|
|
|
Margin="70,8,10,8"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_index_registry}"
|
|
|
|
|
IsChecked="{Binding EnableRegistrySource}"
|
|
|
|
|
ToolTip="{DynamicResource flowlauncher_plugin_program_index_registry_tooltip}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Separator
|
|
|
|
|
Height="1"
|
|
|
|
|
BorderBrush="{DynamicResource Color03B}"
|
|
|
|
|
BorderThickness="1" />
|
|
|
|
|
<StackPanel Width="Auto" Orientation="Horizontal">
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="HideLnkEnabled"
|
|
|
|
|
Width="200"
|
|
|
|
|
Margin="70,8,10,8"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath}"
|
2021-11-29 17:37:27 +00:00
|
|
|
IsChecked="{Binding EnableHideAppsPath}"
|
2021-11-27 22:37:08 +00:00
|
|
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hidelnkpath_tooltip}" />
|
|
|
|
|
<CheckBox
|
|
|
|
|
Name="DescriptionEnabled"
|
|
|
|
|
Margin="70,8,10,8"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_enable_description}"
|
|
|
|
|
IsChecked="{Binding EnableDescription}"
|
|
|
|
|
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_description_tooltip}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Separator
|
|
|
|
|
Height="1"
|
|
|
|
|
BorderBrush="{DynamicResource Color03B}"
|
|
|
|
|
BorderThickness="1" />
|
2015-05-02 13:47:03 +00:00
|
|
|
</StackPanel>
|
2021-11-07 03:20:15 +00:00
|
|
|
<StackPanel
|
|
|
|
|
Width="Auto"
|
2021-11-27 22:37:08 +00:00
|
|
|
Margin="10,6,0,0"
|
2021-11-27 21:09:36 +00:00
|
|
|
HorizontalAlignment="Left"
|
2021-11-07 03:20:15 +00:00
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnLoadAllProgramSource"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Click="btnLoadAllProgramSource_OnClick"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_all_programs}" />
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnProgramSuffixes"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Click="BtnProgramSuffixes_OnClick"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_suffixes}" />
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnReindex"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Click="btnReindex_Click"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_reindex}" />
|
2021-11-27 22:37:08 +00:00
|
|
|
<StackPanel
|
|
|
|
|
x:Name="indexingPanel"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Visibility="Hidden">
|
|
|
|
|
<ProgressBar
|
|
|
|
|
x:Name="progressBarIndexing"
|
|
|
|
|
Width="80"
|
|
|
|
|
Height="20"
|
|
|
|
|
IsIndeterminate="True"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="0" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Height="20"
|
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_indexing}" />
|
|
|
|
|
</StackPanel>
|
2019-10-17 20:38:21 +00:00
|
|
|
</StackPanel>
|
2014-08-13 15:16:45 +00:00
|
|
|
</StackPanel>
|
2021-11-07 03:20:15 +00:00
|
|
|
<ListView
|
|
|
|
|
x:Name="programSourceView"
|
|
|
|
|
Grid.Row="1"
|
2021-11-27 22:37:08 +00:00
|
|
|
Margin="20,0,20,0"
|
2021-11-07 03:20:15 +00:00
|
|
|
AllowDrop="True"
|
|
|
|
|
BorderBrush="DarkGray"
|
|
|
|
|
BorderThickness="1"
|
|
|
|
|
DragEnter="programSourceView_DragEnter"
|
|
|
|
|
Drop="programSourceView_Drop"
|
|
|
|
|
GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler"
|
|
|
|
|
PreviewMouseRightButtonUp="ProgramSourceView_PreviewMouseRightButtonUp"
|
|
|
|
|
SelectionMode="Extended"
|
|
|
|
|
Style="{StaticResource {x:Static GridView.GridViewStyleKey}}">
|
2019-10-14 21:05:21 +00:00
|
|
|
<ListView.ItemContainerStyle>
|
2021-11-27 23:18:44 +00:00
|
|
|
<!--<Style BasedOn="{StaticResource DefaultListViewItemStyle}" TargetType="ListViewItem"> for Darkmode Style -->
|
2019-10-14 21:05:21 +00:00
|
|
|
<Style TargetType="ListViewItem">
|
2021-11-07 03:20:15 +00:00
|
|
|
<EventSetter Event="PreviewMouseUp" Handler="Row_OnClick" />
|
2020-05-01 06:36:40 +00:00
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
2019-10-14 21:05:21 +00:00
|
|
|
</Style>
|
|
|
|
|
</ListView.ItemContainerStyle>
|
2014-03-29 06:42:43 +00:00
|
|
|
<ListView.View>
|
|
|
|
|
<GridView>
|
2021-11-07 03:20:15 +00:00
|
|
|
<GridViewColumn Width="150" Header="Name">
|
2019-09-05 22:06:51 +00:00
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
2021-11-07 03:20:15 +00:00
|
|
|
<TextBlock Text="{Binding Name}" />
|
2019-09-05 22:06:51 +00:00
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
2020-05-01 06:36:40 +00:00
|
|
|
<GridViewColumn Header="Enabled">
|
2019-09-07 05:58:13 +00:00
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
2021-11-07 03:20:15 +00:00
|
|
|
<TextBlock
|
|
|
|
|
MaxWidth="60"
|
|
|
|
|
Text="{Binding Enabled}"
|
|
|
|
|
TextAlignment="Center" />
|
2019-09-07 05:58:13 +00:00
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
2021-11-07 03:20:15 +00:00
|
|
|
<GridViewColumn Width="550" Header="{DynamicResource flowlauncher_plugin_program_location}">
|
2014-03-29 06:42:43 +00:00
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
2021-11-07 03:20:15 +00:00
|
|
|
<TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={program:LocationConverter}}" />
|
2014-03-29 06:42:43 +00:00
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
|
|
|
|
</GridView>
|
|
|
|
|
</ListView.View>
|
|
|
|
|
</ListView>
|
2021-11-07 03:20:15 +00:00
|
|
|
<DockPanel
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.RowSpan="1"
|
2021-11-27 21:09:36 +00:00
|
|
|
Margin="0,0,20,10">
|
2014-08-10 14:22:54 +00:00
|
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
2021-11-07 03:20:15 +00:00
|
|
|
<Button
|
|
|
|
|
x:Name="btnProgramSourceStatus"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10"
|
|
|
|
|
Click="btnProgramSourceStatus_OnClick"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_disable}" />
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnEditProgramSource"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10"
|
|
|
|
|
Click="btnEditProgramSource_OnClick"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_edit}" />
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnAddProgramSource"
|
|
|
|
|
Width="100"
|
|
|
|
|
Margin="10,10,0,10"
|
|
|
|
|
Click="btnAddProgramSource_OnClick"
|
|
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_add}" />
|
2014-08-10 14:22:54 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
</DockPanel>
|
2014-03-29 06:42:43 +00:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|
2016-08-19 22:24:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|