C# Class Nitra.Visualizer.MainWindow

Interaction logic for MainWindow.xaml
Show file Open project: rsdn/nitra

Public Methods

Method Description
ColorFromArgb ( int argb ) : Color
MainWindow ( ) : Common

Protected Methods

Method Description
OnSourceInitialized ( EventArgs e ) : void

Private Methods

Method Description
AddFile_MenuItem_OnClick ( object sender, RoutedEventArgs e ) : void
AddNewFileToMultitest ( TestFolderVm testFolder ) : Nitra.Visualizer.ViewModels.TestVm
AddTest ( ) : void
Caret_PositionChanged ( object sender, EventArgs e ) : void
ChangeCurrentTest ( TestSuiteVm newTestSuite, TestFolderVm newTestFolder, Nitra.Visualizer.ViewModels.TestVm newTest, string code ) : void
CheckTestFolder ( ) : bool
ClearAll ( ) : void
ClearAstHighlighting ( ) : void
ClearHighlighting ( ) : void
ClearMarkers ( ) : void
CommandBinding_CanAddTest ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanOnAddTestSuite ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanOnEditTestSuite ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanRemoveTest ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanRemoveTestSuite ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanRunTest ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CommandBinding_CanShowGrammar ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
CompleteWord ( int pos, IAst astRoot ) : List
CopyReflectionNodeText ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
CopyReflectionText ( object sender, RoutedEventArgs e ) : void
CopyTreeNodeToClipboard ( object node ) : void
Delete ( ) : void
DeleteFile_MenuItem_OnClick ( object sender, RoutedEventArgs e ) : void
Diff ( string textA, string textB, int rangeToShow = 3 ) : List
DoParse ( ) : void
EditTestSuite ( bool create ) : void
EventSetter_OnHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
FindNode ( IEnumerable items, int p ) : ReflectionStruct
FindNode ( System.Windows.Controls.TreeViewItem item, int pos, List checkedSpans = null ) : System.Windows.Controls.TreeViewItem
GetPlacement ( ) : string
GetRecoveryAlgorithm ( ) : RecoveryAlgorithm
HighlightLine ( HighlightLineEventArgs e, ImmutableArray spans ) : void
IsIdenrChar ( char c ) : bool
IsIgnoredProperty ( PropertyInfo prop ) : bool
LoadTests ( ) : void
MakeHighlightingColor ( SpanClass spanClass ) : ICSharpCode.AvalonEdit.Highlighting.HighlightingColor
MakeLine ( string text, System.Windows.Media.Brush brush = null ) : System.Windows.Documents.Inline[]
MakeTestFileName ( TestFolderVm testFolder ) : string
MenuItem_Click ( object sender, RoutedEventArgs e ) : void
ObjectToItem ( PropertyInfo prop, object obj ) : System.Windows.Controls.TreeViewItem
OnAddExistsTestSuite ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnAddTest ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnAddTestSuite ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnEditTestSuite ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnRemoveTest ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnRemoveTestSuite ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnReparse ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnRunTest ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnRunTests ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnShowGrammar ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSolutionNew ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSolutionOpen ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnUpdateTest ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnUsePanicRecovery ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OpenSolution ( string solutionFilePath ) : void
ReadValue ( System.Windows.Controls.TreeViewItem tvi, object obj, System t, PropertyInfo prop ) : void
RecentFileList_OnMenuClick ( object sender, RecentFileList e ) : void
RenderXamlForDeclaration ( string name, IAst ast ) : string
RenderXamlForSeq ( string name, int count, IEnumerable items ) : string
RenderXamlForValue ( PropertyInfo prop, object obj ) : string
RenderXamlForlist ( string name, IAstList items ) : string
Reparse ( ) : void
ResetHighlightingStyles ( ) : void
RunTest ( ) : void
RunTest ( ITest test ) : void
RunTest ( TestFolderVm testFolder ) : void
RunTest ( Nitra.Visualizer.ViewModels.TestVm test ) : void
RunTests ( ) : void
SaveSelectedTestAndTestSuite ( ) : void
SelectCodeForDeclarationPart ( object sender ) : void
SelectTest ( string testSuitePath, string testName, string selectedTestFolder ) : void
SelectText ( File file, NSpan span ) : void
SelectText ( ILocated loc ) : void
SelectText ( Location loc ) : void
SetPlacement ( string placementXml ) : void
ShowAstNodeForCaret ( ) : void
ShowCompletionWindow ( int pos ) : void
ShowDiff ( Nitra.Visualizer.ViewModels.TestVm test ) : void
ShowInfo ( ) : void
ShowNodeForCaret ( ) : void
ShowParseTreeNodeForCaret ( ) : void
Split ( string gold ) : string[]
TestFullPath ( string path ) : string
TryHighlightBraces ( int caretPos ) : void
TryMatchBrace ( NSpan brace, int pos, int gotoPos ) : bool
TryMatchBraces ( ) : void
TryReportError ( ) : void
TrySelectTextForSymbol ( DeclarationSymbol symbol, System.Windows.Controls.TreeViewItem tvi ) : void
TviExpanded ( System.Windows.Controls.TreeViewItem tvi ) : void
TviOnExpanded ( object sender, RoutedEventArgs routedEventArgs ) : void
TviOnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
TviOnMouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
UpdateDeclarations ( ) : void
UpdateHighlightingStyles ( AsyncServerMessage languageInfo ) : void
UpdateHtmlPrettyPrint ( ) : void
UpdateInfo ( ) : void
UpdateKeywordSpanInfos ( AsyncServerMessage keywordHighlighting ) : void
UpdateReflection ( ) : void
UpdateSymbolsSpanInfos ( AsyncServerMessage symbolsHighlighting ) : void
UpdateTextPrettyPrint ( ) : void
Window_Closing ( object sender, System e ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void
_astTreeView_SelectedItemChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
_configComboBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
_control_KeyDown_resize ( object sender, System.Windows.Input.KeyEventArgs e ) : void
_copyButton_Click ( object sender, RoutedEventArgs e ) : void
_declarationsTreeView_SelectedItemChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
_errorsTreeView_CopyNodeText ( object sender, RoutedEventArgs e ) : void
_parseTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
_reflectionTreeView_SelectedItemChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
_tabControl_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
_testsTreeView_CopyNodeText ( object sender, RoutedEventArgs e ) : void
_testsTreeView_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_testsTreeView_SelectedItemChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
errorNode_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
item_Click ( object sender, RoutedEventArgs e ) : void
menu_Closed ( object sender, RoutedEventArgs e ) : void
textBox1_GotFocus ( object sender, RoutedEventArgs e ) : void
textBox1_HighlightLine ( object sender, HighlightLineEventArgs e ) : void
textBox1_LostFocus ( object sender, RoutedEventArgs e ) : void
textBox1_MouseHover ( object sender, System.Windows.Input.MouseEventArgs e ) : void
textBox1_MouseHoverStopped ( object sender, System.Windows.Input.MouseEventArgs e ) : void
textBox1_TextChanged ( object sender, EventArgs e ) : void

Method Details

ColorFromArgb() public method

public ColorFromArgb ( int argb ) : Color
argb int
return Color

MainWindow() public method

public MainWindow ( ) : Common
return Common

OnSourceInitialized() protected method

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
return void