Doc: r and rm locator filters

Reviewed-by: con
This commit is contained in:
Leena Miettinen
2011-03-03 16:22:11 +01:00
parent 8080aac231
commit 1581c69c67
4 changed files with 50 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -6571,18 +6571,21 @@
The locator allows you to browse not only files, but any items The locator allows you to browse not only files, but any items
defined by \bold{locator filters}. By default, the locator contains defined by \bold{locator filters}. By default, the locator contains
filters which locate: filters for:
\list \list
\o Any open document \o Locating any open document
\o Files anywhere on your file system \o Locating files anywhere on your file system
\o Files belonging to your project, such as source, header resource, \o Locating iles belonging to your project, such as source, header resource,
and .ui files and .ui files
\o Class and method definitions in your project or anywhere referenced \o Locating class and method definitions in your project or anywhere
referenced
from your project from your project
\o Class and method definitions in the current document \o Locating class and method definitions in the current document
\o Help topics, including Qt documentation \o Locating a specific line in the document displayed in your editor
\o Specific line in the document displayed in your editor \o Opening help topics, including Qt documentation
\o Performing web searches
\o Running text editing macros that you record and save. For more
information, see \l{Using Text Editing Macros}
\endlist \endlist
To use a specific locator filter, type the assigned prefix followed by To use a specific locator filter, type the assigned prefix followed by
@@ -6633,6 +6636,10 @@
\o Go to a help topic. \o Go to a help topic.
\o \tt{\bold{? \e{Help topic}}} \o \tt{\bold{? \e{Help topic}}}
\o \image qtcreator-locator-help.png \o \image qtcreator-locator-help.png
\row
\o Search for a term by using a web search engine.
\o \tt{\bold{r \e{Search term}}}
\o \image qtcreator-locator-web.png
\row \row
\o Go to an open file. \o Go to an open file.
\o \tt{\bold{o \e{File name}}} \o \tt{\bold{o \e{File name}}}
@@ -6657,6 +6664,10 @@
\o Go to a method definition. \o Go to a method definition.
\o \tt{\bold{m \e{Method name}}} \o \tt{\bold{m \e{Method name}}}
\o \image qtcreator-locator-methods.png \o \image qtcreator-locator-methods.png
\row
\o Execute a text editing macro.
\o \tt{\bold{rm \e{Macro name}}}
\o \image qtcreator-locator-macros.png
\endtable \endtable
\section2 Creating Locator Filters \section2 Creating Locator Filters
@@ -6690,7 +6701,36 @@
\o Click OK. \o Click OK.
\endlist \endlist
\section3 Configuring the Locator Cache \section2 Adding Web Search Engines
You can use the \gui {Web Search (\c r)} locator filter to perform
web searches. URLs and search commands for Bing, Google, Yahoo! Search,
cplusplus.com, and Wikipedia are configured by default.
To find out the format of the search command to use for your favorite
web search engine, perform a search in your browser and copy the resulting
URL to the locator filter configuration. Replace the search term with the
variable \c {%1}.
To add URLs and search commands to the list:
\list 1
\o Select \gui {Tools > Options > Locator > Web Search (prefix: r) >
Edit}.
\o Select \gui Add to add a new entry to the list.
\image qtcreator-add-online-doc.png "Filter Configuration dialog"
\o Double-click the new entry to specify a URL and a search command.
For example, http://www.google.com/search?q=%1.
\o Click \gui OK.
\endlist
\section2 Configuring the Locator Cache
The locator searches the files matching your file pattern in the The locator searches the files matching your file pattern in the
directories you have selected and caches that information. The cache for directories you have selected and caches that information. The cache for