예제 #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);
		}