Пример #1
0
 private void txtText2_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!_isLoading)
     {
         this.IsDirty = true;
     }
 }
Пример #2
0
 private void fastColoredTextBox1_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     //  lasttext = fastColoredTextBox1.Text;
     if (MATH2.MasterForm.Clear)
     {
         Console.Clear();
     }
     comboBox1.Items.Clear();
     try
     {
         OnTextChanged(fastColoredTextBox1.Text);
     }
     catch { }
     try
     {
         // url = @"http://www.texrendr.com/cgi-bin/mathtex.cgi?\dpi{" + trackBar1.Value.ToString() + @"}" + LaTeX.Print(Infix.ParseOrThrow(fastColoredTextBox1.Text));
         //Console.WriteLine(url);
         laTeXDisplay1.LoadLatex(LaTeX.Print(Infix.ParseOrThrow(fastColoredTextBox1.Text)));
     }
     catch
     {
         //url = @"http://www.texrendr.com/cgi-bin/mathtex.cgi?\dpi{" + trackBar1.Value.ToString() + @"}" + fastColoredTextBox1.Text;
         laTeXDisplay1.LoadLatex(fastColoredTextBox1.Text);
     }
 }
Пример #3
0
 private void fctGenDescription_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (_dataFilled)
     {
         MakeSQL();
     }
 }
Пример #4
0
 private void fctDescription_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!DataFilled)
     {
         return;
     }
     MakeSQL();
 }
Пример #5
0
 private void fctbScript_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!initialLoad)
     {
         modifier.setCompiledState(false);
         modifier.valid = false;
     }
 }
Пример #6
0
 private void fctbItemXml_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (editModeEnabled)
     {
         btnEditSave.Enabled = true;
         dirtyUI             = true;
     }
 }
Пример #7
0
 /// <summary>
 /// Set <see cref="isDirty"/> to true.
 /// </summary>
 private void Fctb_Main_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!isDirty)
     {
         isDirty = true;
         UpdateTitleBarText();
     }
 }
        private void ExpressionEditor_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            ExpressionEditor_BeginEdit();

            if (!string.IsNullOrEmpty(UI.ExpressionEditor.Text))
            {
                ExpressionParser.SyntaxHighlight(UI.ExpressionEditor);
            }
        }
Пример #9
0
 private void fctGenDescription_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!_doEvents)
     {
         return;
     }
     _procedureObject.Description = fctGenDescription.Text;
     MakeSQL();
 }
Пример #10
0
        private void fastColoredTextBoxScript_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            var ev = GetSelectedEvent();

            if (ev != null)
            {
                ev.Script = e.ChangedRange.Text;
            }
        }
Пример #11
0
 private void fctGenDescription_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (!_dataFilled)
     {
         return;
     }
     _tableObject.primary_constraint.Description = fctGenDescription.Text;
     MakeSQL();
 }
Пример #12
0
 private void uiScriptBox_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if ((uiScriptBox.Tag as UITemplate) == null)
     {
         return;
     }
     (uiScriptBox.Tag as UITemplate).Code = uiScriptBox.Text;
     EditorEngine.Instance.HasEdit        = true;
 }
Пример #13
0
        private void scriptTextBox_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            if (!FreshFile)
            {
                return;
            }

            Text     += "*";
            FreshFile = false;
        }
Пример #14
0
        private void ExpressionEditor_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            ExpressionEditor_BeginEdit();

            if (syntaxHighlightTimer.Enabled)
            {
                syntaxHighlightTimer.Enabled = false;
            }
            syntaxHighlightTimer.Interval = 500;
            ExpressionEditor_SyntaxHighlight();
        }
Пример #15
0
 private void codeTextBox_TextChangedDelayed(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     SavePrecode();
     if (ansiCradioButton.Checked || cppRadioButton.Checked)
     {
         HighlightSyntax.HighlightCPPSyntax(codeTextBox.Range);
     }
     else if (JavaRadioButton.Checked)
     {
         HighlightSyntax.HighlightJavaSyntax(codeTextBox.Range);
     }
 }
Пример #16
0
        private void TextBoxEditor_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            if (!FileIO.FileInfo.isFileEdited && !inLoading)
            {
                this.Text += "*";
            }

            if (!inLoading)
            {
                FileIO.FileInfo.isFileEdited = true;
            }
        }
Пример #17
0
        // Quando o texto da janela  HTML mudar
        private void textBox1_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            string foldername = lastSaved.Substring(0, lastSaved.Length - lastSaved.Split('\\')[lastSaved.Split('\\').Length - 1].Length);

            foldername = foldername.Replace('\\', '/');
            this.webBrowser1.DocumentText = "<!DOCTYPE html><html><head><base href=\"file://" + foldername + "\" target=\"_blank\"></head></html>" + this.textBox1.Text;
            if (this.slideListView.SelectedIndex < 0)
            {
                this.slideListView.SelectedIndex = 0;
            }
            sources[this.slideListView.SelectedIndex] = this.textBox1.Text;
        }
Пример #18
0
 private void VertexEditor_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     if (IsSetup == false)
     {
         return;
     }
     _editor.SetVertexEditorStyle(e);
     if (shader != null)
     {
         string Result = shader.CompileVertexShader(VertexEditor.Text);
         ResultBox.Text = Result;
     }
 }
Пример #19
0
        void editDisassembly_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            //clear previous highlighting
            e.ChangedRange.ClearStyle(m_TextStyles);

            // apply all styles
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.LITERAL_NUMBER)], m_TextRegExp[(int)Types.ColorableElement.LITERAL_NUMBER]);
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.LITERAL_STRING)], m_TextRegExp[(int)Types.ColorableElement.LITERAL_STRING]);
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.CODE)], m_TextRegExp[(int)Types.ColorableElement.CODE]);
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.PSEUDO_OP)], m_TextRegExp[(int)Types.ColorableElement.PSEUDO_OP]);
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.LABEL)], m_TextRegExp[(int)Types.ColorableElement.LABEL]);
            e.ChangedRange.SetStyle(m_TextStyles[SyntaxElementStylePrio(Types.ColorableElement.COMMENT)], m_TextRegExp[(int)Types.ColorableElement.COMMENT]);
        }
Пример #20
0
        private void RightBox_TextChangedDelayed(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            if (!ConvertRightToLeft)
            {
                return;
            }

            var result = ToApex(RightBox.Text);

            if (!string.IsNullOrWhiteSpace(result))
            {
                LeftBox.Text = result;
            }
        }
Пример #21
0
 private void txtConfig_TextChangedDelayed(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     try
     {
         cmdFormat.Enabled = txtConfig.Text.Length > 0;
         XmlDocument testXml = new XmlDocument();
         testXml.LoadXml(txtConfig.Text);
         cmdOK.Enabled = true;
     }
     catch (Exception)
     {
         cmdOK.Enabled = false;
     }
 }
Пример #22
0
        private void luaCodeEditor_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            if (currentFunction == null)
            {
                return;
            }
            if (currentFunction.Code == luaCodeEditor.Text)
            {
                return;
            }

            currentFunction.Code   = luaCodeEditor.Text;
            currentProject.Changed = true;
            saveBtn.Enabled        = true;
        }
Пример #23
0
 private void TextBoxGPL_Code_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     /*
      *
      * e.ChangedRange.ClearStyle();
      * FastColoredTextBoxNS.Style keyWord = new FastColoredTextBoxNS.TextStyle(Brushes.Blue, null, FontStyle.Regular);
      * FastColoredTextBoxNS.Style GreenStyle = new FastColoredTextBoxNS.TextStyle(Brushes.Green, null, FontStyle.Italic);
      * FastColoredTextBoxNS.Style BoldStyle = new FastColoredTextBoxNS.TextStyle(Brushes.BlueViolet, null, FontStyle.Bold);
      * FastColoredTextBoxNS.Style BoldStyleExtends = new FastColoredTextBoxNS.TextStyle(Brushes.BlueViolet, null, FontStyle.Italic | FontStyle.Bold );
      * e.ChangedRange.SetStyle(GreenStyle, @"//.*$", System.Text.RegularExpressions.RegexOptions.Multiline);
      * e.ChangedRange.SetStyle(BoldStyle, @"\b(class)\s+(?<range>[\w_]+?)\b");
      * e.ChangedRange.SetStyle(BoldStyleExtends, @"\b(extends)\s+(?<range>[\w_]+?)\b");
      * e.ChangedRange.SetFoldingMarkers("{", "}");
      * e.ChangedRange.SetFoldingMarkers(@"#region\b", @"#endregion\b");
      * e.ChangedRange.SetStyle(keyWord,"class|typedef|session|extends|initialize", System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace);
      * */
 }
Пример #24
0
        private void TxtMusicString_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
        {
            if (txtMusicString.Text == null)
            {
                MessageBox.Show("No music to parse."); return;
            }
            gridCompileErrors.Rows.Clear();
            try {
                PBScore.Tune = (_qabcParser.Parse(txtMusicString.Text));
                foreach (var err in _qabcParser.Errors)
                {
                    gridCompileErrors.Rows.Add(err.Location, err, err.ParserState);
                }
            } catch (ArgumentOutOfRangeException ex) {
//				gridCompileErrors.Rows.Add(new SourceLocation(0,0,0),ex.Message,"N/A");
                gridCompileErrors.Rows.Add("(0:0)", ex.Message, "N/A");
            } catch (InvalidCastException ex) {
//				gridCompileErrors.Rows.Add(new SourceLocation(0,0,0),ex.Message,"N/A");
                gridCompileErrors.Rows.Add("(0:0)", ex.Message, "N/A");
            }
        }
Пример #25
0
 private void txtConfig_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     IsSaveEnabled();
 }
Пример #26
0
 private void txtSource_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     _parseTree = null; //force it to recompile on run
 }
Пример #27
0
 private void txtDetailQuery_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     CheckOkEnabled();
 }
Пример #28
0
 private void txtStateQuery_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     CheckOkEnabled();
     summaryQueryParseTextTimer.Enabled = false;
     summaryQueryParseTextTimer.Enabled = true;
 }
Пример #29
0
 private void txtSqlScript_TextChanged(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     e.ChangedRange.SetSyntax(Syntax);
 }
Пример #30
0
 private void txtConfig_TextChangedDelayed(object sender, FastColoredTextBoxNS.TextChangedEventArgs e)
 {
     cmdOK.Enabled     = txtConfig.Text.Length > 0;
     cmdFormat.Enabled = txtConfig.Text.Length > 0;
 }