예제 #1
0
 public ATMLTranslatorToolWindow(ITranslatorNavigator navigator)
 {
     InitializeComponent();
     InitSourceTypes();
     _bindingSource                 = new BindingSource();
     _navigator                     = navigator;
     _navigator.FileAdded          += NavigatorOnFileAdded;
     _navigator.FileDeleted        += NavigatorOnFileDeleted;
     _translatorOutputWindow        = new ATMLTranslatorOutputWindow();
     edtSourceDocument.Lexing.Lexer = Lexer.Fortran;
     edtSourceDocument.ConfigurationManager.Language = "fortran";
     btnParseSourceDocument.Enabled     = false;
     edtSourceDocument.ModifiedChanged += edtSourceDocument_ModifiedChanged;
     edtSourceDocument.KeyUp           += edtSourceDocument_KeyUp;
     edtSourceDocument.NativeInterface.SetReadOnly(true);
     ProjectManager.Instance.ProjectOpened  += InstanceOnProjectOpened;
     ProjectManager.Instance.ProjectClosing += InstanceOnProjectClosing;
     dgBuildList.Resize += DgBuildListOnResize;
     dgPropertyInfo.Columns.Add("name", "Property");
     dgPropertyInfo.Columns.Add("value", "Value");
     dgPropertyInfo.RowsDefaultCellStyle.BackColor = Color.Honeydew;
     dgPropertyInfo.Resize += (sender, args) => ResizePropertyGrid();
     dgPropertyInfo.EditingControlShowing += DgPropertyInfoOnEditingControlShowing;
     dgBuildList.ReadOnly             = true;
     btnSaveTranslationConfig.Visible = false;
     btnUndo.Visible = false;
     ResizePropertyGrid();
     SetButtonStates();
 }
 public ATMLTranslatorToolWindow( ITranslatorNavigator navigator )
 {
     InitializeComponent();
     InitSourceTypes();
     _bindingSource = new BindingSource();
     _navigator = navigator;
     _navigator.FileAdded += NavigatorOnFileAdded;
     _navigator.FileDeleted += NavigatorOnFileDeleted;
     _translatorOutputWindow = new ATMLTranslatorOutputWindow();
     edtSourceDocument.Lexing.Lexer = Lexer.Fortran;
     edtSourceDocument.ConfigurationManager.Language = "fortran";
     btnParseSourceDocument.Enabled = false;
     edtSourceDocument.ModifiedChanged += edtSourceDocument_ModifiedChanged;
     edtSourceDocument.KeyUp += edtSourceDocument_KeyUp;
     edtSourceDocument.NativeInterface.SetReadOnly( true );
     ProjectManager.Instance.ProjectOpened += InstanceOnProjectOpened;
     ProjectManager.Instance.ProjectClosing += InstanceOnProjectClosing;
     dgBuildList.Resize += DgBuildListOnResize;
     dgPropertyInfo.Columns.Add( "name", "Property" );
     dgPropertyInfo.Columns.Add( "value", "Value" );
     dgPropertyInfo.RowsDefaultCellStyle.BackColor = Color.Honeydew;
     dgPropertyInfo.Resize += ( sender, args ) => ResizePropertyGrid();
     dgPropertyInfo.EditingControlShowing += DgPropertyInfoOnEditingControlShowing;
     dgBuildList.ReadOnly = true;
     btnSaveTranslationConfig.Visible = false;
     btnUndo.Visible = false;
     ResizePropertyGrid();
     SetButtonStates();
 }
예제 #3
0
 public void SetNavigator(ITranslatorNavigator navigator)
 {
     _navigator = navigator;
     _navigator.SelectATMLTestDescriptionDocument += _navigator_SelectATMLTestDescription;
     _navigator.SelectSourceDocument += _navigator_SelectSourceDocument;
 }
예제 #4
0
 public void SetNavigator( ITranslatorNavigator navigator )
 {
     _navigator = navigator;
     _navigator.SelectATMLTestDescriptionDocument += _navigator_SelectATMLTestDescription;
     _navigator.SelectSourceDocument += _navigator_SelectSourceDocument;
 }