Switch to unified view

a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp
...
...
77
}
77
}
78
78
79
void SSearch::searchTypeChanged(int typ)
79
void SSearch::searchTypeChanged(int typ)
80
{
80
{
81
    LOGDEB(("Search type now %d\n", typ));
81
    LOGDEB(("Search type now %d\n", typ));
82
    // Adjust context help
82
    if (typ == SST_LANG)
83
    if (typ == SST_LANG)
83
    HelpClient::installMap(this->name(), "RCL.SEARCH.LANG");
84
    HelpClient::installMap(this->name(), "RCL.SEARCH.LANG");
84
    else 
85
    else 
85
    HelpClient::installMap(this->name(), "RCL.SEARCH.SIMPLE");
86
    HelpClient::installMap(this->name(), "RCL.SEARCH.SIMPLE");
87
88
    // Also fix tooltips
89
    switch (typ) {
90
    case SST_LANG:
91
        queryText->setToolTip(
92
"Enter query language expression. Cheat sheet:<br>\n"
93
"<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>\n"
94
"<i>field:term1</i> : 'term1' in field 'field'.<br>\n"
95
" Standard field names/synonyms:<br>\n"
96
"  title/subject/caption, author/from, recipient/to, filename, ext.<br>\n"
97
" Pseudo-fields: dir, mime/format, type/rclcat.<br>\n"
98
"<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>\n"
99
"  No actual parentheses allowed.<br>\n"
100
"<i>\"term1 term2\"</i> : phrase (must occur exactly). Possible modifiers:<br>\n"
101
"<i>\"term1 term2\"p</i> : unordered proximity search with default distance.<br>\n"
102
"Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.\n"
103
            );
104
        break;
105
    case SST_FNM:
106
        queryText->setToolTip("Enter file name wildcard expression.");
107
        break;
108
    case SST_ANY:
109
    case SST_ALL:
110
    default:
111
        queryText->setToolTip("Enter search terms here. Type ESC SPC for completions of current term.");
112
    }
86
}
113
}
87
114
88
void SSearch::startSimpleSearch()
115
void SSearch::startSimpleSearch()
89
{
116
{
90
    if (queryText->currentText().length() == 0)
117
    if (queryText->currentText().length() == 0)