Skip to content

Commit

Permalink
Filter based on access (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
sboulema committed Jan 30, 2017
1 parent 43bae59 commit 200f29c
Show file tree
Hide file tree
Showing 13 changed files with 395 additions and 136 deletions.
1 change: 1 addition & 0 deletions CodeNav/CodeNav.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<Compile Include="Helpers\LogHelper.cs" />
<Compile Include="Helpers\SortHelper.cs" />
<Compile Include="Helpers\VisibilityHelper.cs" />
<Compile Include="Models\CodeItemAccessEnum.cs" />
<Compile Include="Models\CodeItemKindEnum.cs" />
<Compile Include="OptionsToolWindow.cs">
<SubType>Form</SubType>
Expand Down
1 change: 1 addition & 0 deletions CodeNav/CodeViewUserControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private void ButtonFilter_OnClick(object sender, RoutedEventArgs e)
{
new FilterToolWindow().ShowDialog();
VisibilityHelper.SetCodeItemVisibility(_codeNav.CodeDocumentViewModel.CodeDocument);
VisibilityHelper.SetCodeItemVisibilityOnAccess(_codeNav.CodeDocumentViewModel.CodeDocument);
}

private void ButtonOptions_OnClick(object sender, RoutedEventArgs e)
Expand Down
18 changes: 17 additions & 1 deletion CodeNav/FilterToolWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions CodeNav/FilterToolWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ private void FilterToolWindow_Load(object sender, EventArgs e)
listView1.Items[7].Checked = Settings.Default.ShowProperties;
listView1.Items[8].Checked = Settings.Default.ShowStructs;
listView1.Items[9].Checked = Settings.Default.ShowVariables;

listView1.Items[10].Checked = Settings.Default.ShowPublic;
listView1.Items[11].Checked = Settings.Default.ShowPrivate;
listView1.Items[12].Checked = Settings.Default.ShowInternal;
listView1.Items[13].Checked = Settings.Default.ShowProtected;
}

private void okButton_Click(object sender, EventArgs e)
Expand All @@ -59,6 +64,11 @@ private void okButton_Click(object sender, EventArgs e)
Settings.Default.ShowStructs = listView1.Items[8].Checked;
Settings.Default.ShowVariables = listView1.Items[9].Checked;

Settings.Default.ShowPublic = listView1.Items[10].Checked;
Settings.Default.ShowPrivate = listView1.Items[11].Checked;
Settings.Default.ShowInternal = listView1.Items[12].Checked;
Settings.Default.ShowProtected = listView1.Items[13].Checked;

Close();
}
}
Expand Down
Loading

0 comments on commit 200f29c

Please sign in to comment.