Beispiel #1
0
        /// <summary>
        /// <see cref="SyntacticalRuleEditorDialog"/>'s constructor.
        /// </summary>
        /// <param name="parent">
        /// The dialog's parent <see cref="Window"/>.
        /// </param>
        public SyntacticalRuleEditorDialog(SyntacticalRulesManagerDialog parent)
        {
            Glade.XML gladeXml = new XML("mathtextrecognizer.glade",
                                         "syntacticalRuleEditorDialog");

            gladeXml.Autoconnect(this);

            manager = parent;

            this.syntacticalRuleEditorDialog.TransientFor = manager.Window;

            editing = false;

            InitializeWidgets();
        }
		/// <summary>
		/// <see cref="SyntacticalRuleEditorDialog"/>'s constructor.
		/// </summary>
		/// <param name="parent">
		/// The dialog's parent <see cref="Window"/>.
		/// </param>
		public SyntacticalRuleEditorDialog(SyntacticalRulesManagerDialog parent)
		{
			Glade.XML gladeXml = new XML("mathtextrecognizer.glade",
			                             "syntacticalRuleEditorDialog");
			
			gladeXml.Autoconnect(this);
			
			manager = parent;
			
			this.syntacticalRuleEditorDialog.TransientFor = manager.Window;
			
			editing = false;
			
			InitializeWidgets();
		}
		/// <summary>
		/// Opens the syntactical rules manager.
		/// </summary>
		/// <param name="sender">
		/// A <see cref="System.Object"/>
		/// </param>
		/// <param name="args">
		/// A <see cref="EventArgs"/>
		/// </param>
		private void OnSyntacticalManagerItemActivate(object sender, 
		                                              EventArgs args)
		{
			SyntacticalRulesManagerDialog dialog = 
				new SyntacticalRulesManagerDialog(this.Window);
			dialog.Show();
			
			dialog.Destroy();
		}