⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assistant.leaf

📁 Trolltech公司发布的基于C++图形开发环境
💻 LEAF
📖 第 1 页 / 共 2 页
字号:
check box then, for example, 'spin' will match 'spin' but not 'Spin'.You can search Forward or Backward from your current position in thepage by clicking one of the Direction radio buttons. Click the \ButtonFind button to search (or search again), and click the \Button Closebutton to finish.\section2 The Settings DialogThe Settings dialog is used to set your preferences for \QA. Thedialog has four tabs: General Settings, Web Settings, PDF Settings,and Profiles. \QA will remember your settings between sessions,including window sizes and positions, and which pages you have open.Each of the tabs is discussed as follows: \list\i General Settings\img general.pngTo change the base font used throughout \QA, select a font type from the Font combobox. To choose a new fixed-width font, for example, to show code snippets, choose a font type from the 'Fixed font' combobox. To change the color of hypertext links, click the 'Link color' color button. Uncheck the 'Underline links' checkbox if you don't want underlined links. \i Web Settings \img web.pngSome pages contain links to external web pages. In order to displaythese links, you must specify a web browser. Type the name of yourbrowser's executable in the Web Browser Application line edit.Alternatively, click the \Button {(ellipsis)} button to invoke the\Widget {Set Web Browser} dialog and navigate until you find the webbrowser you want to use. Click \Button {Save} to accept the selection.To change \QA's default home page, enter the file name in the HomePage line edit. Alternatively, click the \Button {(ellipsis)} buttonto invoke the \Widget {Set Homepage} dialog. Navigate until you findthe home page file you want to use and then click \Button {Save} toaccept the selection.\i PDF Settings\img pdf1.pngSome pages contain links to PDF documents. In order to display theselinks, you must specify a PDF viewer. Type in the name of your PDF viewer'sexecutable in the line edit. Alternatively, click the \Button {(ellipsis)}button to invoke the \Widget {Set PDF Browser} dialog and navigateuntil you find the PDF viewer you want to use. Click \Button Save toaccept the selection. \chapter Full Text Searching\img search.png\QA provides a powerful full text search engine. To searchfor certain words or text, click the 'Search' tab in the sidebar. Thenenter the text you want to look for and press \Key Enter or click\Button Search. The search is not case sensitive, so Foo, fOo andFOO are all treated as the same. The following are examples of common searchpatterns:\list\i \c deep -- lists all the documents that contain the word 'deep'\i \c{deep*} -- lists all the documents that contain a word beginningwith 'deep'\i \c{deep copy} -- lists all documents that contain both 'deep' \eand 'copy'\i \c{"deep copy"} -- list all documents that contain the phrase 'deep copy'\endlistThe wildcard (*) character cannot be used within quotes. The list of documents found is ordered according to the number ofoccurrences of the search text they contain, therefore those with thehighest number of occurrences appearing first. Simply click anydocument in the list to display it in the document window.If the documentation has changed, i.e. if documents have been added orremoved, \QA will reindex.\chapter Customizing Qt Assistant\QA can be customized by adding and removing documentation from itsdocumentation set. In addition, \QA introduces the profiles option,which enables its properties to change, for example, the defaultstartup page, and application icon.\section1 Modifying the Default Documentation SetWhen it is started without any options, \QA displays a default set ofdocumentation. When Qt is installed, the default documentation set in\QA contains the Qt reference documentation as well as the tools thatcome with Qt, such as \QD and qmake.Documentation can be added or removed from \QA byadding and removing the content files. The format of the content files arespecified below.  To add a content file, type the following command lineoption: \c{-addContentFile docfile}. To remove a content file from thedefault set, type the following command line option:\c{-removeContentFile docfile}. For example: \code1: > assistant -addContentFile file.dcf2: > assistant3: > assistant -removeContentFile file.dcf\endcodeIn line one, we add the content file \c file.dcf. In line two, we start\QA. The default set will now be extended with the doc file\c file.dcf. In line three we remove the file \c file.dcf from the defaultdocumentation set so that subsequent use of \QA will not contain thisfile.\section2 Documentation Content File FormatThe Documentation Content File must contain the documentation's tableof contents and all important keywords for the index. In addition, itmay inherit an icon for the documentation which is displayed in the\QA toolbar. You can also specify an extra directory path foradditional images used in the documentation.An example of a content file that uses all the available tags andattributes is shown below:\code<assistantconfig version="3.2.0">    <DCF ref="demo.html" icon="handbook.png" imagedir="../img/"         title="Development Demo Handbook">        <section ref="./chap1/chap1.html" title="Chapter1">            <section ref="./chap1/section1.html" title="Section1">    	        <keyword ref="./chap1/section1.html#foo">foo</keyword>		<keyword ref="./chap1/section1.html#bla">bla</keyword>		<section ref="./chap1/section1.html#subsection1" title="Subsection 1"/>	    	<section ref="./chap1/section1.html#subsection2" title="Subsection 2"/>	    	<section ref="./chap1/section1.html#subsection3" title="Subsection 3"/>            </section>            <section ref="./chap1/section2" title="Section2">	        <section ref="./chap1/section2.html#subsection1" title="Subsection 1"/>	        <section ref="./chap1/section2.html#subsection2" title="Subsection 2"/>	        <section ref="./chap1/section2.html#subsection3" title="Subsection 3"/>            </section>        </section>        <section ref="./chap2/chap2.html" title="Chapter2">            <keyword ref="./chap2/chap2.html#foo">foo</keyword>            <section ref="./chap2/section1.html" title="Section1"/>        </section>    </DCF></assistantconfig>\endcodeSections may be nested as deeply as necessary. All references shouldbe related. Note that any \c keyword tags for a given section must appear \ebefore any sections nested within the given section.The paths in the \c refs attribute are always written Unix-style(forward slashes) and are relative to the location of thedocumentation content file itself.Since the introduction of the new root tag \c assistantconfig in thefileformat from Qt version 3.2.0, it is possible to specify multiple DCF tags inone file. Note that the old document contents file format, used up toQt 3.2 is still valid.\section1 ProfilesProfiles enable \QA to act as a specialized help tool for displayingdocumentation for applications. With profiles, the documentationwriter can change properties such as \QA's title, application icons, and'about' dialogs. In addition, profiles can be used to run specializeddocumentation sets that are separate from the Qt docs. \QA can becustomized by changing the following properties:\list\i Name- This property is used to name the profile. If multipleprofiles are used for the same installation of \QA, thisparameter is crucial to keep their profile specific settingsapart. The property name is \c name\i Title- This property is used to specify a caption for \QA. Theproperty name is \c title\i Application Icon- This property describes an icon that will be usedas \QA application icon. The location of the icon is relative to thelocation of the profile. The property name is \c applicationicon\i Start Page- This property specifies which page \QA should initiallydisplay when the profile is used. Usually, this is the HTML file whichcontains the documentation's table of contents. This property alsodescribes the default location to go to when pressing the home buttonin \QA's main user interface. The start page is specified relative to the location of the profile. The property name is \c startpage\i About Menu Text- This property describes the text that appears inthe \Menu Help menu, e.g. About Application. The property name is \caboutmenutext\i About URL- This property can be used to point to an HTML file thatdescribes the contents in the About dialog that is opened for the\Menu Help menu, e.g. About Application. The url is specified relativeto the location of the profile. The property name is \c abouturl\i \QA Documentation- This property describes the location ofthe \QA documentation. This is required since \QA providesself help, such as the full text search help and the \QAManual option in the \Menu Help menu. The location is a directoryrelative to the location of the profile. The property name is \cassistantdocs.\endlistTo define a profile, one needs to specify a \QA DocumentProfile, usually abbreviated \c{.adp}. The profile is an extension ofthe Documentation Content File described above. We add a \c profiletag containing \c property tags to the format. An example of a document profile file is shown below:\c helpdemo.adp\code<assistantconfig version="3.2.0">    <profile>	<property name="name">HelpExample</property>        <property name="title">Help Example</property>        <property name="applicationicon">logo.png</property>        <property name="startpage">index.html</property>        <property name="aboutmenutext">About Help</property>        <property name="abouturl">../about.txt</property>        <property name="assistantdocs">../../../doc/html</property>    </profile>    <DCF ref="index.html" icon="handbook.png" title="Help example">        <section ref="./manual.html" title="How to use this Example">            <keyword ref="./manual.html#installdocs">Install Docs</keyword>	    <keyword ref="./manual.html#onlydoc">Example Profile</keyword>	    <keyword ref="./manual.html#hide">Hide Sidebar</keyword>	    <keyword ref="./manual.html#openqabutton">Open</keyword>	    <keyword ref="./manual.html#closeqabutton">Close</keyword>	    <keyword ref="./manual.html#display">Display</keyword>        </section>   </DCF></assistantconfig>\endcode\section2 Using ProfilesTo use a profile, run \QA with the option \c {-profile filename}.This will load the profile specified in the file and will customize\QA accordingly. For example, to run \QA with the examplefile above, \c helpdemo.adp, we would run the command as follows:\code > assistant -profile helpdemo.adp\endcodeSee the HelpDemo example in the Qt distribution for a demonstrationon how to use \QA with profiles for your own applications.\omitFor small documentation sets, the sidebar may not be necessary. Youcan hide the sidebar on startup with the following:\codeassistant -hideSidebar\endcode\endomit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -