Only a minimum of Combo box features currently needed is implemented.
The key event is 'AfterSelect' which is triggered when an item in the popup tree is selected.
public InflectionClassEditor() { m_InflectionClassTreeManager = null; m_tree = new TreeCombo(); m_tree.TreeLoad += new EventHandler(m_tree_TreeLoad); // Handle AfterSelect event in m_tree_TreeLoad() through m_pOSPopupTreeManager }
public BulkPosEditorBase() { m_pOSPopupTreeManager = null; m_tree = new TreeCombo(); m_tree.TreeLoad += new EventHandler(m_tree_TreeLoad); // Handle AfterSelect event in m_tree_TreeLoad() through m_pOSPopupTreeManager }
/// <summary> /// Constructor. /// </summary> public MSAPopupTreeManager(TreeCombo treeCombo, FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, Mediator mediator, Form parent) : base(treeCombo, cache, list, ws, useAbbr, parent) { m_mediator = mediator; LoadStrings(); }
public PhonologicalFeatureEditor() { m_PhonologicalFeatureTreeManager = null; m_tree = new TreeCombo(); m_tree.TreeLoad += new EventHandler(m_tree_TreeLoad); // Handle AfterSelect event in m_tree_TreeLoad() through m_pOSPopupTreeManager }
/// ------------------------------------------------------------------------------------ /// <summary> /// Constructor. /// </summary> /// <param name="cache">FDO cache.</param> /// <param name="obj">CmObject that is being displayed.</param> /// <param name="flid">The field identifier for the attribute we are displaying.</param> /// <param name="persistenceProvider">The persistence provider.</param> /// ------------------------------------------------------------------------------------ public MSAReferenceComboBoxSlice(FdoCache cache, ICmObject obj, int flid, IPersistenceProvider persistenceProvider) : base(new UserControl(), cache, obj, flid) { IWritingSystem defAnalWs = m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem; m_persistProvider = persistenceProvider; m_tree = new TreeCombo(); m_tree.WritingSystemFactory = cache.WritingSystemFactory; m_tree.Font = new System.Drawing.Font(defAnalWs.DefaultFontName, 10); if (!Application.RenderWithVisualStyles) m_tree.HasBorder = false; m_tree.WritingSystemCode = defAnalWs.Handle; // We embed the tree combo in a layer of UserControl, so it can have a fixed width // while the parent window control is, as usual, docked 'fill' to work with the splitter. m_tree.Dock = DockStyle.Left; m_tree.Width = 240; m_tree.DropDown += m_tree_DropDown; Control.Controls.Add(m_tree); m_tree.SizeChanged += m_tree_SizeChanged; if (m_cache != null) m_cache.DomainDataByFlid.AddNotification(this); m_treeBaseWidth = m_tree.Width; // m_tree has sensible PreferredHeight once the text is set, UserControl does not. //we need to set the Height after m_tree.Text has a value set to it. Control.Height = m_tree.PreferredHeight; }
/// <summary> /// Constructor. /// </summary> public PopupTreeManager(TreeCombo treeCombo, FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, Form parent) { m_treeCombo = treeCombo; Init(cache, list, ws, useAbbr, parent); m_treeCombo.BeforeSelect += new TreeViewCancelEventHandler(m_treeCombo_BeforeSelect); m_treeCombo.AfterSelect += new TreeViewEventHandler(m_treeCombo_AfterSelect); m_treeCombo.Tree.PopupTreeClosed += new TreeViewEventHandler(popupTree_PopupTreeClosed); }
/// <summary> /// Constructor. /// </summary> public PopupTreeManager(TreeCombo treeCombo, FdoCache cache, Mediator mediator, ICmPossibilityList list, int ws, bool useAbbr, Form parent) { m_treeCombo = treeCombo; Init(cache, mediator, list, ws, useAbbr, parent); m_treeCombo.BeforeSelect += m_treeCombo_BeforeSelect; m_treeCombo.AfterSelect += m_treeCombo_AfterSelect; m_treeCombo.Tree.PopupTreeClosed += popupTree_PopupTreeClosed; }
/// <summary> /// Constructor. /// </summary> /// <param name="cache">FDO cache.</param> /// <param name="obj">CmObject that is being displayed.</param> /// <param name="flid">The field identifier for the attribute we are displaying.</param> public MSAReferenceComboBoxSlice(FdoCache cache, ICmObject obj, int flid, IPersistenceProvider persistenceProvider, Mediator mediator) : base(new UserControl(), cache, obj, flid) { m_mediator = mediator; m_persistProvider = persistenceProvider; m_tree = new TreeCombo(); m_tree.WritingSystemFactory = cache.LanguageWritingSystemFactoryAccessor; m_tree.Font = new System.Drawing.Font(cache.LangProject.DefaultAnalysisWritingSystemFont, 10); if (!Application.RenderWithVisualStyles) m_tree.HasBorder = false; //Set the stylesheet and writing system information so that the font size for the IVwStylesheet stylesheet = FontHeightAdjuster.StyleSheetFromMediator(mediator); m_tree.WritingSystemCode = cache.LangProject.DefaultAnalysisWritingSystem; m_tree.StyleSheet = stylesheet; // We embed the tree combo in a layer of UserControl, so it can have a fixed width // while the parent window control is, as usual, docked 'fill' to work with the splitter. m_tree.Dock = DockStyle.Left; m_tree.Width = 240; m_tree.DropDown += new EventHandler(m_tree_DropDown); Control.Controls.Add(m_tree); m_tree.SizeChanged += new EventHandler(m_tree_SizeChanged); if (m_MSAPopupTreeManager == null) { ICmPossibilityList list = m_cache.LangProject.PartsOfSpeechOA; int ws = m_cache.LangProject.DefaultAnalysisWritingSystem; m_tree.WritingSystemCode = ws; m_MSAPopupTreeManager = new MSAPopupTreeManager(m_tree, m_cache, list, ws, true, mediator, (Form)mediator.PropertyTable.GetValue("window")); m_MSAPopupTreeManager.AfterSelect += new TreeViewEventHandler(m_MSAPopupTreeManager_AfterSelect); m_MSAPopupTreeManager.Sense = m_obj as ILexSense; m_MSAPopupTreeManager.PersistenceProvider = m_persistProvider; } try { m_handlingMessage = true; m_MSAPopupTreeManager.MakeTargetMenuItem(); //m_MSAPopupTreeManager.LoadPopupTree(0); } finally { m_handlingMessage = false; } if (m_cache != null) { m_sda = m_cache.MainCacheAccessor; m_sda.AddNotification(this); } m_treeBaseWidth = m_tree.Width; Control.Height = m_tree.PreferredHeight; // m_tree has sensible PreferredHeight once the text is set, UserControl does not. //we need to set the Height after m_tree.Text has a value set to it. }
/// <summary> /// Constructor. /// </summary> /// <param name="obj">CmObject that is being displayed.</param> /// <param name="flid">The field identifier for the attribute we are displaying.</param> /// // cache, obj, flid, node, persistenceProvider, stringTbl public AtomicReferencePOSSlice(FdoCache cache, ICmObject obj, int flid, IPersistenceProvider persistenceProvider, Mediator mediator) : base(new UserControl(), cache, obj, flid) { IVwStylesheet stylesheet = FontHeightAdjuster.StyleSheetFromMediator(mediator); m_persistProvider = persistenceProvider; m_tree = new TreeCombo(); m_tree.WritingSystemFactory = cache.LanguageWritingSystemFactoryAccessor; m_tree.WritingSystemCode = m_cache.LangProject.DefaultAnalysisWritingSystem; m_tree.Font = new System.Drawing.Font(cache.LangProject.DefaultAnalysisWritingSystemFont, 10); m_tree.StyleSheet = stylesheet; if (!Application.RenderWithVisualStyles) m_tree.HasBorder = false; // We embed the tree combo in a layer of UserControl, so it can have a fixed width // while the parent window control is, as usual, docked 'fill' to work with the splitter. m_tree.Dock = DockStyle.Left; m_tree.Width = 200; Control.Controls.Add(m_tree); if (m_pOSPopupTreeManager == null) { ICmPossibilityList list; int ws; if (obj is ReversalIndexEntry) { IReversalIndexEntry rie = obj as IReversalIndexEntry; list = rie.ReversalIndex.PartsOfSpeechOA; ws = rie.ReversalIndex.WritingSystemRAHvo; } else { list = m_cache.LangProject.PartsOfSpeechOA; ws = m_cache.LangProject.DefaultAnalysisWritingSystem; } m_tree.WritingSystemCode = ws; m_pOSPopupTreeManager = new POSPopupTreeManager(m_tree, m_cache, list, ws, false, mediator, (Form)mediator.PropertyTable.GetValue("window")); m_pOSPopupTreeManager.AfterSelect += new TreeViewEventHandler(m_pOSPopupTreeManager_AfterSelect); } try { m_handlingMessage = true; m_pOSPopupTreeManager.LoadPopupTree(POS == null ? 0 : POS.Hvo); } finally { m_handlingMessage = false; } Control.Height = m_tree.PreferredHeight; // m_tree has sensible PreferredHeight once the text is set, UserControl does not. // we need to set the Height after m_tree.Text has a value set to it. }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (IsDisposed) { return; } if (disposing) { if (m_mainPOSPopupTreeManager != null) { m_mainPOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_mainPOSPopupTreeManager_AfterSelect); m_mainPOSPopupTreeManager.Dispose(); } m_mainPOSPopupTreeManager = null; if (m_secPOSPopupTreeManager != null) { m_secPOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_secPOSPopupTreeManager_AfterSelect); m_secPOSPopupTreeManager.Dispose(); } if (components != null) { components.Dispose(); } } m_parentForm = null; m_mediator = null; m_secPOSPopupTreeManager = null; m_lAfxType = null; m_fwcbAffixTypes = null; m_lSLots = null; m_fwcbSlots = null; m_tcSecondaryPOS = null; m_ctrlAssistant = null; base.Dispose(disposing); }
bool TrySelectNode(TreeCombo treeCombo, int hvoTarget) { if (treeCombo.Tree.Nodes.Count == 0) { m_mainPOSPopupTreeManager.LoadPopupTree(hvoTarget); return true; } else { foreach (HvoTreeNode node in treeCombo.Tree.Nodes) { HvoTreeNode htn = node.NodeWithHvo(hvoTarget); if (htn != null) { // Selecting the POS here should then fire // the event which wil reset the slot combo. treeCombo.SelectedNode = htn; return true; } } } return false; }
/// <summary> /// Executes in two distinct scenarios. /// /// 1. If disposing is true, the method has been called directly /// or indirectly by a user's code via the Dispose method. /// Both managed and unmanaged resources can be disposed. /// /// 2. If disposing is false, the method has been called by the /// runtime from inside the finalizer and you should not reference (access) /// other managed objects, as they already have been garbage collected. /// Only unmanaged resources can be disposed. /// </summary> /// <param name="disposing"></param> /// <remarks> /// If any exceptions are thrown, that is fine. /// If the method is being done in a finalizer, it will be ignored. /// If it is thrown by client code calling Dispose, /// it needs to be handled by fixing the bug. /// /// If subclasses override this method, they should call the base implementation. /// </remarks> protected override void Dispose(bool disposing) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (IsDisposed) return; // m_sda COM object block removed due to crash in Finializer thread LT-6124 if (disposing) { // Dispose managed resources here. if (m_sda != null) m_sda.RemoveNotification(this); if (m_tree != null && m_tree.Parent == null) m_tree.Dispose(); if (m_pOSPopupTreeManager != null) { m_pOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_pOSPopupTreeManager_AfterSelect); m_pOSPopupTreeManager.Dispose(); } } // Dispose unmanaged resources here, whether disposing is true or false. m_sda = null; m_cache = null; m_tree = null; m_pOSPopupTreeManager = null; m_persistProvider = null; m_pos = null; base.Dispose(disposing); }
/// <summary> /// Constructor. /// </summary> public PhonologicalFeaturePopupTreeManager(TreeCombo treeCombo, FdoCache cache, bool useAbbr, Mediator mediator, Form parent, int wsDisplay, IFsClosedFeature closedFeature) : base(treeCombo, cache, mediator, cache.LanguageProject.PartsOfSpeechOA, wsDisplay, useAbbr, parent) { m_closedFeature = closedFeature; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComplexConcTagDlg)); this.m_btnHelp = new System.Windows.Forms.Button(); this.m_btnCancel = new System.Windows.Forms.Button(); this.m_btnOK = new System.Windows.Forms.Button(); this.m_helpProvider = new System.Windows.Forms.HelpProvider(); this.m_tagComboBox = new SIL.FieldWorks.Common.Widgets.TreeCombo(); this.SuspendLayout(); // // m_btnHelp // resources.ApplyResources(this.m_btnHelp, "m_btnHelp"); this.m_btnHelp.Name = "m_btnHelp"; this.m_btnHelp.UseVisualStyleBackColor = true; this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // m_btnCancel // this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; resources.ApplyResources(this.m_btnCancel, "m_btnCancel"); this.m_btnCancel.Name = "m_btnCancel"; this.m_btnCancel.UseVisualStyleBackColor = true; this.m_btnCancel.Click += new System.EventHandler(this.m_btnCancel_Click); // // m_btnOK // resources.ApplyResources(this.m_btnOK, "m_btnOK"); this.m_btnOK.Name = "m_btnOK"; this.m_btnOK.UseVisualStyleBackColor = true; this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click); // // m_tagComboBox // this.m_tagComboBox.AdjustStringHeight = true; this.m_tagComboBox.BackColor = System.Drawing.SystemColors.Window; this.m_tagComboBox.DropDownWidth = 120; this.m_tagComboBox.DroppedDown = false; this.m_tagComboBox.HasBorder = true; resources.ApplyResources(this.m_tagComboBox, "m_tagComboBox"); this.m_tagComboBox.Name = "m_tagComboBox"; this.m_helpProvider.SetShowHelp(this.m_tagComboBox, ((bool)(resources.GetObject("m_tagComboBox.ShowHelp")))); this.m_tagComboBox.UseVisualStyleBackColor = true; // // ComplexConcTagDlg // this.AcceptButton = this.m_btnOK; resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.m_btnCancel; this.Controls.Add(this.m_tagComboBox); this.Controls.Add(this.m_btnHelp); this.Controls.Add(this.m_btnCancel); this.Controls.Add(this.m_btnOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ComplexConcTagDlg"; this.m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); this.ShowIcon = false; this.ShowInTaskbar = false; this.ResumeLayout(false); }
/// <summary> /// Constructor. /// </summary> public POSComboController(TreeCombo treeCombo, FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, Mediator mediator, Form parent) : base(treeCombo, cache, list, ws, useAbbr, mediator, parent) { Sorted = true; }
protected override void Dispose(bool disposing) { // Must not be run more than once. if (IsDisposed) return; // m_sda COM object block removed due to crash in Finializer thread LT-6124 if (disposing) { if (SplitCont != null && !SplitCont.IsDisposed && SplitCont.Panel2 != null && !SplitCont.Panel2.IsDisposed) { SplitCont.Panel2.SizeChanged -= new EventHandler(SplitContPanel2_SizeChanged); } // Dispose managed resources here. if (m_sda != null) m_sda.RemoveNotification(this); if (m_tree != null && m_tree.Parent == null) m_tree.Dispose(); if (m_MSAPopupTreeManager != null) { m_MSAPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_MSAPopupTreeManager_AfterSelect); m_MSAPopupTreeManager.Dispose(); } } // Dispose unmanaged resources here, whether disposing is true or false. m_sda = null; m_tree = null; m_MSAPopupTreeManager = null; m_persistProvider = null; base.Dispose(disposing); }
/// <summary> /// Constructor. /// </summary> public InflectionClassPopupTreeManager(TreeCombo treeCombo, FdoCache cache, Mediator mediator, bool useAbbr, Form parent, int wsDisplay) : base(treeCombo, cache, mediator, cache.LanguageProject.PartsOfSpeechOA, wsDisplay, useAbbr, parent) { }
/// <summary> /// Executes in two distinct scenarios. /// /// 1. If disposing is true, the method has been called directly /// or indirectly by a user's code via the Dispose method. /// Both managed and unmanaged resources can be disposed. /// /// 2. If disposing is false, the method has been called by the /// runtime from inside the finalizer and you should not reference (access) /// other managed objects, as they already have been garbage collected. /// Only unmanaged resources can be disposed. /// </summary> /// <param name="disposing"></param> /// <remarks> /// If any exceptions are thrown, that is fine. /// If the method is being done in a finalizer, it will be ignored. /// If it is thrown by client code calling Dispose, /// it needs to be handled by fixing the bug. /// /// If subclasses override this method, they should call the base implementation. /// </remarks> protected virtual void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (m_isDisposed) return; if (disposing) { // Dispose managed resources here. if (m_tree != null) { m_tree.Load -= new EventHandler(m_tree_TreeLoad); m_tree.Dispose(); } if (m_PhonologicalFeatureTreeManager != null) { m_PhonologicalFeatureTreeManager.AfterSelect -= new TreeViewEventHandler(m_PhonFeaturePopupTreeManager_AfterSelect); m_PhonologicalFeatureTreeManager.Dispose(); } } // Dispose unmanaged resources here, whether disposing is true or false. SelectedLabel = null; m_tree = null; m_PhonologicalFeatureTreeManager = null; m_mediator = null; m_cache = null; m_isDisposed = true; }
/// <summary> /// Executes in two distinct scenarios. /// /// 1. If disposing is true, the method has been called directly /// or indirectly by a user's code via the Dispose method. /// Both managed and unmanaged resources can be disposed. /// /// 2. If disposing is false, the method has been called by the /// runtime from inside the finalizer and you should not reference (access) /// other managed objects, as they already have been garbage collected. /// Only unmanaged resources can be disposed. /// </summary> /// <param name="disposing"></param> /// <remarks> /// If any exceptions are thrown, that is fine. /// If the method is being done in a finalizer, it will be ignored. /// If it is thrown by client code calling Dispose, /// it needs to be handled by fixing the bug. /// /// If subclasses override this method, they should call the base implementation. /// </remarks> protected virtual void Dispose(bool disposing) { Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (m_isDisposed) return; if (disposing) { // Dispose managed resources here. if (m_treeCombo != null && !m_treeCombo.IsDisposed) { m_treeCombo.BeforeSelect -= new TreeViewCancelEventHandler(m_treeCombo_BeforeSelect); m_treeCombo.AfterSelect -= new TreeViewEventHandler(m_treeCombo_AfterSelect); if (m_treeCombo.Tree != null) m_treeCombo.Tree.PopupTreeClosed -= new TreeViewEventHandler(popupTree_PopupTreeClosed); // We only manage m_treeCombo, so it gets disposed elsewhere. } if (m_popupTree != null) { m_popupTree.BeforeSelect -= new TreeViewCancelEventHandler(m_treeCombo_BeforeSelect); m_popupTree.AfterSelect -= new TreeViewEventHandler(m_treeCombo_AfterSelect); m_popupTree.PopupTreeClosed -= new TreeViewEventHandler(popupTree_PopupTreeClosed); // We only manage m_popupTree, so it gets disposed elsewhere. } } // Dispose unmanaged resources here, whether disposing is true or false. m_lastConfirmedNode = null; m_kEmptyNode = null; m_treeCombo = null; m_popupTree = null; m_parent = null; m_cache = null; m_list = null; m_isDisposed = true; }
/// <summary> /// Executes in two distinct scenarios. /// /// 1. If disposing is true, the method has been called directly /// or indirectly by a user's code via the Dispose method. /// Both managed and unmanaged resources can be disposed. /// /// 2. If disposing is false, the method has been called by the /// runtime from inside the finalizer and you should not reference (access) /// other managed objects, as they already have been garbage collected. /// Only unmanaged resources can be disposed. /// </summary> /// <param name="disposing"></param> /// <remarks> /// If any exceptions are thrown, that is fine. /// If the method is being done in a finalizer, it will be ignored. /// If it is thrown by client code calling Dispose, /// it needs to be handled by fixing the bug. /// /// If subclasses override this method, they should call the base implementation. /// </remarks> protected virtual void Dispose(bool disposing) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (m_isDisposed) return; if (disposing) { // Dispose managed resources here. if (m_tree != null) { m_tree.Load -= new EventHandler(m_tree_TreeLoad); m_tree.Dispose(); } if (m_pOSPopupTreeManager != null) { m_pOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_pOSPopupTreeManager_AfterSelect); m_pOSPopupTreeManager.Dispose(); } } // Dispose unmanaged resources here, whether disposing is true or false. m_selectedLabel = null; m_tree = null; m_pOSPopupTreeManager = null; m_mediator = null; m_cache = null; m_isDisposed = true; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MSAGroupBox)); this.m_groupBox = new System.Windows.Forms.GroupBox(); this.m_lAfxType = new System.Windows.Forms.Label(); this.m_fwcbAffixTypes = new SIL.FieldWorks.Common.Widgets.FwComboBox(); this.m_lMainCat = new System.Windows.Forms.Label(); this.m_tcMainPOS = new SIL.FieldWorks.Common.Widgets.TreeCombo(); this.m_lSLots = new System.Windows.Forms.Label(); this.m_fwcbSlots = new SIL.FieldWorks.Common.Widgets.FwComboBox(); this.m_tcSecondaryPOS = new SIL.FieldWorks.Common.Widgets.TreeCombo(); this.m_groupBox.SuspendLayout(); this.SuspendLayout(); // // m_groupBox // this.m_groupBox.Controls.Add(this.m_lAfxType); this.m_groupBox.Controls.Add(this.m_fwcbAffixTypes); this.m_groupBox.Controls.Add(this.m_lMainCat); this.m_groupBox.Controls.Add(this.m_tcMainPOS); this.m_groupBox.Controls.Add(this.m_lSLots); this.m_groupBox.Controls.Add(this.m_fwcbSlots); this.m_groupBox.Controls.Add(this.m_tcSecondaryPOS); resources.ApplyResources(this.m_groupBox, "m_groupBox"); this.m_groupBox.Name = "m_groupBox"; this.m_groupBox.TabStop = false; // // m_lAfxType // resources.ApplyResources(this.m_lAfxType, "m_lAfxType"); this.m_lAfxType.Name = "m_lAfxType"; // // m_fwcbAffixTypes // this.m_fwcbAffixTypes.AdjustStringHeight = true; this.m_fwcbAffixTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_fwcbAffixTypes.DropDownWidth = 140; this.m_fwcbAffixTypes.DroppedDown = false; resources.ApplyResources(this.m_fwcbAffixTypes, "m_fwcbAffixTypes"); this.m_fwcbAffixTypes.Name = "m_fwcbAffixTypes"; this.m_fwcbAffixTypes.PreviousTextBoxText = null; this.m_fwcbAffixTypes.SelectedIndex = -1; this.m_fwcbAffixTypes.SelectedItem = null; this.m_fwcbAffixTypes.StyleSheet = null; // // m_lMainCat // resources.ApplyResources(this.m_lMainCat, "m_lMainCat"); this.m_lMainCat.Name = "m_lMainCat"; // // m_tcMainPOS // this.m_tcMainPOS.AdjustStringHeight = true; this.m_tcMainPOS.DropDownWidth = 140; this.m_tcMainPOS.DroppedDown = false; resources.ApplyResources(this.m_tcMainPOS, "m_tcMainPOS"); this.m_tcMainPOS.Name = "m_tcMainPOS"; this.m_tcMainPOS.SelectedNode = null; this.m_tcMainPOS.StyleSheet = null; // // m_lSLots // resources.ApplyResources(this.m_lSLots, "m_lSLots"); this.m_lSLots.Name = "m_lSLots"; // // m_fwcbSlots // this.m_fwcbSlots.AdjustStringHeight = true; this.m_fwcbSlots.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_fwcbSlots.DropDownWidth = 140; this.m_fwcbSlots.DroppedDown = false; resources.ApplyResources(this.m_fwcbSlots, "m_fwcbSlots"); this.m_fwcbSlots.Name = "m_fwcbSlots"; this.m_fwcbSlots.PreviousTextBoxText = null; this.m_fwcbSlots.SelectedIndex = -1; this.m_fwcbSlots.SelectedItem = null; this.m_fwcbSlots.StyleSheet = null; // // m_tcSecondaryPOS // this.m_tcSecondaryPOS.AdjustStringHeight = true; this.m_tcSecondaryPOS.DropDownWidth = 140; this.m_tcSecondaryPOS.DroppedDown = false; resources.ApplyResources(this.m_tcSecondaryPOS, "m_tcSecondaryPOS"); this.m_tcSecondaryPOS.Name = "m_tcSecondaryPOS"; this.m_tcSecondaryPOS.SelectedNode = null; this.m_tcSecondaryPOS.StyleSheet = null; // // MSAGroupBox // this.Controls.Add(this.m_groupBox); this.Name = "MSAGroupBox"; resources.ApplyResources(this, "$this"); this.m_groupBox.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) return; if (disposing) { if (m_mainPOSPopupTreeManager != null) { m_mainPOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_mainPOSPopupTreeManager_AfterSelect); m_mainPOSPopupTreeManager.Dispose(); } m_mainPOSPopupTreeManager = null; if (m_secPOSPopupTreeManager != null) { m_secPOSPopupTreeManager.AfterSelect -= new TreeViewEventHandler(m_secPOSPopupTreeManager_AfterSelect); m_secPOSPopupTreeManager.Dispose(); } if(components != null) { components.Dispose(); } } m_parentForm = null; m_mediator = null; m_secPOSPopupTreeManager = null; m_lAfxType = null; m_fwcbAffixTypes = null; m_lSLots = null; m_fwcbSlots = null; m_tcSecondaryPOS = null; m_ctrlAssistant = null; base.Dispose( disposing ); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ComplexConcMorphDlg)); this.m_btnHelp = new System.Windows.Forms.Button(); this.m_btnCancel = new System.Windows.Forms.Button(); this.m_btnOK = new System.Windows.Forms.Button(); this.m_helpProvider = new System.Windows.Forms.HelpProvider(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.m_glossWsComboBox = new System.Windows.Forms.ComboBox(); this.m_glossTextBox = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.m_entryWsComboBox = new System.Windows.Forms.ComboBox(); this.m_entryTextBox = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.m_formWsComboBox = new System.Windows.Forms.ComboBox(); this.m_formTextBox = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.m_categoryNotCheckBox = new System.Windows.Forms.CheckBox(); this.m_categoryComboBox = new SIL.FieldWorks.Common.Widgets.TreeCombo(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.m_inflFeatsTreeView = new Aga.Controls.Tree.TreeViewAdv(); this.m_featureColumn = new Aga.Controls.Tree.TreeColumn(); this.m_notColumn = new Aga.Controls.Tree.TreeColumn(); this.m_valueColumn = new Aga.Controls.Tree.TreeColumn(); this.m_featureIcon = new Aga.Controls.Tree.NodeControls.NodeIcon(); this.m_featureTextBox = new Aga.Controls.Tree.NodeControls.NodeTextBox(); this.m_valueComboBox = new Aga.Controls.Tree.NodeControls.NodeComboBox(); this.m_inflNotCheckBox = new Aga.Controls.Tree.NodeControls.NodeCheckBox(); this.m_imageList = new System.Windows.Forms.ImageList(this.components); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).BeginInit(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).BeginInit(); this.groupBox4.SuspendLayout(); this.groupBox5.SuspendLayout(); this.SuspendLayout(); // // m_btnHelp // resources.ApplyResources(this.m_btnHelp, "m_btnHelp"); this.m_btnHelp.Name = "m_btnHelp"; this.m_btnHelp.UseVisualStyleBackColor = true; this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // m_btnCancel // resources.ApplyResources(this.m_btnCancel, "m_btnCancel"); this.m_btnCancel.Name = "m_btnCancel"; this.m_btnCancel.UseVisualStyleBackColor = true; this.m_btnCancel.Click += new System.EventHandler(this.m_btnCancel_Click); // // m_btnOK // resources.ApplyResources(this.m_btnOK, "m_btnOK"); this.m_btnOK.Name = "m_btnOK"; this.m_btnOK.UseVisualStyleBackColor = true; this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click); // // groupBox2 // this.groupBox2.Controls.Add(this.m_glossWsComboBox); this.groupBox2.Controls.Add(this.m_glossTextBox); resources.ApplyResources(this.groupBox2, "groupBox2"); this.groupBox2.Name = "groupBox2"; this.m_helpProvider.SetShowHelp(this.groupBox2, ((bool)(resources.GetObject("groupBox2.ShowHelp")))); this.groupBox2.TabStop = false; // // m_glossWsComboBox // this.m_glossWsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_glossWsComboBox.FormattingEnabled = true; resources.ApplyResources(this.m_glossWsComboBox, "m_glossWsComboBox"); this.m_glossWsComboBox.Name = "m_glossWsComboBox"; this.m_helpProvider.SetShowHelp(this.m_glossWsComboBox, ((bool)(resources.GetObject("m_glossWsComboBox.ShowHelp")))); this.m_glossWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_glossWsComboBox_SelectedIndexChanged); // // m_glossTextBox // this.m_glossTextBox.AcceptsReturn = false; this.m_glossTextBox.AdjustStringHeight = true; this.m_glossTextBox.BackColor = System.Drawing.SystemColors.Window; this.m_glossTextBox.controlID = null; resources.ApplyResources(this.m_glossTextBox, "m_glossTextBox"); this.m_glossTextBox.HasBorder = true; this.m_glossTextBox.Name = "m_glossTextBox"; this.m_helpProvider.SetShowHelp(this.m_glossTextBox, ((bool)(resources.GetObject("m_glossTextBox.ShowHelp")))); this.m_glossTextBox.SuppressEnter = true; this.m_glossTextBox.WordWrap = false; // // groupBox3 // this.groupBox3.Controls.Add(this.m_entryWsComboBox); this.groupBox3.Controls.Add(this.m_entryTextBox); resources.ApplyResources(this.groupBox3, "groupBox3"); this.groupBox3.Name = "groupBox3"; this.m_helpProvider.SetShowHelp(this.groupBox3, ((bool)(resources.GetObject("groupBox3.ShowHelp")))); this.groupBox3.TabStop = false; // // m_entryWsComboBox // this.m_entryWsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_entryWsComboBox.FormattingEnabled = true; resources.ApplyResources(this.m_entryWsComboBox, "m_entryWsComboBox"); this.m_entryWsComboBox.Name = "m_entryWsComboBox"; this.m_helpProvider.SetShowHelp(this.m_entryWsComboBox, ((bool)(resources.GetObject("m_entryWsComboBox.ShowHelp")))); this.m_entryWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_entryWsComboBox_SelectedIndexChanged); // // m_entryTextBox // this.m_entryTextBox.AcceptsReturn = false; this.m_entryTextBox.AdjustStringHeight = true; this.m_entryTextBox.BackColor = System.Drawing.SystemColors.Window; this.m_entryTextBox.controlID = null; resources.ApplyResources(this.m_entryTextBox, "m_entryTextBox"); this.m_entryTextBox.HasBorder = true; this.m_entryTextBox.Name = "m_entryTextBox"; this.m_helpProvider.SetShowHelp(this.m_entryTextBox, ((bool)(resources.GetObject("m_entryTextBox.ShowHelp")))); this.m_entryTextBox.SuppressEnter = true; this.m_entryTextBox.WordWrap = false; // // groupBox1 // this.groupBox1.Controls.Add(this.m_formWsComboBox); this.groupBox1.Controls.Add(this.m_formTextBox); resources.ApplyResources(this.groupBox1, "groupBox1"); this.groupBox1.Name = "groupBox1"; this.groupBox1.TabStop = false; // // m_formWsComboBox // this.m_formWsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_formWsComboBox.FormattingEnabled = true; resources.ApplyResources(this.m_formWsComboBox, "m_formWsComboBox"); this.m_formWsComboBox.Name = "m_formWsComboBox"; this.m_formWsComboBox.SelectedIndexChanged += new System.EventHandler(this.m_formWsComboBox_SelectedIndexChanged); // // m_formTextBox // this.m_formTextBox.AcceptsReturn = false; this.m_formTextBox.AdjustStringHeight = true; this.m_formTextBox.BackColor = System.Drawing.SystemColors.Window; this.m_formTextBox.controlID = null; resources.ApplyResources(this.m_formTextBox, "m_formTextBox"); this.m_formTextBox.HasBorder = true; this.m_formTextBox.Name = "m_formTextBox"; this.m_formTextBox.SuppressEnter = true; this.m_formTextBox.WordWrap = false; // // groupBox4 // this.groupBox4.Controls.Add(this.m_categoryNotCheckBox); this.groupBox4.Controls.Add(this.m_categoryComboBox); resources.ApplyResources(this.groupBox4, "groupBox4"); this.groupBox4.Name = "groupBox4"; this.groupBox4.TabStop = false; // // m_categoryNotCheckBox // resources.ApplyResources(this.m_categoryNotCheckBox, "m_categoryNotCheckBox"); this.m_categoryNotCheckBox.Name = "m_categoryNotCheckBox"; this.m_categoryNotCheckBox.UseVisualStyleBackColor = true; // // m_categoryComboBox // this.m_categoryComboBox.AdjustStringHeight = true; this.m_categoryComboBox.BackColor = System.Drawing.SystemColors.Window; this.m_categoryComboBox.DropDownWidth = 120; this.m_categoryComboBox.DroppedDown = false; this.m_categoryComboBox.HasBorder = true; resources.ApplyResources(this.m_categoryComboBox, "m_categoryComboBox"); this.m_categoryComboBox.Name = "m_categoryComboBox"; this.m_categoryComboBox.UseVisualStyleBackColor = true; // // groupBox5 // this.groupBox5.Controls.Add(this.m_inflFeatsTreeView); resources.ApplyResources(this.groupBox5, "groupBox5"); this.groupBox5.Name = "groupBox5"; this.groupBox5.TabStop = false; // // m_inflFeatsTreeView // this.m_inflFeatsTreeView.BackColor = System.Drawing.SystemColors.Window; this.m_inflFeatsTreeView.Columns.Add(this.m_featureColumn); this.m_inflFeatsTreeView.Columns.Add(this.m_notColumn); this.m_inflFeatsTreeView.Columns.Add(this.m_valueColumn); this.m_inflFeatsTreeView.DefaultToolTipProvider = null; this.m_inflFeatsTreeView.DragDropMarkColor = System.Drawing.Color.Black; this.m_inflFeatsTreeView.FullRowSelect = true; this.m_inflFeatsTreeView.LineColor = System.Drawing.SystemColors.ControlDark; resources.ApplyResources(this.m_inflFeatsTreeView, "m_inflFeatsTreeView"); this.m_inflFeatsTreeView.Model = null; this.m_inflFeatsTreeView.Name = "m_inflFeatsTreeView"; this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureIcon); this.m_inflFeatsTreeView.NodeControls.Add(this.m_featureTextBox); this.m_inflFeatsTreeView.NodeControls.Add(this.m_valueComboBox); this.m_inflFeatsTreeView.NodeControls.Add(this.m_inflNotCheckBox); this.m_inflFeatsTreeView.SelectedNode = null; this.m_inflFeatsTreeView.UseColumns = true; // // m_featureColumn // resources.ApplyResources(this.m_featureColumn, "m_featureColumn"); this.m_featureColumn.SortOrder = System.Windows.Forms.SortOrder.None; // // m_notColumn // resources.ApplyResources(this.m_notColumn, "m_notColumn"); this.m_notColumn.SortOrder = System.Windows.Forms.SortOrder.None; // // m_valueColumn // resources.ApplyResources(this.m_valueColumn, "m_valueColumn"); this.m_valueColumn.SortOrder = System.Windows.Forms.SortOrder.None; // // m_featureIcon // this.m_featureIcon.DataPropertyName = "Image"; this.m_featureIcon.LeftMargin = 1; this.m_featureIcon.ParentColumn = this.m_featureColumn; this.m_featureIcon.ScaleMode = Aga.Controls.Tree.ImageScaleMode.Clip; // // m_featureTextBox // this.m_featureTextBox.DataPropertyName = "Text"; this.m_featureTextBox.IncrementalSearchEnabled = true; this.m_featureTextBox.LeftMargin = 1; this.m_featureTextBox.ParentColumn = this.m_featureColumn; // // m_valueComboBox // this.m_valueComboBox.DataPropertyName = "Value"; this.m_valueComboBox.EditEnabled = true; this.m_valueComboBox.EditOnClick = true; this.m_valueComboBox.IncrementalSearchEnabled = true; this.m_valueComboBox.LeftMargin = 1; this.m_valueComboBox.ParentColumn = this.m_valueColumn; this.m_valueComboBox.CreatingEditor += new System.EventHandler<Aga.Controls.Tree.NodeControls.EditEventArgs>(this.m_valueComboBox_CreatingEditor); this.m_valueComboBox.IsEditEnabledValueNeeded += new System.EventHandler<Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_valueComboBox_IsEditEnabledValueNeeded); // // m_inflNotCheckBox // this.m_inflNotCheckBox.DataPropertyName = "IsChecked"; this.m_inflNotCheckBox.EditEnabled = true; this.m_inflNotCheckBox.LeftMargin = 1; this.m_inflNotCheckBox.ParentColumn = this.m_notColumn; this.m_inflNotCheckBox.IsVisibleValueNeeded += new System.EventHandler<Aga.Controls.Tree.NodeControls.NodeControlValueEventArgs>(this.m_inflNotCheckBox_IsVisibleValueNeeded); // // m_imageList // this.m_imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imageList.ImageStream"))); this.m_imageList.TransparentColor = System.Drawing.Color.Transparent; this.m_imageList.Images.SetKeyName(0, ""); this.m_imageList.Images.SetKeyName(1, ""); // // ComplexConcMorphDlg // this.AcceptButton = this.m_btnOK; resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.m_btnCancel; this.Controls.Add(this.groupBox5); this.Controls.Add(this.groupBox4); this.Controls.Add(this.groupBox3); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.m_btnHelp); this.Controls.Add(this.m_btnCancel); this.Controls.Add(this.m_btnOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ComplexConcMorphDlg"; this.m_helpProvider.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp")))); this.ShowIcon = false; this.ShowInTaskbar = false; this.groupBox2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.m_glossTextBox)).EndInit(); this.groupBox3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.m_entryTextBox)).EndInit(); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.m_formTextBox)).EndInit(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.groupBox5.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Constructor. /// </summary> public POSPopupTreeManager(TreeCombo treeCombo, FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, Mediator mediator, Form parent) :base (treeCombo, cache, mediator, list, ws, useAbbr, parent) { }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InsertRecordDlg)); this.m_titleTextBox = new SIL.FieldWorks.Common.Widgets.FwTextBox(); this.m_typeCombo = new SIL.FieldWorks.Common.Widgets.TreeCombo(); this.m_titleLabel = new System.Windows.Forms.Label(); this.m_typeLabel = new System.Windows.Forms.Label(); this.m_btnHelp = new System.Windows.Forms.Button(); this.m_btnCancel = new System.Windows.Forms.Button(); this.m_btnOK = new System.Windows.Forms.Button(); this.m_helpProvider = new HelpProvider(); ((System.ComponentModel.ISupportInitialize)(this.m_titleTextBox)).BeginInit(); this.SuspendLayout(); // // m_titleTextBox // this.m_titleTextBox.AdjustStringHeight = false; this.m_titleTextBox.controlID = null; resources.ApplyResources(this.m_titleTextBox, "m_titleTextBox"); this.m_titleTextBox.HasBorder = true; this.m_titleTextBox.Name = "m_titleTextBox"; // // m_typeCombo // this.m_typeCombo.AdjustStringHeight = false; this.m_typeCombo.HasBorder = true; resources.ApplyResources(this.m_typeCombo, "m_typeCombo"); this.m_typeCombo.Name = "m_typeCombo"; // // m_titleLabel // resources.ApplyResources(this.m_titleLabel, "m_titleLabel"); this.m_titleLabel.Name = "m_titleLabel"; // // m_typeLabel // resources.ApplyResources(this.m_typeLabel, "m_typeLabel"); this.m_typeLabel.Name = "m_typeLabel"; // // m_btnHelp // resources.ApplyResources(this.m_btnHelp, "m_btnHelp"); this.m_btnHelp.Name = "m_btnHelp"; this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click); // // m_btnCancel // resources.ApplyResources(this.m_btnCancel, "m_btnCancel"); this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_btnCancel.Name = "m_btnCancel"; // // m_btnOK // resources.ApplyResources(this.m_btnOK, "m_btnOK"); this.m_btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.m_btnOK.Name = "m_btnOK"; // // InsertRecordDlg // this.AcceptButton = this.m_btnOK; this.CancelButton = this.m_btnCancel; resources.ApplyResources(this, "$this"); this.Controls.Add(this.m_btnHelp); this.Controls.Add(this.m_btnCancel); this.Controls.Add(this.m_btnOK); this.Controls.Add(this.m_typeLabel); this.Controls.Add(this.m_titleLabel); this.Controls.Add(this.m_typeCombo); this.Controls.Add(this.m_titleTextBox); this.MaximizeBox = false; this.MinimizeBox = false; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.Name = "InsertRecordDlg"; this.ShowInTaskbar = false; ((System.ComponentModel.ISupportInitialize)(this.m_titleTextBox)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Constructor. /// </summary> public InflectionFeaturePopupTreeManager(TreeCombo treeCombo, FdoCache cache, bool useAbbr, Mediator mediator, Form parent, int wsDisplay) : base(treeCombo, cache, cache.LangProject.PartsOfSpeechOA, wsDisplay, useAbbr, parent) { m_mediator = mediator; }