コード例 #1
0
		internal void SetConcordanceLine(ConcordanceLines line)
		{
			int idx = 0;
			for (int i = 0; i < m_cbLine.Items.Count; ++i)
			{
				if ((m_cbLine.Items[i] as ConcordLine).Line == line)
				{
					idx = i;
					break;
				}
			}
			if (m_cbLine.SelectedIndex != idx)
				m_cbLine.SelectedIndex = idx;
		}
コード例 #2
0
		private void FillSearchComboList(ConcordanceLines line)
		{
			if(m_pOSPopupTreeManager != null)
				m_pOSPopupTreeManager.Dispose();
			switch(line)
			{
				case ConcordanceLines.kTags:
					m_pOSPopupTreeManager = new POSComboController(m_cbSearchText,
											m_cache,
											InterlinTaggingChild.GetTaggingLists(m_cache.LangProject),
											m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem.Handle,
											false,
											m_mediator,
											(Form)m_mediator.PropertyTable.GetValue("window")) {Sorted = false};
					break;
				default: //Lex. Gram. Info and Word Cat. both work the same, and are handled here in the default option
					m_pOSPopupTreeManager = new POSComboController(m_cbSearchText,
											m_cache,
											m_cache.LanguageProject.PartsOfSpeechOA,
											m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem.Handle,
											false,
											m_mediator,
											(Form)m_mediator.PropertyTable.GetValue("window"));
					break;
			}
			m_pOSPopupTreeManager.AfterSelect += POSAfterSelect;
			m_pOSPopupTreeManager.LoadPopupTree(0);
		}
コード例 #3
0
		private bool InitializeConcordanceSearch(string sMatch, int ws, ConcordanceLines line)
		{
			SetDefaultVisibilityOfItems(true, String.Empty);
			m_fObjectConcorded = false;
			if (String.IsNullOrEmpty(sMatch))
				return false;
			SetConcordanceLine(line);
			SetWritingSystem(ws);
			m_rbtnUseRegExp.Checked = false;
			m_chkMatchDiacritics.Checked = true;
			m_rbtnWholeItem.Checked = true;
			m_tbSearchText.WritingSystemCode = ws;
			m_tbSearchText.Text = sMatch;
			m_btnSearch.Enabled = true;
			m_btnSearch_Click(this, new EventArgs());
			SaveSettings();
			return true;
		}
コード例 #4
0
			internal ConcordLine(string name, int wsMagic, ConcordanceLines line)
			{
				m_name = name;
				m_wsMagic = wsMagic;
				m_line = line;
			}
コード例 #5
0
		internal void SelectLineOption(ConcordanceLines lineOption)
		{
			SetConcordanceLine(lineOption);
		}