Esempio n. 1
0
void SearchTextBar::doLoadState()
{
    KConfigGroup group        = getConfigGroup();
    completer()->setCompletionMode((QCompleter::CompletionMode)group.readEntry(entryName(d->optionAutoCompletionModeEntry), (int)QCompleter::PopupCompletion));
    d->settings.caseSensitive = (Qt::CaseSensitivity)group.readEntry(entryName(d->optionCaseSensitiveEntry), (int)Qt::CaseInsensitive);
    setIgnoreCase(d->settings.caseSensitive == Qt::CaseInsensitive);
}
Esempio n. 2
0
void CMainFrame::OnViewShow1000separator() {
  APPLY_TO_ACTIVE_TEXTVIEW(setShow1000Separator(toggleMenuItem(this, ID_VIEW_SHOW1000SEPARATOR)))
}

void CMainFrame::OnViewHighlightCompareEqual() {
  APPLY_TO_ACTIVE_TEXTVIEW(setHighLightCompareEqual(toggleMenuItem(this, ID_VIEW_HIGHLIGHTCOMPAREEQUAL)));
}

// ------------------------------------- Options menu ---------------------------------

void CMainFrame::OnOptionsIgnoreWhiteSpace() {
  APPLY_TO_ACTIVE_TEXTVIEW(setIgnoreWhiteSpace(toggleMenuItem(this, ID_OPTIONS_IGNOREBLANKS)))
}

void CMainFrame::OnOptionsIgnoreCase() {
  APPLY_TO_ACTIVE_TEXTVIEW(setIgnoreCase(toggleMenuItem(this, ID_OPTIONS_IGNORECASE)))
}

void CMainFrame::OnOptionsIgnoreStrings() {
  APPLY_TO_ACTIVE_TEXTVIEW(setIgnoreStrings(toggleMenuItem(this, ID_OPTIONS_IGNORESTRINGS)))
}

void CMainFrame::OnOptionsIgnoreComments() {
  APPLY_TO_ACTIVE_TEXTVIEW(setIgnoreComments(toggleMenuItem(this, ID_OPTIONS_IGNORECOMMENTS)))
}

void CMainFrame::OnOptionsStripComments() {
  APPLY_TO_ACTIVE_TEXTVIEW(setStripComments(toggleMenuItem(this, ID_OPTIONS_STRIPCOMMENTS)))
}

void CMainFrame::OnOptionsIgnoreColumns() {