[QGIS Commit] r8931 - docs/trunk/english_us/user_guide

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Jul 27 13:30:21 EDT 2008


Author: taraathan
Date: 2008-07-27 13:30:20 -0400 (Sun, 27 Jul 2008)
New Revision: 8931

Modified:
   docs/trunk/english_us/user_guide/conventions.tex
   docs/trunk/english_us/user_guide/getting_started.tex
   docs/trunk/english_us/user_guide/working_with_ogc.tex
   docs/trunk/english_us/user_guide/working_with_projections.tex
Log:
conventions.tex
  added comments and rearranged definitions
  changed renewcommand to newcommand for commands previously in qgis_style.sty
getting_started.tex: changed a menuopt macro to dropmenuopt
working_with_ogc.tex: changed \fieldname macros
working_with_projections.tex: changed \fieldname macro



Modified: docs/trunk/english_us/user_guide/conventions.tex
===================================================================
--- docs/trunk/english_us/user_guide/conventions.tex	2008-07-27 17:24:37 UTC (rev 8930)
+++ docs/trunk/english_us/user_guide/conventions.tex	2008-07-27 17:30:20 UTC (rev 8931)
@@ -1,59 +1,101 @@
 % vim: set textwidth=78 autoindent:
-% options for boxes provided by fancybox package are:
-% \fbox, \shadowbox, \doublebox, \ovalbox and \Ovalbox
 %%%%%%%%%%%%%%%%8%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-% general styles for text that the user should type in from the keyboard
-\renewcommand{\usertext}[1]{\texttt{#1}}
-\renewcommand{\filename}[1]{\texttt{#1}}
+% This is a collection of macros to maintain a uniform style throughout
+% the user guide.
+% Many of the styles are intended to mimic the appearance of the GUI.
+% In general, the objective is to use the non-hover appearance, so a user
+% can visually scan the GUI to find something that looks like the instruction
+% in the user guide.
+% Text styles related to coding are used to indicate different kinds of
+% entities, such as classes, methods, etc, and therefore don't correspond to
+% any actual appearance.
+%
+% TEXT STYLES
+% These styles change the text appearance but don't add any shadow boxes
+% and should be used to refer to non-GUI text (command line, code)
+% or non-clickable GUI text (labels).
+%
+% usertext
+% generic style for text that the user should type in from the keyboard
+% Note: for user input into a labelled text field in the GUI, see \inputtext
+% usage: \usertext{qgis ---help}
+\newcommand{\usertext}[1]{\texttt{#1}}
+%
+% filename
+% usage: \filename{lakes.shp}
+\newcommand{\filename}[1]{\texttt{#1}}
+%
+% server
+% usage: \server{myhost.de}
+\newcommand{\server}[1]{\textit{#1}}
+% keystroke
 % style for user input by individual keystrokes
-\renewcommand{\keystroke}[1]{\cornersize{.6}\ovalbox{\textsf{#1}}}
+% usage: \keystroke{p}, \keystroke{Ctrl-B}
+\newcommand{\keystroke}[1]{\cornersize{.6}\ovalbox{\textsf{#1}}}
+%
+% guilabel
 % generic style for text that appears in the GUI
+% usage
 \newcommand{\guilabel}[1]{\textsf{#1}}
+%
+% guiheading
+% style for section heading that appear in dialog boxes
+% such as Vector Layer Properties > metadata
+% usage
 \newcommand{\guiheading}[1]{\textsf{#1}}
-% some styles for use only when discussing Python coding
-\renewcommand{\classname}[1]{\textsf{\textbf{#1}}}
-\renewcommand{\method}[1]{\textsf{\textit{#1}}}
-%\renewcommand{\fieldname}[1]{\textsl{#1}}
-\newcommand{\object}[1]{\textsf{\textit{#1}}}
-% some styles for the Qt GUI
-\newcommand{\qtmainmenuopt}[1]{\textsf{#1}}
-\newcommand{\qtdropmenuopt}[1]{\textsf{#1}}
-\newcommand{\qtdialog}[1]{\textsf{#1}}
-% ??? these styles are from Gary
-\renewcommand{\server}[1]{\textit{#1}}
-\renewcommand{\sqltable}[1]{\textsf{\textbf{#1}}}
-
-
 %
+% dialog
+% usage: \dialog{Layer Properties}
 \newcommand{\dialog}[1]{
 \fcolorbox[rgb]{0.2,0.2,0.95}[rgb]{0.2,0.2,0.95}{%
 \textbf{\textcolor{white}{#1}}}}
 %
-\setlength{\shadowsize}{2pt}%
-% nix, win and osx for platform-specific documentation
-% old versions
-%\newcommand{\nix}[1]{Under GNU/Linix, #1}
-%\newcommand{\win}[1]{Under MS Windows, #1}
-%\newcommand{\osx}[1]{Under Mac OS X, #1}
+% Here are some styles for use only when discussing Python coding
+% classname
+% usage: \classname{NewLayer}
+\newcommand{\classname}[1]{\textsf{\textbf{#1}}}
+%
+% object
+% usage
+\newcommand{\object}[1]{\textsf{\textit{#1}}}
+%
+% method
+% usage: \method{classFactory}
+\newcommand{\method}[1]{\textsf{\textit{#1}}}
+%
+% fieldname: part of the set intend to be used to describe Python coding.
+% So "field" in this case refers to data members of a class or object, not 
+% a "field" from a table or database.
+% I have commented out this macro, because it wasn't actually used in the 
+% creating_applications section.
+% For "fields" from a table or database, use one of the following
+% 1. When the field name is something a user should type in, use \usertext
+% 2. When the field name is something that the user will see in the GUI, but not 
+% click on, use \guilabel
+% 3. When the field name is something that the user will select from a selection 
+% field, use \selectstring. This requires two parameters, one for the 
+% label, the other for the selected text.
+%\newcommand{\fieldname}[1]{\textsl{#1}}% 
 
-% add operation system icons to figure \caption
-% usage \caption{Text \wincaption}
-\newcommand{\nixcaption}{\protect\includegraphics[height=4mm]{nix.eps}}
-\newcommand{\wincaption}{\protect\includegraphics[height=4mm]{win.eps}}
-\newcommand{\osxcaption}{\protect\includegraphics[height=4mm]{osx.eps}}
+%
+% ??? these styles are from Gary: use only in 
+%\newcommand{\sqltable}[1]{\textsf{\textbf{#1}}}
 
-% new versions
-\newcommand{\nix}[1]{\includegraphics[height=5mm]{nix.eps} #1}
-\newcommand{\win}[1]{\includegraphics[height=5mm]{win.eps} #1}
-\newcommand{\osx}[1]{\includegraphics[height=5mm]{osx.eps} #1}
 
-% button
-\renewcommand{\button}[1]{%
+% CLICKABLE STYLES
+% These styles add a shadow box to indicate the user can click on something
+% this command sets the shadow size for the entire document
+\setlength{\shadowsize}{2pt}%
+
+% button: for any button that only has text, no icon
+% usage: \button{Save as Default}
+\newcommand{\button}[1]{%
 \raisebox{-6pt}{%
 \shadowbox{\guilabel{#1}}
 }}
-% mainmenuopt
+% mainmenuopt: for the top level menus such as File
+% usage: \mainmenuopt{Layer}
 \newcommand{\mainmenuopt}[1]{%
 \raisebox{-6pt}{%
 \setlength{\fboxsep}{0pt}%
@@ -61,7 +103,8 @@
 \fcolorbox[gray]{0.9}[gray]{0.9}%
 {\guilabel{#1}}%
 }}}
-% dropmenuopt
+% dropmenuopt: for dropdown menu items with no icon
+% usage: \mainmenuopt{View} > \dropmenuopt{Toolbar Visibility}
 \newcommand{\dropmenuopt}[1]{%
 \raisebox{-6pt}{{%
 \setlength{\fboxsep}{0pt}%
@@ -69,7 +112,8 @@
 \fcolorbox[rgb]{.95,.95,0.8}[rgb]{.95,.95,0.8}%
 { \guilabel{#1}}}%
 }}}
-% dropmenucheck
+% dropmenucheck: for dropdown menu checkboxes
+% usage: \mainmenuopt{View} > \dropmenucheck{Legend}
 \newcommand{\dropmenucheck}[1]{%
 \raisebox{-6pt}{{%
 \setlength{\fboxsep}{0pt}%
@@ -77,7 +121,9 @@
 \fcolorbox[rgb]{.95,.95,0.8}[rgb]{.95,.95,0.8}%
 { $\boxtimes$ \guilabel{#1}}}%
 }}}
-% dropmenuopttwo
+% dropmenuopttwo: for dropdown menu items with icons
+% usage: \mainmenuopt{Layer} > 
+% \dropmenuopttwo{mActionAddRasterLayer}{Add a Raster Layer}
 \newcommand{\dropmenuopttwo}[2]{%
 \raisebox{-6pt}{%
 {%
@@ -86,18 +132,34 @@
 \fcolorbox[rgb]{.95,.95,0.8}[rgb]{.95,.95,0.8}%
 {\includegraphics[width=3mm]{#1} \guilabel{#2}}}%
 }}}
-% tooltip
+% tooltip: for the tooltip that appears when hovering on a tool button
+% usage
 \newcommand{\tooltip}[1]{%
 \raisebox{-2pt}{%
 \fcolorbox{black}[rgb]{1,1,0.8}{\guilabel{#1}}%
 }}
-% toolbtntwo
+% toolbtntwo: for toolbar items
+%usage: \toolbtntwo{mActionAddRasterLayer}{Add a Raster Layer}
+%
 \newcommand{\toolbtntwo}[2]{%
 \raisebox{-6pt}{%
 \shadowbox{\includegraphics[width=7mm]{#1}}} %
 \tooltip{#2}%
 }
+%\toolbox
+%Used only for menu items (modules) in the GRASS toolbox. 
+%These icons may use 1 or more 
+%images, and so require different numbers of arguments.
+% \toolboxtwo takes two arguments: one image name and a text label, and so on.
+%The images have names like nviz.1.eps.
+%This naming convention, or something like it, is required because some modules
+%require a set of images to represent them, indicating for example, the
+%starting format and the ending format of a conversion module. When
+%referring to these images in the latex source, it is necessary to
+%include the .eps extension, otherwise the \includegraphics macro looks
+%for nviz.1 and can't find it. 
 % toolboxtwo
+% usage: \toolboxtwo{nviz.1.eps}{nviz - Open 3D-View in NVIZ}
 \newcommand{\toolboxtwo}[2]{%
 \raisebox{-6pt}{%
 \shadowbox{%
@@ -105,32 +167,40 @@
 \guilabel{ #2}%
 }}}
 % toolboxthree
+% usage: two icons are used to describe a transformation
+%\toolboxthree{r.in.gdal.1.eps}{r.in.gdal.2.eps}%
+%{r.in.gdal - Import GDAL supported raster file
+%into a binary raster map layer}%
 \newcommand{\toolboxthree}[3]{%
 \raisebox{-6pt}{%
 \shadowbox{%
 \includegraphics[width=5mm]{#1}%
+->%
 \includegraphics[width=5mm]{#2}%
  \guilabel{#3}%
 }}}
 % toolboxfour
+% usage: similar to toolboxthree, but two kinds of inputs
+% are combined to create a third
 \newcommand{\toolboxfour}[4]{%
 \raisebox{-6pt}{%
 \shadowbox{%
 \includegraphics[width=5mm]{#1}%
++%
 \includegraphics[width=5mm]{#2}%
+->%
 \includegraphics[width=5mm]{#3}%
  \guilabel{#4}%
 }}}
-%not to be used anymore
-%\newcommand{\toolbox}[2]{%
-%\toolboxtwo{#1}{#2}%
-%}
-% tab
+
+% tab: for tabs in dialog boxes
+% usage: \tab{General}
 \newcommand{\tab}[1]{%
 \raisebox{-6pt}{%
 \shadowbox{\guilabel{#1}}
 }}
-% checkbox
+% checkbox: for checkboxes in dialog boxes
+% usage: \checkbox{Render}
 \newcommand{\checkbox}[1]{%
 \raisebox{2pt}{%
 \fbox{%
@@ -138,47 +208,53 @@
 \shadowbox{x}} %
 \guilabel{#1}}%
 }}
-% radiobuttonoff
+% radiobuttonoff: to indicate a radiobutton in the off state
+% usage: \radiobuttonon{Postgis SRID} \radiobuttonoff{EPSG ID}
 \newcommand{\radiobuttonoff}[1]{%
 \raisebox{-4pt}{%
 \setlength{\fboxsep}{1pt}%
 \shadowbox{%
-$\bigcirc$%
+$\bigcirc$%$
 }} %
 \guilabel{#1}%
 }
-% radiobuttonon
+% radiobuttonon: to indicate a radiobutton in the on state
+% usage: \radiobuttonon{Postgis SRID} \radiobuttonoff{EPSG ID}
 \newcommand{\radiobuttonon}[1]{%
-$\odot$ %
+$\odot$ %$
 \guilabel{#1}%
 }
-% selectnumber
+% selectnumber: a selection field with numerical values
+% usage: \selectnumber{Hue}{60}
 \newcommand{\selectnumber}[2]{%
 \fbox{%
 {#1} \fbox{{#2} %
 \raisebox{-6pt}{%
 \setlength{\fboxsep}{1pt}%
 \shadowbox{%
-${\blacktriangle}\atop{\blacktriangledown}$%
+${\blacktriangle}\atop{\blacktriangledown}$%$
 }}}}}
 %
-% selectstring
+% selectstring: a selection field with string values
+% usage: \selectstring{Outline style}{---Solid Line}
 \newcommand{\selectstring}[2]{%
 \fbox{%
 \guilabel{#1} \fbox{\guilabel{#2} %
 \raisebox{-2pt}{%
 \setlength{\fboxsep}{1pt}%
 \shadowbox{%
-$\blacktriangledown$%
+$\blacktriangledown$%$
 }}}}}
 %
-% browsebutton
+% browsebutton: a button with 3 dots, used to browse for files
+% usage: \browsebutton
 \newcommand{\browsebutton}{%
 \raisebox{-6pt}{%
 \shadowbox{\rule[-1mm]{0mm}{4mm}{$\ldots$}}
 }}
 %
-% selectcolor
+% selectcolor: a selection field for colors
+% usage: \selectcolor{Outline color}{yellow}
 \newcommand{\selectcolor}[2]{%
 \fbox{\guilabel{#1} %
 \raisebox{-6pt}{%
@@ -187,7 +263,8 @@
 \fcolorbox{#2}{#2}{\rule{0mm}{5mm}\rule{35mm}{0mm}%
 }}}}}
 %
-% slider
+% slider: these appear in several dialog boxes
+% usage: \slider{Transparency}{0}{20mm}
 \newcommand{\slider}[3]{%
 \fbox{%
 \guilabel{#1} \guilabel{#2}\% %
@@ -195,11 +272,12 @@
 \setlength{\fboxsep}{1pt}%
 \shadowbox{%
 $\triangledown$%
-}}%
+}}%$
 \negthinspace\rule[1mm]{20mm}{1mm}
 }}
 %
-% input text
+% input text: a labelled field in a dialog box where the user types in text
+% usage: \inputtext{Display Name}{lakes.shp}
 \newcommand{\inputtext}[2]{%
 \fbox{%
 \guilabel{#1} %
@@ -207,7 +285,66 @@
 \shadowbox{\usertext{#2}}%
 }}}
 %
+% clicklistitem: clickable list item in a dialog box
+% the actual text in the list item will depend on the application
+% usage: \clicklistitem{Canadian Land}
+\newcommand{\clicklistitem}[1]{%
+\raisebox{-6pt}{%
+\shadowbox{\guilabel{#1}}
+}}
+
+% NON-CLICKABLE IMAGE STYLES
+% These styles insert images to indicate platform-specific documentation
+% usage:
+% inline usage: for GUI sequences and short text
+% Click \{\nix{}\win{File} \osx{QGIS}\} > Quit to close QGIS.
+% itemized usage: for moderate amounts of text
+%\begin{itemize}
+%\item \nix{do this;} 
+%\item \win{do that;} 
+%\item \osx{do something else.}
+%\end{itemize}
+% paragrahs usage: for larger amounts of text
 %
+%\nix{}Do this and this and this. Then do this
+%and this and this
+%and this and this
+%and this and this
+%and this and this.
+%
+%Note: on OSX the following commands differ from *NIX and Windows
+%- options dialog is called preferences and is found under
+% QGIS->Preferences and the shortcut will always be Command , (command
+comma)
+%- What is usually the Help->about dialog will always be QGIS->About qgis
+%- File->Quit will always be QGIS->Quit qgis and the keyboard
+shortcut should always be Command Q
+%- Colour, font and file dialogs will have differences between platforms
+%- if other differences are discovered, please add here
+\newcommand{\nix}[1]{\includegraphics[height=5mm]{nix.eps} #1}
+\newcommand{\win}[1]{\includegraphics[height=5mm]{win.eps} #1}
+\newcommand{\osx}[1]{\includegraphics[height=5mm]{osx.eps} #1}
+%
+% add operation system icons to figure \caption
+% usage: \caption{Text \wincaption}
+\newcommand{\nixcaption}{\protect\includegraphics[height=4mm]{nix.eps}}
+\newcommand{\wincaption}{\protect\includegraphics[height=4mm]{win.eps}}
+\newcommand{\osxcaption}{\protect\includegraphics[height=4mm]{osx.eps}}
+
+
+% OTHER STYLES
+% some styles for the Qt GUI- these are placeholders at present
+\newcommand{\qtmainmenuopt}[1]{\textsf{#1}}
+\newcommand{\qtdropmenuopt}[1]{\textsf{#1}}
+\newcommand{\qtdialog}[1]{\textsf{#1}}
+
+% These styles were used in an earlier version and should not be used anymore
+%\toolbox: use \toolboxtwo instead
+%\newcommand{\toolbox}[2]{%
+%\toolboxtwo{#1}{#2}%
+%}
+
+%
 \subsection{Conventions}\label{label_conventions}
 
 The conventions used in this manual are as follows. 
@@ -298,8 +435,8 @@
 %\item Name of a Field: \fieldname{NAMES}
 \item Name of a Class: \classname{NewLayer}
 \item Method: \method{classFactory}
-\item Server: \server{example needed here}
-\item SQL Table: \sqltable{example needed here}    
+\item Server: \server{myhost.de}
+%\item SQL Table: \sqltable{example needed here}    
 %
 %Use usertext for all other text that the user must enter from the keyboard
 %that is not covered by any of the above cases
@@ -357,16 +494,8 @@
 something else and
 something else and
 something else altogether.
-%Note: on OSX the following commands differ from *NIX and Windows
-%- options dialog is called preferences and is found under
-% QGIS->Preferences and the shortcut will always be Command , (command
-comma)
-%- What is usually the Help->about dialog will always be QGIS->About qgis
-%- File->Quit will always be QGIS->Quit qgis and the keyboard
-shortcut should always be Command Q
-%- Colour, font and file dialogs will have differences between platforms
-%- if other differences are discovered, please add here
 
 
 
 
+

Modified: docs/trunk/english_us/user_guide/getting_started.tex
===================================================================
--- docs/trunk/english_us/user_guide/getting_started.tex	2008-07-27 17:24:37 UTC (rev 8930)
+++ docs/trunk/english_us/user_guide/getting_started.tex	2008-07-27 17:30:20 UTC (rev 8931)
@@ -330,7 +330,7 @@
 If several vector data sources have the same vector type and the same attributes, their 
 symbolisations may be grouped. This means that if the symbolisation of one data source is 
 changed, the others automatically have the new symbolisation as well. To group symbologies, open 
-the right click menu in the legend window and choose \menuopt{Show file groups}. The file groups of the 
+the right click menu in the legend window and choose \dropmenuopt{Show file groups}. The file groups of the 
 layers appear. It is now possible to drag a file from one file group into another one. If this is done, 
 the symbologies are grouped. Note that QGIS only permits the drag if the two layers are able to share 
 symbology (same vector type and same attributes).  

Modified: docs/trunk/english_us/user_guide/working_with_ogc.tex
===================================================================
--- docs/trunk/english_us/user_guide/working_with_ogc.tex	2008-07-27 17:24:37 UTC (rev 8930)
+++ docs/trunk/english_us/user_guide/working_with_ogc.tex	2008-07-27 17:30:20 UTC (rev 8931)
@@ -89,8 +89,8 @@
 \end{tabular}
 \end{table}
 
-At least \fieldname{Name} and \fieldname{URL} are required entries; the
-\fieldname{proxy} entries 
+At least \guilabel{Name} and \guilabel{URL} are required entries; the
+\guilabel{proxy} entries 
 can be left blank if you have a clear path to your WMS server.
 
 Once the new WMS Server has been created, it will be preserved across future 
@@ -391,13 +391,13 @@
   \item Make sure the WFS plugin is loaded; if not, open the Plugin Manager and load it
   \item Click on the \toolbtntwo{wfs-icon}{Add WFS Layer} tool on the plugins toolbar
   \item Click on \button{New} 
-  \item Enter \fieldname{DM Solutions} as the name
+  \item Enter \inputtext{Name}{DM Solutions} as the name
   \item Enter the URL (see previous page)
   \item Click \button{OK} 
-  \item Choose \fieldname{DM Solutions} from the drop-down box
+  \item Choose \selectstring{Server Connections}{DM Solutions} from the drop-down box
   \item Click \button{Connect} 
   \item Wait for the list of layers to be populated
-  \item Click on the \fieldname{Canadian Land} layer
+  \item Click on the \clicklistitem{Canadian Land} layer
   \item Click \button{Add} to add the layer to the map
   \item Wait patiently for the features to appear
 \end{enumerate}

Modified: docs/trunk/english_us/user_guide/working_with_projections.tex
===================================================================
--- docs/trunk/english_us/user_guide/working_with_projections.tex	2008-07-27 17:24:37 UTC (rev 8930)
+++ docs/trunk/english_us/user_guide/working_with_projections.tex	2008-07-27 17:30:20 UTC (rev 8931)
@@ -147,7 +147,7 @@
 
 You can test your projection parameters to see if they give sane results by
 clicking on the \tab{Test} tab and pasting your projection parameters into
-the \fieldname{Parameters} field. Then enter known WGS 84 latitude and longitude
+the \guilabel{Parameters} field. Then enter known WGS 84 latitude and longitude
 values in North and East fields respectively. Click on \button{Calculate} and
 compare the results with the known values in your projected coordinate
 system. 



More information about the QGIS-commit mailing list