ide.tex 120 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213
  1. %
  2. % $Id$
  3. % This file is part of the FPC documentation.
  4. % Copyright (C) 2000 by Florian Klaempfl
  5. %
  6. % The FPC documentation is free text; you can redistribute it and/or
  7. % modify it under the terms of the GNU Library General Public License as
  8. % published by the Free Software Foundation; either version 2 of the
  9. % License, or (at your option) any later version.
  10. %
  11. % The FPC Documentation is distributed in the hope that it will be useful,
  12. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. % Library General Public License for more details.
  15. %
  16. % You should have received a copy of the GNU Library General Public
  17. % License along with the FPC documentation; see the file COPYING.LIB. If not,
  18. % write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. % Boston, MA 02111-1307, USA.
  20. %
  21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  22. % The IDE
  23. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  24. \chapter{The IDE}
  25. The IDE (\textbf{I}ntegrated \textbf{D}evelopment \textbf{E}nvironment)
  26. provides a comfortable user interface to the compiler. It contains an
  27. editor with syntax highlighting, a debugger, symbol browser etc.
  28. The IDE is a text-mode application which has the same look and feel
  29. on all supported operating systems. It is modelled after the IDE of Turbo
  30. Pascal, so many people should feel comfortable using it.
  31. Currently, the IDE is available for \dos, \windows and \linux.
  32. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  33. % First steps with the IDE
  34. \section{First steps with the IDE}
  35. %
  36. % Starting the IDE
  37. %
  38. \subsection{Starting the IDE}
  39. The IDE is started by entering the command:
  40. \begin{verbatim}
  41. fp
  42. \end{verbatim}
  43. at the command line. It can also be started from a graphical user
  44. interface such as \windows.
  45. \begin{remark}
  46. Under \windows, it is possible to switch between windowed mode and
  47. full screen mode by pressing \key{Alt-Enter}).
  48. \end{remark}
  49. %
  50. % IDE command-line options.
  51. %
  52. \subsection{IDE Command line options}
  53. When starting the IDE, command line options can be passed:
  54. \begin{verbatim}
  55. fp [-option] [-option] ... <file name> ...
  56. \end{verbatim}
  57. \var{Option} is one of the following switches (the option letters
  58. are case insensitive):
  59. \begin{description}
  60. \item [-N] (\dos only) Do not use long file names. \windows 95 and later
  61. versions of \windows provide an interface to DOS applications to access
  62. long file names.
  63. The IDE uses this interface by default to access files. Under certain
  64. circumstances, this can lead to problems. This switch tells the IDE not to
  65. use the long filenames.
  66. \item [-Cfilename] This option, followed by a filename, tells the IDE to
  67. read its options from \file{filename}. There should be no whitespace between
  68. the file name and the \var{-C}.
  69. \item [-F] use alternative graphic characters. This can be used to run the
  70. IDE on \linux in an X-term or through a telnet session.
  71. \item [-R] After starting the IDE, it changes automatically to the directory
  72. which was active when the IDE exited the last time.
  73. \item [-S] Disable the mouse. When this option is used, then the mouse is
  74. disabled, even if a mouse is present.
  75. \end{description}
  76. The files given at the command line are loaded into edit windows automatically.
  77. \begin{remark}
  78. Under DOS/Win32, the first character of a command-line option can be a \var{/}
  79. character instead of a \var{-} character. So \var{/S} is equivalent to \var{-S}.
  80. \end{remark}
  81. \subsection{The IDE screen}
  82. After start up, the screen of the IDE can look like
  83. \begin{htmlonly}
  84. this:
  85. \fpcaddimg{../pics/idestart.png}
  86. \end{htmlonly}
  87. \begin{latexonly}
  88. \seefig{idestart}.
  89. \begin{figure}
  90. \caption{The IDE screen immediately after startup}
  91. \label{fig:idestart}
  92. \ifpdf
  93. \epsfig{file=pics/idestart.png,width=\textwidth}
  94. \else
  95. \epsfig{file=pics/idestart.eps,width=\textwidth}
  96. \fi
  97. \end{figure}
  98. \end{latexonly}
  99. At top of the screen the \emph{menu bar} is visible, at the bottom
  100. the \emph{status bar}. The empty space between them is called the
  101. \emph{desktop}.
  102. The status bar shows the keyboard shortcuts for frequently used
  103. commands, and allows quick access to these commands by clicking
  104. them with the mouse.
  105. At the right edge of the status bar, the current amount of unused
  106. memory is displayed. This is only an indication, since the IDE
  107. tries to allocate more memory from the operating system if it
  108. runs out of memory.
  109. The menu provides access to all of the IDE's functionality, and
  110. at the right edge of the menu, a clock is displayed.
  111. The IDE can be left by selecting \menu{File|Exit} in the menu
  112. \footnote{\menu{File|Exit} means select the item 'Exit' in the menu 'File'.}
  113. or by pressing \key{Alt-X}.
  114. \begin{remark}
  115. If a file \file{fp.ans} is found in the current directory,
  116. then it is loaded and used to paint the background.
  117. This file should contain ANSI drawing commands to draw on a screen.
  118. \end{remark}
  119. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  120. % Navigating in the IDE
  121. \section{Navigating in the IDE}
  122. The IDE can be navigated both with the keyboard and with a mouse, if the
  123. system is equipped with a mouse.
  124. %
  125. % Using the keyboard
  126. %
  127. \subsection{Using the keyboard}
  128. All functionality of the IDE is available through use of the keyboard.
  129. \begin{itemize}
  130. \item It is used for typing and navigating through the sources.
  131. \item Editing commands such as copying and pasting text.
  132. \item Moving and resizing windows.
  133. \item It can be used to access the menu, by pressing \key{ALT} and the
  134. appropriate highlighted menu letter, or by pressing \key{F10} and
  135. navigating through the menu with the arrow keys.
  136. more information on the menu can be found in \sees{idemenu}
  137. \item Many commands in the IDE are bound to shortcuts, i.e. typing a special
  138. combination of keys will execute a command immediately.
  139. \end{itemize}
  140. \begin{remark}
  141. \begin{itemize}
  142. \item When working in a \linux X-Term or through a telnet session, the
  143. key combination with \key{Alt} may not be available. To remedy this, the
  144. \key{Ctrl-Z} combination can be typed first. This means that e.g. \key{Alt-X}
  145. can be replaced by \key{Ctrl-Z X}.
  146. \item A complete reference of all keyboard shortcuts can be found in
  147. \sees{keyshortcuts}.
  148. \end{itemize}
  149. \end{remark}
  150. %
  151. % Using the mouse
  152. %
  153. \subsection{Using the mouse}
  154. \label{suse:mouseusage}
  155. If the system is equipped with a mouse, it can be used to work with the
  156. IDE. The left button is used to select menu items, press buttons, select
  157. text blocks etc.
  158. The right mouse button is used to access the local menu, if available.
  159. Holding down the \key{Ctrl} or \key{Alt} key and clicking the right
  160. button will execute user defined functions, see \sees{prefmouse}.
  161. \begin{remark}
  162. \begin{enumerate}
  163. \item Occasionally, the manual uses the term "drag the mouse". This
  164. means that the mouse is moved while the left mouse button is being
  165. pressed.
  166. \item
  167. The action of mouse buttons may be reversed, i.e. the actions of the left
  168. mouse button can be assigned to the right mouse button and vice versa
  169. \footnote{See \sees{prefmouse} for more information on how to reverse the
  170. actions of the mouse buttons.}. Throughout the manual, it is assumed
  171. that the actions of the mouse buttons are not reversed.
  172. \item
  173. The mouse is not always available, even if a mouse is installed:
  174. \begin{itemize}
  175. \item The IDE is running under \linux through a telnet connection from
  176. a \windows machine.
  177. \item The IDE is running under \linux in an X-term under X-windows.
  178. \end{itemize}
  179. \end{enumerate}
  180. \end{remark}
  181. %
  182. % Navigating in dialogs
  183. %
  184. \subsection{Navigating in dialogs}
  185. \label{se:navigatingdialogs}
  186. Dialogs usually have a lot of elements in them such as buttons, edit fields,
  187. memo fields, list boxes and so on. To activate one of these fields, it is
  188. sufficient to:
  189. \begin{enumerate}
  190. \item Click on the element with the mouse.
  191. \item Press the \key{Tab} key till the focus reaches the mouse
  192. \item Press the highlighted letter in the element's label. If the focus
  193. is currently on an element that allows to edit, then \key{Alt} should be
  194. pressed simultaneously with the highlighted letter. For a button, the action
  195. associated with the button will then be executed.
  196. \end{enumerate}
  197. Inside edit fields, list boxes, memos, navigation is carried out with the
  198. usual arrow key commands.
  199. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  200. % Windows
  201. \section{Windows}
  202. \label{se:windows}
  203. Nowadays, working with windowed applications should be no problem for
  204. most \windows and \linux users. Nevertheless, the following section
  205. describes how the windows work in the \fpc IDE, to allow efficient
  206. work with it.
  207. %
  208. % Window basics
  209. %
  210. \subsection{Window basics}
  211. \label{se:windowbasics}
  212. \begin{htmlonly}
  213. A common IDE window is displayed below:
  214. \fpcaddimg{../pics/idewin.png}
  215. \end{htmlonly}
  216. \begin{latexonly}
  217. A common IDE window is displayed in \seefig{idewin}.
  218. \begin{figure}
  219. \caption{A common IDE window}
  220. \label{fig:idewin}
  221. \ifpdf
  222. \epsfig{file=pics/idewin.png,width=\textwidth}
  223. \else
  224. \epsfig{file=pics/idewin.eps,width=\textwidth}
  225. \fi
  226. \end{figure}
  227. \end{latexonly}
  228. The window is surrounded by a so-called \emph{frame}, the white double
  229. line around the window.
  230. At the top of the window 4 things are displayed:
  231. \begin{itemize}
  232. \item
  233. At the upper left corner of the window, a \emph{close icon} is shown.
  234. When clicked, the window will be closed. It can be also closed by
  235. pressing \key{Alt-F3} or selecting the menu item \menu{Window|Close}.
  236. All open windows can be closed by selecting the menu item
  237. \menu{Window|Close all}.
  238. \item In the middle, the title of the window is displayed.
  239. \item Almost at the upper right corner, a number is visible.
  240. This number identifies the editor window, and pressing \key{Alt-Number}
  241. will jump to this window. Only the first 9 windows will get such a number.
  242. \item At the upper right corner, a small green arrow is visible.
  243. Clicking this arrow zooms the window so it covers the whole desktop.
  244. Clicking this arrow on a zoomed window will restore old size of the
  245. window. Pressing the key \key{F5} has the same effect as clicking
  246. that arrow. The same effect can be achieved with the menu item
  247. \menu{Window|Zoom}.
  248. Windows and dialogs which aren't resizeable can't be zoomed, either.
  249. \end{itemize}
  250. The right edge and bottom edges of a window contain scrollbars.
  251. They can be used to scroll the window contents with the mouse.
  252. The arrows at the ends of the scrollbars can be clicked to scroll the
  253. contents line by line. Clicking on the dotted area between the arrows
  254. and the cyan-coloured rectangle will scroll the window's content
  255. page by page. By dragging the rectangle the content can be scrolled
  256. continuously.
  257. The star and the numbers in the lower left corner of the window
  258. display information about the contents of the window. They
  259. are explained in the section about the editor, see \sees{editingtext}.
  260. %
  261. % Sizing+moving windows
  262. %
  263. \subsection{Sizing and moving windows}
  264. \label{se:windowsizingmoving}
  265. A window can be moved and sized using the mouse and the keyboard:
  266. To move a window:
  267. \begin{itemize}
  268. \item using the mouse, click on the title bar and drag the window
  269. with the mouse.
  270. \item using the keyboard, go into the size/move mode
  271. by pressing \key{Ctrl-F5} or selecting the menu item
  272. \menu{Window|Size/Move}. . Using the cursor keys the window can be moved.
  273. The size/move mode can be left by pressing \key{Enter}.
  274. In this case, the window will keep its size and position.
  275. Alternatively, pressing \key{Esc} will restore the old position.
  276. \end{itemize}
  277. To resize a window:
  278. \begin{itemize}
  279. \item using the mouse, click on the lower right corner of the window
  280. and drag it.
  281. \item using the keyboard, go into the size/move mode
  282. by pressing \key{Ctrl-F5} or selecting the menu item
  283. \menu{Window|Size/Move}. The window frame will be green to indicate that
  284. the IDE is in size/move mode.
  285. By pressing shift and the cursor keys simultaneously, the window can
  286. be resized. The size/move mode can be left by pressing
  287. \key{Enter}. In this case, the window will keep the new size.
  288. Pressing \key{Esc} will restore the old size.
  289. \end{itemize}
  290. Not all windows can be resized. This applies, for example, to
  291. \emph{dialog windows} (\sees{dialogwindow}).
  292. A window can also be hidden. To hide a window, the \key{Ctrl-F6} key
  293. combination can be used, or the \menu{Window|Hide} menu may be selected.
  294. To restore a Hidden window, it is necessary to select it from the window
  295. list. More information about the window list can be found in the next
  296. section.
  297. %
  298. % Multiple windows
  299. %
  300. \subsection{Working with multiple windows}
  301. \label{se:multiplewindows}
  302. When working with larger projects, it is likely that multiple windows
  303. will appear on the desktop. However, only one of these windows will be
  304. the active window, all other windows will be inactive.
  305. An inactive window is identified by a grey frame. An inactive window can
  306. be made active in one of several ways:
  307. \begin{itemize}
  308. \item using the mouse, activate a window by clicking on it.
  309. \item using the keyboard, pressing \key{F6} will step trough all open
  310. windows. To activate the previously activated window, \key{Shift-F6} can
  311. be used.
  312. \item the menu item \menu{Window|Next} can be used to activate the next
  313. window in the list of windows, while \var{Window|Previous} will select
  314. the previous window.
  315. \item If the window has a number in the upper right corner, it can be
  316. activated by pressing \key{Alt-<number>}.
  317. \item Pressing \key{Alt-0} will pop up a dialog with all
  318. available windows which allows a quick activation of windows which
  319. don't have a number.
  320. \end{itemize}
  321. The windows can be ordered and placed on the IDE desktop by zooming and
  322. resizing them with the mouse or keyboard. This is a time-consuming task,
  323. and particularly difficult with the keyboard. Instead, the menu items
  324. \menu{Window|Tile} and \menu{Window|Cascade} can be used:
  325. \begin{description}
  326. \item[Tile] will divide whole desktop space evenly between all resizable
  327. windows.
  328. \item[Cascade] puts all windows in a cascaded position.
  329. \end{description}
  330. In very rare cases the screen of the IDE may be mixed up. In this
  331. case the whole IDE screen can be refreshed by selecting the menu item
  332. \menu{Window|Refresh display}.
  333. %
  334. % Dialog windows
  335. %
  336. \subsection{Dialog windows}
  337. \label{se:dialogwindow}
  338. In many cases the IDE displays a dialog window to get user input.
  339. The main difference to normal windows is that other windows cannot be
  340. activated while a dialog is active. Also the menu is not accessible while in
  341. a dialog. This behaviour is called \emph{modal}. To activate another window,
  342. the modal window or dialog must be closed first.
  343. \begin{htmlonly}
  344. A typical dialog window looks like:
  345. \fpcaddimg{../pics/idedlg.png}
  346. \end{htmlonly}
  347. \begin{latexonly}
  348. A typical dialog window is shown in \seefig{idedlg}.
  349. \begin{figure}
  350. \caption{A typical dialog window}
  351. \label{fig:idedlg}
  352. \ifpdf
  353. \epsfig{file=pics/idedlg.png,width=\textwidth}
  354. \else
  355. \epsfig{file=pics/idedlg.eps,width=\textwidth}
  356. \fi
  357. \end{figure}
  358. \end{latexonly}
  359. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  360. % The menu
  361. \section{The Menu}
  362. \label{se:idemenu}
  363. The main menu (the gray bar at the top of the IDE) provides access to all the
  364. functionality of the IDE. It also displays a clock, displaying the current
  365. time. The menu is always available, except when a dialog is opened. If a
  366. dialog is opened, it must be closed first in order to access the menu.
  367. In certain windows, a local menu is also available. The local menu will
  368. appear where the cursor is, and provides additional commands that are
  369. context-sensitive.
  370. %
  371. % Accessing the menu
  372. %
  373. \subsection{Accessing the menu}
  374. The menu can be accessed in a number of ways:
  375. \begin{enumerate}
  376. \item By using the mouse to select items. The mouse cursor should be located
  377. over the desired menu item, and a left mouse click will then select it.
  378. \item By pressing \key{F10}. This will switch the IDE focus to the menu.
  379. Use the arrow keys can then be used to navigate in the menu, the
  380. \key{Enter} key should be used to select items.
  381. \item To access menu items directly, \key{Alt-<highlighted menu letter>}
  382. can be used to select a menu item. Afterwards submenu entries can be selected
  383. by pressing the highlighted letter, but without \key{Alt}.
  384. E.g. \key{Alt-S G} is a fast way to display the \emph{goto line} dialog.
  385. \end{enumerate}
  386. Every menu item is explained by a short text in the status bar.
  387. When a local menu is available, it can be accessed by pressing
  388. the right mouse button or \key{Alt-F10}.
  389. In the subsequent, all menu entries and their actions are described.
  390. %
  391. % The file menu
  392. %
  393. \subsection{The File menu}
  394. \label{se:menufile}
  395. The \menu{File} menu contains all menu items that allow to load and save file, as
  396. well as to exit the IDE.
  397. \begin{description}
  398. \item[New] Opens a new, empty editor window.
  399. \item[New from template] Prompts for a template to be used, asks to fill in
  400. any parameters, and then starts a new editor window with the template.
  401. \item[Open] (\key{F3}) Presents a file selection dialog, and opens
  402. the selected file in a new editor window.
  403. \item[Save] (\key{F2}) Saves the contents of the current edit window
  404. with the current filename. If the current edit window does not yet have
  405. a filename, a dialog is presented to enter a filename.
  406. \item[Save as] Presents a dialog in which a filename can be entered. The
  407. current window's contents are then saved to this new filename, and the
  408. filename is stored for further save actions.
  409. \item[Change dir] Presents a dialog in which a directory can be selected.
  410. The current working directory is then changed to the selected directory.
  411. \item[Command shell] Executes a command shell. After the shell exited, the
  412. IDE resumes. Which command shell is executed depends on the system.
  413. \item[Exit] (\key{ALT-X}) Exits the IDE. If any unsaved files are
  414. in the editor, the IDE will ask if these files should be saved.
  415. \end{description}
  416. Under the \menu{Exit} menu appear some filenames of recently used files.
  417. These entries can be used to quickly reload these files in the editor.
  418. %
  419. % The edit menu
  420. %
  421. \subsection{The Edit menu}
  422. \label{se:menuedit}
  423. The \menu{Edit} menu contains entries for accessing the clipboard, and
  424. undoing or redoing editing actions. Most of these functions have shortcut
  425. keys associated with them.
  426. \begin{description}
  427. \item[Undo] (\key{ALT-BKSP})
  428. Undo the last editing action. The editing actions are stored in a buffer,
  429. selecting this mechanism will move backwards through this buffer, i.e.
  430. multiple undo levels are possible. The selection is not preserved, though.
  431. \item[Redo] Redo the last action that was previously undone. Redo can redo
  432. multiple undone actions.
  433. %\item[Dump undo]
  434. %Shows the contents of the UNDO list in the messages window.
  435. %\item[Undo all]
  436. %Undo all actions in the undo buffer. If a new empty file was started, this
  437. %action should clear the window contents again.
  438. %\item[Redo all]
  439. %Redo all editing actions that were undone.
  440. \item[Cut] (\key{Shift-DEL}) Copy the current selection to the clipboard
  441. and delete the selection from the text. Any previous clipboard contents is
  442. lost after this action. After this action, the clipboard contents can be
  443. pasted elsewhere in the text.
  444. \item[Copy] (\key{Ctrl-INS}) Copy the current selection to the clipboard.
  445. Any previous clipboard contents is lost after this action.
  446. After this action, the clipboard contents can be pasted elsewhere in the text.
  447. \item[Paste] (\key{Shift-INS}) Insert the current clipboard contents in
  448. the text at the cursor position. The clipboard contents remains as it was.
  449. \item[Clear] (\key{Ctrl-DEL}) Clears (i.e. deletes) the current
  450. selection.
  451. \item[Show clipboard] Opens a window in which the current clipboard contents
  452. is shown.
  453. \end{description}
  454. When running an IDE under \windows, the \menu{Edit} menu has two
  455. additional entries. The IDE maintains a separate clipboard which does
  456. not share its contents with the windows clipboard. To access the Windows
  457. clipboard, the following two entries are also present:
  458. \begin{description}
  459. \item[Copy to Windows] this will copy the selection to the Windows
  460. clipboard.
  461. \item[Paster from windows] this will insert the content of the windows
  462. clipboard (if it contains text) in the edit window at the current cursor
  463. position.
  464. \end{description}
  465. %
  466. % The Search menu
  467. %
  468. \subsection{The Search menu}
  469. \label{se:menusearch}
  470. The \menu{Search} menu provides access to the search and replace dialogs, as well as
  471. access to the symbol browser of the IDE.
  472. \begin{description}
  473. \item[Find] (\key{Ctrl-Q F}) Presents the search dialog. A search text
  474. can be entered, and when the dialog is closed, the entered text is searched
  475. in the active window. If the text is found, it will be selected.
  476. \item[Replace] (\key{Ctrl-Q A}) Presents the search and replace dialog.
  477. After the dialog is closed, the search text will be replaced by the replace
  478. text in the active window.
  479. \item[Search again] (\key{CTRL-L}) Repeats the last search or search and replace action,
  480. using the same parameters.
  481. \item[Go to line number] (\key{Alt-G}) Prompts for a line number, and
  482. then jumps to this line number.
  483. \end{description}
  484. When the program and units are compiled with browse information, then
  485. the following menu entries are also enabled:
  486. \begin{description}
  487. \item[Find procedure]
  488. Not yet implemented.
  489. \item[Objects]
  490. Asks for the name of an object and opens a browse window for this object.
  491. \item[Modules]
  492. Asks for the name of a module and opens a browse window for this object.
  493. \item[Globals]
  494. Asks for the name of a global symbol and opens a browse window for this object.
  495. \item[Symbol]
  496. Opens a window with all known symbols, so a symbol can be selected. After
  497. the symbol is selected, a browse window for that symbol is opened.
  498. \end{description}
  499. %
  500. % The Run menu
  501. %
  502. \subsection{The Run menu}
  503. \label{se:menurun}
  504. The \menu{Run} menu contains all entries related to running a program,
  505. \begin{description}
  506. \item[Run] (\key{Ctrl-F9})
  507. If the sources were modified, compiles the program. If the compile is
  508. successful, the program is executed. If the primary file was set, then
  509. that is used to determine which program to execute. See \sees{menucompile}
  510. for more information on how to set the primary file.
  511. \item[Step over] (\key{F8})
  512. Run the program till the next source line is reached. If any calls to
  513. procedures are made, these will be executed completely as well.
  514. \item[Trace into] (\key{F7})
  515. Execute the current line. If the current line contains a call to another
  516. procedure, the process will stop at the entry point of the called procedure.
  517. \item[Goto cursor] (\key{F4})
  518. Runs the program till the execution point matches the line where the cursor
  519. is.
  520. \item[Until return]
  521. Runs the current procedure till it exits.
  522. \item[Parameters]
  523. This menu item allows to enter parameters that will be passed on to the
  524. program when it is being executed.
  525. \item[Program reset] (\key{Ctrl-F2}) if the program is being run or
  526. debugged, the debug session is aborted, and the running program is killed.
  527. \end{description}
  528. %
  529. % The compile menu
  530. %
  531. \subsection{The Compile menu}
  532. \label{se:menucompile}
  533. The \menu{Compile} menu contains all entries related to compiling a program or
  534. unit.
  535. \begin{description}
  536. \item[Compile] (\key{Alt-F9}) Compiles the contents of the active window,
  537. irrespective of the primary file setting.
  538. \item[Make] (\key{F9}) Compiles the contents of the active window, and
  539. any files that the unit or program depends on and that were modified since
  540. the last compile.
  541. If the primary file was set, the primary file is compiled instead.
  542. \item[Build]
  543. Compiles the contents of the active window, and any files that the unit or
  544. program depends on, whether they were modified or not.
  545. If the primary file was set, the primary file is compiled instead.
  546. \item[Target] Sets the target operating system for which should be compiled.
  547. \item[Primary file] Sets the primary file. If set, any run or compile command
  548. will act on the primary file instead of on the active window. The primary
  549. file need not be loaded in the IDE for this to have effect.
  550. \item[Clear primary file]
  551. Clears the primary file. After this command, any run or compile action will
  552. act on the active window.
  553. \item[Information] Displays some information about the current program.
  554. \item[Compiler messages] (\key{F12}) Displays the compiler messages
  555. window. This window will display the messages generated by the compiler
  556. during the last compile.
  557. \end{description}
  558. %
  559. % The debug menu
  560. %
  561. \subsection{The Debug menu}
  562. \label{se:menudebug}
  563. The \menu{Debug} menu contains menu entries to aid in debugging a program, such as
  564. setting breakpoints and watches.
  565. \begin{description}
  566. \item[Output]
  567. \item[User screen] (\key{Alt-F5})
  568. Switches to the screen as it was last left by the running program.
  569. \item[Breakpoint] (\key{Ctrl-F8})
  570. Sets a breakpoint at the current line. When debugging, program execution
  571. will stop at this breakpoint.
  572. \item[Call stack] (\key{Ctrl-F3})
  573. Shows the call stack. The call stack is the list of addresses (and
  574. filenames and line numbers, if this information was compiled in) of
  575. procedures that are currently being called by the running program.
  576. \item[Registers]
  577. Shows the current content of the CPU registers.
  578. \item[Add watch] (\key{Ctrl-F7}) Add a watch. A watch is an expression
  579. that can be evaluated by the IDE and will be shown in a special window.
  580. Usually this is the content of some variable.
  581. \item[Watches]
  582. Shows the current list of watches in a separate window.
  583. \item[Breakpoint list]
  584. Shows the current list of breakpoints in a separate window.
  585. \item[GDB window]
  586. Shows the GDB debugger console. This can be used to interact with the debugger
  587. directly; here arbitrary GDB commands can be typed and the result will be
  588. shown in the window.
  589. \end{description}
  590. %
  591. % The tools menu
  592. %
  593. \subsection{The Tools menu}
  594. \label{se:menutools}
  595. The \menu{Tools} menu defines some standard tools. If new tools are defined by the
  596. user, they are appended to this menu as well.
  597. \begin{description}
  598. \item[Messages] (\key{F11}) Show the messages window.
  599. This window contains the output from one of the tools. For more information,
  600. see \sees{toolsmessages}.
  601. \item[Goto next] (\key{Alt-F8}) Goto next message.
  602. \item[Goto previous] (\key{Alt-F7}) Goto previous message
  603. \item[Grep] (\key{SHIFT-F2}) Prompts for a regular expression and options
  604. to be given to grep, and then executes \file{grep} with the given expression and
  605. options. For this to work, the \file{grep} program must be installed on the
  606. system, and be in a directory that is in the \var{PATH}. For more
  607. information, see \sees{grep}.
  608. \item[Calculator]
  609. Displays the calculator. For more information, see \sees{calculator}
  610. \item[Ascii table] Displays the \var{ASCII} table. For more information, see
  611. \sees{asciitable}
  612. \end{description}
  613. %
  614. % The Options menu
  615. %
  616. \subsection{The Options menu}
  617. \label{se:menuoptions}
  618. The \menu{Options} menu is the entry point for all dialogs that are used to set
  619. options for compiler and IDE, as well as the user preferences.
  620. \begin{description}
  621. \item[Mode] Presents a dialog to set the current mode of the compiler. The
  622. current mode is shown at the right of the menu entry. For more information,
  623. see \sees{compilermode}.
  624. \item[Compiler] Presents a dialog that can be used to set common compiler
  625. options. These options will be used when compiling a program or unit.
  626. \item[Memory sizes]
  627. Presents a dialog where the stack size and the heap size for the program can
  628. be set. These options will be used when compiling a program.
  629. \item[Linker]
  630. Presents a dialog where some linker options can be set. These options will
  631. be used when a program or library is compiled.
  632. \item[Debugger]
  633. Presents a dialog where the debugging options can be stored. These options
  634. are used when compiling units or programs. Note that the debugger will not
  635. work unless debugging information is generated in the program.
  636. \item[Directories]
  637. Presents a dialog where the various directories needed by the compiler can
  638. be set. These directories will be used when a program or unit is compiled.
  639. \item[Browser]
  640. Presents a dialog where the browser options can be set. The browser options
  641. affect the behaviour of the symbol browser of the IDE.
  642. \item[Tools]
  643. Presents a dialog to configure the tools menu. For more information, see
  644. \sees{addingtools}.
  645. \item[Environment]
  646. Presents a dialog to configure the behaviour of the IDE. A sub menu is
  647. presented with the various aspects of the IDE:
  648. \begin{description}
  649. \item[Preferences]
  650. General preferences, such as whether to save files or not, and which files
  651. should be saved. The video mode can also be set here.
  652. \item[Editor]
  653. Controls various aspects of the edit windows.
  654. \item[CodeComplete]
  655. Used to set the words which can be automatically completed when typing in
  656. the editor windows.
  657. \item[Codetemplates]
  658. Used to define code templates, which can be inserted in an edit window.
  659. \item[Desktop]
  660. Used to control the behaviour of the desktop, i.e. several features can be
  661. switched on or off.
  662. \item[Mouse]
  663. Can be used to control the actions of the mouse, and to assign commands to
  664. various mouse actions.
  665. \item[Startup]
  666. Not yet implemented.
  667. \item[Colors]
  668. Here the various colors used in the IDE and the editor windows can be set.
  669. \end{description}
  670. \item[Open]
  671. Presents a dialog in which a file with editor preferences can be selected.
  672. after the dialog is closed, the preferences file will be read and the
  673. preferences will be applied.
  674. \item[Save]
  675. Save the current options in the default file.
  676. \item[Save as]
  677. Saves the current options in an alternate file. A file selection dialog box
  678. will be presented in which the alternate settings file can be entered.
  679. \end{description}
  680. Please note that options are not saved automatically, they should be saved
  681. explicitly with the \menu{Options|\-Save} command.
  682. %
  683. % The window menu
  684. %
  685. \subsection{The Window menu}
  686. \label{se:menuwindow}
  687. The \menu{Window} menu provides access to some window functions. More information
  688. on all these functions can be found in \sees{windows}
  689. \begin{description}
  690. \item[Tile]
  691. Tiles all opened windows on the desktop.
  692. \item[Cascade]
  693. Cascades all opened windows on the desktop.
  694. \item[Close all]
  695. Close all opened windows.
  696. \item[Size/move] (\key{Ctrl-F5})
  697. Put the IDE in Size/move modus; after this command the active window can be
  698. moved and resized using the arrow keys.
  699. \item[Zoom] (\key{F5})
  700. Zooms or unzooms the current window.
  701. \item[Next] (\key{F6})
  702. Activates the next window in the window list.
  703. \item[Previous] (\key{SHIFT-F6})
  704. Activates the previous window in the window list.
  705. \item[Hide] (\key{Ctrl-F6})
  706. Hides the active window.
  707. \item[Close] (\key{ALT-F3})
  708. Closes the active window.
  709. \item[List] (\key{Alt-0})
  710. Shows the list of opened windows. From there a
  711. window can be activated, closed, shown and hidden.
  712. \item[Refresh display]
  713. Redraws the screen.
  714. \end{description}
  715. %
  716. % The Help menu
  717. %
  718. \subsection{The Help menu}
  719. \label{se:menuhelp}
  720. The \menu{Help} menu provides entry points to all the help functionality of
  721. the IDE, as well as the entry to customize the help system.
  722. \begin{description}
  723. \item[Contents]
  724. Shows the help table of contents
  725. \item[Index] (SHIFT-F1)
  726. Jumps to the help Index.
  727. \item[Topic search] (CTRL-F1)
  728. Jumps to the topic associated with the currently highlighted text.
  729. \item[Previous topic] (ALT-F1)
  730. Jumps to the previously visited topic.
  731. \item[Using help]
  732. Displays help on using the help system.
  733. \item[Files]
  734. Allows to configure the help menu. With this menu item, help files can be added to the help
  735. system.
  736. \item[About]
  737. Displays information about the IDE. See \sees{about} for more information.
  738. \end{description}
  739. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  740. % Editing text
  741. \section{Editing text}
  742. \label{se:editingtext}
  743. In this section, the basics of editing (source) text are explained. The IDE
  744. works like many other text editors in this respect, so mainly the
  745. distinguishing points of the IDE will be explained.
  746. \subsection{Insert modes}
  747. Standard, the IDE is in insert mode. This means that any text that is typed
  748. will be inserted before text that is present after the cursor.
  749. In overwrite mode, any text that is typed will replace existing text.
  750. When in insert mode, the cursor is a flat blinking line. If the IDE is in
  751. overwrite, the cursor is a cube with the height of one line. Switching between
  752. insert mode or overwrite mode happens with the \key{Insert} key or with the
  753. \key{Ctrl-V} key.
  754. %
  755. % blocks
  756. %
  757. \subsection{Blocks}
  758. \label{se:blocks}
  759. The IDE handles selected text just as the \tp IDE handles it. This is
  760. slightly different from the way e.g. Windows applications handle selected
  761. text.
  762. Text can be selected in 3 ways:
  763. \begin{enumerate}
  764. \item Using the mouse, dragging the mouse over existing text selects it.
  765. \item Using the keyboard, press \key{Ctrl-K B} to mark the beginning of
  766. the selected text, and \key{Ctrl-K K} to mark the end of the selected
  767. text.
  768. \item Using the keyboard, hold the \key{Shift} key depressed while
  769. navigating with the cursor keys.
  770. \end{enumerate}
  771. There are also some special select commands:
  772. \begin{enumerate}
  773. \item The current line can be selected using \key{Ctrl-K L}.
  774. \item The current word can be selected using \key{Ctrl-K T}.
  775. \end{enumerate}
  776. In the \fpc IDE, selected text is persistent. After selecting a range of
  777. text, the cursor can be moved, and the selection will not be destroyed;
  778. hence the term 'block' is more appropriate for the selection, and will be
  779. used henceforth...
  780. Several commands can be executed on a block:
  781. \begin{itemize}
  782. \item Move the block to the cursor location (\key{Ctrl-K V}).
  783. \item Copy the block to the cursor location (\key{Ctrl-K C}).
  784. \item Delete the block (\key{Ctrl-K Y}).
  785. \item Write the block to a file (\key{Ctrl-K W}).
  786. \item Read the contents of a file into a block (\key{Ctrl-K R}).
  787. If there is already a block, this block is not replaced by this command.
  788. The file is inserted at the current cursor position, and then the
  789. inserted text is selected.
  790. \item Indent a block (\key{Ctrl-K I}).
  791. \item Undent a block (\key{Ctrl-K U}).
  792. \item Print the block contents (\key{Ctrl-K P}).
  793. \end{itemize}
  794. When searching and replacing, the search can be restricted to the block
  795. contents.
  796. %
  797. % Bookmarks
  798. %
  799. \subsection{Setting bookmarks}
  800. \label{se:bookmarks}
  801. The IDE provides a feature which allows to set a bookmark at the current
  802. cursor position. Later, the cursor can be returned to this position
  803. by pressing a keyboard shortcut.
  804. Up to 9 bookmarks per source file can be set up, they are set by
  805. \key{Ctrl-K <Number>} (where number is the number of the mark).
  806. To go to a previously set bookmark, press \key{Ctrl-Q <Number>}.
  807. \begin{remark}
  808. Currently, the bookmarks are not stored if the IDE is left. This may
  809. change in future implementations of the IDE.
  810. \end{remark}
  811. %
  812. % Jumping to a source line
  813. %
  814. \subsection{Jumping to a source line}
  815. It is possible to go directly to a specific source line. To do this, open
  816. the {\em goto line} dialog via the \menu{Search|Goto line} menu.
  817. In the dialog that appears, the line-number the IDE should jump to can be
  818. entered.
  819. \begin{htmlonly}
  820. The goto line dialog.
  821. \fpcaddimg{../pics/ide/gotoline.png}
  822. \end{htmlonly}
  823. \begin{latexonly}
  824. The goto line dialog is shown in \seefig{gotoline}.
  825. \begin{figure}[ht]
  826. \begin{center}
  827. \caption{The goto line dialog.}\label{fig:gotoline}
  828. \ifpdf
  829. \epsfig{file=pics/ide/gotoline.png}
  830. \else
  831. \epsfig{file=pics/ide/gotoline.eps}
  832. \fi
  833. \end{center}
  834. \end{figure}
  835. \end{latexonly}
  836. %
  837. % Syntax highlighting and code completion
  838. %
  839. \subsection{Syntax highlighting}
  840. \label{se:syntaxhighlighting}
  841. The IDE is capable of syntax highlighting, i.e. the color of certain
  842. Pascal elements can be set. As text is entered in an editor window,
  843. the IDE will try to recognise the elements, and set the color of the
  844. text accordingly.
  845. The syntax highlighting can be customized in the colors preferences dialog,
  846. using the menu option \menu{Options|\-Environment|\-Colors}. In the colors dialog, the
  847. group "Syntax" must be selected. The item list will then display the
  848. various syntactical elements that can be colored:
  849. \begin{description}
  850. \item[Whitespace] The empty text between words. Remark that for whitespace,
  851. only the background color will be used.
  852. \item[Comments] All styles of comments in Free Pascal.
  853. \item[Reserved words] All reserved words of Free Pascal. (see also \refref).
  854. \item[Strings] Constant string expressions.
  855. \item[Numbers] Numbers in decimal notation.
  856. \item[Hex numbers] Numbers in hexadecimal notation.
  857. \item[Assembler] Any assembler blocks.
  858. \item[Symbols] Recognised symbols (variables, types)
  859. \item[Directives] Compiler directives.
  860. \item[Tabs] Tab characters in the source can be given a different color than
  861. other whitespace.
  862. \end{description}
  863. The editor uses some default settings, but experimentation is the best way
  864. to find a fitting color scheme. A good color scheme helps detecting errors
  865. in sources, since errors will result in wrong syntax highlighting.
  866. % Code completion
  867. \subsection{Code Completion}
  868. \label{se:codecompletion}
  869. Code completion means the editor will try to guess the text as it
  870. is being typed. It does this by checking what text is typed, and as soon
  871. as the typed text can be used to identify a keyword in a list of keywords,
  872. the keyword will be presented in a small colored box under the typed text.
  873. Pressing the \key{Enter} key will complete the word in the text.
  874. There is no code completion yet for filling in function arguments, choosing
  875. object methods as in e.g. \delphi.
  876. Code completion can be customized in the Code completion dialog, reachable
  877. through the menu option \menu{Options|\-Preferences|\-Codecompletion}.
  878. The list of keywords that can be completed can be maintained here.
  879. \begin{htmlonly}
  880. The code completion dialog.
  881. \fpcaddimg{../pics/ide/codecomp.png}
  882. \end{htmlonly}
  883. \begin{latexonly}
  884. The code completion dialog is shown in \seefig{codecomp}.
  885. \begin{figure}[ht]
  886. \begin{center}
  887. \caption{The code completion dialog.}\label{fig:codecomp}
  888. \ifpdf
  889. \epsfig{file=pics/ide/codecomp.png}
  890. \else
  891. \epsfig{file=pics/ide/codecomp.eps}
  892. \fi
  893. \end{center}
  894. \end{figure}
  895. \end{latexonly}
  896. The dialog shows the currently defined keywords that will be completed in
  897. alphabetical order.
  898. The following buttons are available:
  899. \begin{description}
  900. \item[Ok] Saves all changes and closes the dialog.
  901. \item[Edit] Pops up a dialog that allows to edit the currently
  902. highlighted keyword.
  903. \item[New] Pops up a dialog that allows to enter a new keyword which will be
  904. added to the list.
  905. \item[Delete] Deletes the currently highlighted keyword from the list
  906. \item[Cancel] Discards all changes and closes the dialog.
  907. \end{description}
  908. All keywords are saved and are available the next time the IDE is started.
  909. Duplicate names are not allowed. If an attempt is made to add a duplicate
  910. name to the list, an error will follow.
  911. % Code templates
  912. \subsection{Code Templates}
  913. Code templates are a way to insert large pieces of code at once. Each
  914. code templates is identified by a unique name. This name can be used to
  915. insert the associated piece of code in the text.
  916. For example, the name \var{ifthen} could be associated to the following
  917. piece of code:
  918. \begin{verbatim}
  919. If | Then
  920. begin
  921. end
  922. \end{verbatim}
  923. A code template can be inserted by typing its name, and pressing \key{Ctrl-J}
  924. when the cursor is positioned right after the template name.
  925. If there is no template name before the cursor, a dialog will pop up to
  926. allow selection of a template.
  927. If a vertical bar (|) is present in the code template, the cursor is positioned
  928. on it, and the vertical bar is deleted. In the above example, the cursor would be
  929. positioned between the \var{if} and \var{then}, ready to type an expression.
  930. Code templates can be added and edited in the code templates dialog, reachable via
  931. the menu option \menu{Options|\-Preferences|\-Codetemplates}.
  932. \begin{htmlonly}
  933. The code templates dialog.
  934. \fpcaddimg{../pics/ide/codetemp.png}
  935. \end{htmlonly}
  936. \begin{latexonly}
  937. The code templates dialog is shown in \seefig{codetemp}.
  938. \begin{figure}[ht]
  939. \begin{center}
  940. \caption{The code templates dialog.}\label{fig:codetemp}
  941. \ifpdf
  942. \epsfig{file=pics/ide/codetemp.png}
  943. \else
  944. \epsfig{file=pics/ide/codetemp.eps}
  945. \fi
  946. \end{center}
  947. \end{figure}
  948. \end{latexonly}
  949. The top listbox in the code templates dialog shows the names of all
  950. known templates. The bottom half of the dialog shows the text associated
  951. with the currently highlighted code template.
  952. The following buttons are available:
  953. \begin{description}
  954. \item[Ok] Saves all changes and closes the dialog.
  955. \item[Edit] Pops up a dialog that allows to edit the currently
  956. highlighted code template. Both the name and text can be edited.
  957. \item[New] Pops up a dialog that allows to enter a new code template
  958. which will be added to the list. A name must be entered for the new
  959. template.
  960. \item[Delete] Deletes the currently highlighted code template from the list
  961. \item[Cancel] Discards all changes and closes the dialog.
  962. \end{description}
  963. All templates are saved and are available the next time the IDE is started.
  964. \begin{remark}
  965. Duplicates are not allowed. If an attempt is made to add a duplicate name
  966. to the list, an error will occur.
  967. \end{remark}
  968. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  969. % Searching in the text
  970. \section{Searching and replacing}
  971. \label{se:searching}
  972. The IDE allows to search for text in the active editor window.
  973. To search for text, one of the following can be done:
  974. \begin{enumerate}
  975. \item Select \menu{Search|Find} in the menu.
  976. \item Press \key{Ctrl-Q F}.
  977. \end{enumerate}
  978. \begin{htmlonly}
  979. After that, the following dialog will pop up:
  980. \fpcaddimg{../pics/ide/search.png}
  981. In this dialog, the following options can be entered:
  982. \end{htmlonly}
  983. \begin{latexonly}
  984. After that, the dialog shown in \seefig{search} will pop up,
  985. and the following options can be entered
  986. \begin{figure}[ht]
  987. \caption{The search dialog.}\label{fig:search}
  988. \ifpdf
  989. \epsfig{file=pics/ide/search.png,width=\textwidth}
  990. \else
  991. \epsfig{file=pics/ide/search.eps,width=\textwidth}
  992. \fi
  993. \end{figure}
  994. \end{latexonly}
  995. \begin{description}
  996. \item[Text to find] The text to be searched for. If a block was active when
  997. the dialog was started, the first line of this block is proposed.
  998. \item[Case sensitive] When checked, the search is case sensitive.
  999. \item[Whole words only] When checked, the search text must appear in the
  1000. text as a complete word.
  1001. \item[Direction] The direction in which the search must be conducted,
  1002. starting from the specified origin.
  1003. \item[Scope] Specifies if the search should be on the whole file, or just the selected
  1004. text.
  1005. \item[Origin] Specifies if the search should start from the cursor position or the start
  1006. of the scope.
  1007. \end{description}
  1008. After the dialog has closed, the search is performed using the given options.
  1009. A search can be repeated (using the same options) in one of 2 ways:
  1010. \begin{enumerate}
  1011. \item Select \menu{Search|Find again} from the menu.
  1012. \item Press \key{Ctrl-L}.
  1013. \end{enumerate}
  1014. It is also possible to replace occurrences of a text with another text.
  1015. This can be done in a similar manner to searching for a text:
  1016. \begin{enumerate}
  1017. \item Select \menu{Search|Replace} from the menu.
  1018. \item Press \key{Ctrl-Q A}.
  1019. \end{enumerate}
  1020. A dialog, similar to the search dialog will pop up:
  1021. \begin{htmlonly}
  1022. A dialog, similar to the search dialog will pop up:
  1023. \fpcaddimg{../pics/ide/replace.png}
  1024. In this dialog, the following options can be entered:
  1025. \end{htmlonly}
  1026. \begin{latexonly}
  1027. A dialog, similar to the search dialog will pop up, as shown in \seefig{replace}.
  1028. \begin{figure}[ht]
  1029. \caption{The replace dialog.}\label{fig:replace}
  1030. \ifpdf
  1031. \epsfig{file=pics/ide/replace.png,width=\textwidth}
  1032. \else
  1033. \epsfig{file=pics/ide/replace.eps,width=\textwidth}
  1034. \fi
  1035. \end{figure}
  1036. \end{latexonly}
  1037. In this dialog, in addition to the things that can be filled in in the
  1038. search dialog, the following things can be entered:
  1039. \begin{description}
  1040. \item [New text] Text by which found text will be replaced.
  1041. \item [Prompt on replace] Before a replacement is made, the IDE will ask for
  1042. confirmation.
  1043. \end{description}
  1044. If the dialog is closed with the 'OK' button, only the next occurrence of
  1045. the the search text will be replaced.
  1046. If the dialog is closed with the 'Change All' button, all occurrences of
  1047. the search text will be replaced.
  1048. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1049. % The symbol browser
  1050. \section{The symbol browser}
  1051. \label{se:browser}
  1052. The symbol browser allows to find all occurrences of a symbol. A symbol
  1053. can be a variable, type, procedure or constant that occurs in the
  1054. program or unit sources.
  1055. To enable the symbol browser, the program or unit must be compiled with
  1056. browser information. This can be done by setting the browser information
  1057. options in the compiler options dialog.
  1058. The IDE allows to browse several types of symbols:
  1059. \begin{description}
  1060. \item[procedures] Allows to quickly jump to a procedure definition or
  1061. implementation.
  1062. \item[Objects] Allows to quickly browse an object.
  1063. \item[Modules] Allows to browse a module.
  1064. \item[Globals] Allows to browse any global symbol.
  1065. \item[Arbitrary symbol] Allows to browse an arbitrary symbol.
  1066. \end{description}
  1067. In all cases, first a symbol to be browsed must be selected. After that,
  1068. a browse window appears. In the browse window, all locations where the
  1069. symbol was encountered are shown. Selecting a location and pressing the
  1070. space bar will cause the editor to jump to that location; the line
  1071. containing the symbol will be highlighted.
  1072. If the location is in a source file that is not yet displayed, a new
  1073. window will be opened with the source file loaded.
  1074. After the desired location was reached, the browser window can be closed
  1075. with the usual commands.
  1076. The behaviour of the browser can be customized with the browser options
  1077. dialog, using the \menu{Options|Browser} menu.
  1078. \begin{htmlonly}
  1079. The browser options dialog looks as follows:
  1080. \fpcaddimg{../pics/ide/obrowser.png}
  1081. \end{htmlonly}
  1082. \begin{latexonly}
  1083. The browser options dialog looks like \seefig{obrowser}.
  1084. \begin{figure}[ht]
  1085. \caption{The browser options dialog.}\label{fig:obrowser}
  1086. \ifpdf
  1087. \epsfig{file=pics/ide/obrowser.png,width=\textwidth}
  1088. \else
  1089. \epsfig{file=pics/ide/obrowser.eps,width=\textwidth}
  1090. \fi
  1091. \end{figure}
  1092. \end{latexonly}
  1093. The following options can be set in the browser options dialog:
  1094. \begin{description}
  1095. \item[Symbols] Here the types of symbols displayed in the browser can be
  1096. selected:
  1097. \begin{description}
  1098. \item[Labels] labels are shown.
  1099. \item[Constants] Constants are shown.
  1100. \item[Types] Types are shown.
  1101. \item[Variables] Variables are shown.
  1102. \item[Procedures] Procedures are shown.
  1103. \item[Inherited]
  1104. \end{description}
  1105. \item[Sub-browsing] Specifies what the browser should do when displaying the
  1106. members of a complex symbol such as a record or class:
  1107. \begin{description}
  1108. \item[New browser] The members are shown in a new browser window.
  1109. \item[Replace current] The contents of the current window are replaced with
  1110. the members of the selected complex symbol.
  1111. \end{description}
  1112. \item[Preferred pane] Specifies what pane is shown in the browser when it is
  1113. initially opened:
  1114. \begin{description}
  1115. \item[scope]
  1116. \item[Reference]
  1117. \end{description}
  1118. \item[Display] Determines how the browser should display the symbols:
  1119. \begin{description}
  1120. \item[Qualified symbols]
  1121. \item[Sort always] sorts the symbols in the browser window.
  1122. \end{description}
  1123. \end{description}
  1124. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1125. % Running programs
  1126. \section{Running programs}
  1127. \label{se:running}
  1128. A compiled program can be run straight from the IDE. This can be done
  1129. in one of several ways:
  1130. \begin{enumerate}
  1131. \item select the \menu{Run|Run} menu, or
  1132. \item press \key{Ctrl-F9}.
  1133. \end{enumerate}
  1134. If command-line parameters should be passed to the program, then these
  1135. can be set through the \menu{Run|Parameters} menu.
  1136. \begin{htmlonly}
  1137. The Parameters dialog.
  1138. \fpcaddimg{../pics/ide/params.png}
  1139. \end{htmlonly}
  1140. \begin{latexonly}
  1141. The program parameters dialog looks like \seefig{params}.
  1142. \begin{figure}[ht]
  1143. \caption{The program parameters dialog.}\label{fig:params}
  1144. \ifpdf
  1145. \epsfig{file=pics/ide/params.png,width=\textwidth}
  1146. \else
  1147. \epsfig{file=pics/ide/params.eps,width=\textwidth}
  1148. \fi
  1149. \end{figure}
  1150. \end{latexonly}
  1151. Once the program started, it will continue to run, until
  1152. \begin{enumerate}
  1153. \item the program quits normally,
  1154. \item an error happens,
  1155. \item a breakpoint is encountered or
  1156. \item the program is reset by the user.
  1157. \end{enumerate}
  1158. The last alternative is only possible if the program is compiled
  1159. with debug information.
  1160. Alternatively, it is possible to position the cursor somewhere in a
  1161. source file, and run the program till the execution reaches the
  1162. source-line where the cursor is located. This can be done by
  1163. \begin{enumerate}
  1164. \item selecting \menu{Run|Goto Cursor} in the menu,
  1165. \item pressing \key{F4}.
  1166. \end{enumerate}
  1167. Again, this is only possible if the program was compiled with debug
  1168. information.
  1169. The program can also executed line by line. Pressing \key{F8} will
  1170. execute the next line of the program. If the program wasn't started
  1171. yet, it is started. Repeatedly pressing \key{F8} will execute line
  1172. by line of the program, and the IDE will show the line to be executed
  1173. in an editor window. If somewhere in the code a call occurs to a subroutine,
  1174. then pressing \key{F8} will cause the whole routine to be executed before
  1175. control returns to the IDE. If the code of the subroutine should be stepped
  1176. through as well, then \key{F7} should be used instead. Using \key{F7} will
  1177. cause the IDE to execute line by line of any subroutine that is encountered.
  1178. If a subroutine is being stepped through, then the \menu{Run|Until return} menu
  1179. will execute the program till the current subroutine ends.
  1180. If the program should be stopped before it quits by itself, then this can be
  1181. done by
  1182. \begin{enumerate}
  1183. \item selecting \menu{Run|Program reset} from the menu, or
  1184. \item pressing \key{Ctrl-F2}.
  1185. \end{enumerate}
  1186. The running program will then be aborted.
  1187. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1188. % Debugging programs
  1189. \section{Debugging programs}
  1190. \label{se:debugging}
  1191. To debug a program, it must be compiled with debug information. Compiling a
  1192. program with debug information allows to:
  1193. \begin{enumerate}
  1194. \item Execute the program line by line.
  1195. \item Run the program till a certain point (a breakpoint)
  1196. \item Inspect the contents of variables or memory locations while the
  1197. program is running.
  1198. \end{enumerate}
  1199. %
  1200. % Using breakpoints
  1201. %
  1202. \subsection{Using breakpoints}
  1203. Breakpoints will cause a running program to stop when the execution
  1204. reaches the line where the breakpoint was set. At that moment, control
  1205. is returned to the IDE, and it is possible to continue execution.
  1206. To set a breakpoint on the current source line, use the
  1207. \menu{Debug|Breakpoint} menu entry, or press \key{Ctrl-F8}.
  1208. A list of current breakpoints can be obtained through the
  1209. \menu{Debug|Breakpoint list} menu.
  1210. \begin{htmlonly}
  1211. The breakpoint list window looks as follows:
  1212. \fpcaddimg{../pics/ide/brklist.png}
  1213. \end{htmlonly}
  1214. \begin{latexonly}
  1215. The breakpoint list window is shown in \seefig{brklist}
  1216. \begin{figure}[ht]
  1217. \caption{The breakpoint list window.}\label{fig:brklist}
  1218. \ifpdf
  1219. \epsfig{file=pics/ide/brklist.png,width=\textwidth}
  1220. \else
  1221. \epsfig{file=pics/ide/brklist.eps,width=\textwidth}
  1222. \fi
  1223. \end{figure}
  1224. \end{latexonly}
  1225. In the breakpoint list window, the following things can be done:
  1226. \begin{description}
  1227. \item[New] Shows the breakpoint property dialog where the properties
  1228. for a new breakpoint can be entered.
  1229. \item[Edit] Shows the breakpoint property dialog where the properties of
  1230. the highlighted breakpoint can be changed.
  1231. \item[Delete] Deletes the highlighted breakpoint.
  1232. \end{description}
  1233. The dialog can be closed with the 'Close' button.
  1234. \begin{htmlonly}
  1235. The breakpoint properties dialog looks as follows:
  1236. \fpcaddimg{../pics/ide/brkprop.png}
  1237. \end{htmlonly}
  1238. \begin{latexonly}
  1239. The breakpoint properties dialog is shown in \seefig{brkprop}
  1240. \begin{figure}[ht]
  1241. \caption{The breakpoint properties dialog.}\label{fig:brkprop}
  1242. \ifpdf
  1243. \epsfig{file=pics/ide/brkprop.png,width=\textwidth}
  1244. \else
  1245. \epsfig{file=pics/ide/brkprop.eps,width=\textwidth}
  1246. \fi
  1247. \end{figure}
  1248. \end{latexonly}
  1249. The following properties can be set:
  1250. \begin{description}
  1251. \item[type]
  1252. \begin{description}
  1253. \item[function] function breakpoint. The program will stop when the function
  1254. with the given name is reached.
  1255. \item[file-line] Source line breakpoint. The program will stop when the
  1256. source file with given name and line is reached;
  1257. \item[watch] Expression breakpoint. An expression may be entered, and the
  1258. program will stop as soon as the expression changes.
  1259. \item[awatch] (access watch) Expression breakpoint. An expression that references a
  1260. memory location may be entered, and the program will stop as soon as
  1261. the memory indicated by the expression is accessed.
  1262. \item[rwatch] (read watch) Expression breakpoint. An expression that references a
  1263. memory location may be entered, and the program will stop as soon as
  1264. the memory indicated by the expression is read.
  1265. \end{description}
  1266. \item[name] Name of the function or file where to stop.
  1267. \item[line] Line number in the file where to stop. Only for breakpoints of
  1268. type file-line.
  1269. \item[Conditions] Here an expression can be entered which must evaluate
  1270. \var{True} for the program to stop at the breakpoint. The expressions that
  1271. can be entered must be valid GDB expressions.
  1272. \item[Ignore count] The number of times the breakpoint will be ignored
  1273. before the program stops;
  1274. \end{description}
  1275. \begin{remark}
  1276. \begin{enumerate}
  1277. \item Because the IDE uses GDB to do its debugging, it is necessary to enter all
  1278. expressions in {\em uppercase} on \freebsd.
  1279. \item Expressions that reference memory locations should be no longer than 16
  1280. bytes on \linux or go32v2 on an Intel processor, since the Intel processor's
  1281. debug registers are used to monitor these locations.
  1282. \item Memory location watches will not function on Win32 unless a special
  1283. patch is applied.
  1284. \end{enumerate}
  1285. \end{remark}
  1286. %
  1287. % Using watches
  1288. %
  1289. \subsection{Using watches}
  1290. When debugging information is compiled in the program, watches can be used.
  1291. Watches are expressions which can be evaluated by the IDE and shown in a
  1292. separate window. When program execution stops (e.g. at a breakpoint) all
  1293. watches will be evaluated and their current values will be shown.
  1294. Setting a new watch can be done with the \menu{Debug|Add watch} menu
  1295. command or by pressing \key{Ctrl-F7}. When this is done, the watch
  1296. property dialog appears, and a new expression can be entered.
  1297. \begin{htmlonly}
  1298. The watch property dialog looks as follows:
  1299. \fpcaddimg{../pics/ide/watch.png}
  1300. \end{htmlonly}
  1301. \begin{latexonly}
  1302. The watch property dialog is shown in \seefig{watch}
  1303. \begin{figure}[ht]
  1304. \begin{center}
  1305. \caption{The watch property dialog.}\label{fig:watch}
  1306. \ifpdf
  1307. \epsfig{file=pics/ide/watch.png}
  1308. \else
  1309. \epsfig{file=pics/ide/watch.eps}
  1310. \fi
  1311. \end{center}
  1312. \end{figure}
  1313. \end{latexonly}
  1314. In the dialog, the expression can be entered, any possible previous value
  1315. and current value are shown.
  1316. \begin{remark}
  1317. Because the IDE uses GDB to do it's debugging, it is necessary to enter all
  1318. expressions in {\em uppercase} in \freebsd.
  1319. \end{remark}
  1320. A list of watches and their present value is available in the watches
  1321. window, which can be opened with the \menu{Debug|Watches} menu.
  1322. \begin{htmlonly}
  1323. The watch list window looks as follows:
  1324. \fpcaddimg{../pics/ide/watchlst.png}
  1325. \end{htmlonly}
  1326. \begin{latexonly}
  1327. The watch list window is shown in \seefig{brklist}
  1328. \begin{figure}[ht]
  1329. \begin{center}
  1330. \caption{The watch list window.}\label{fig:watchlst}
  1331. \ifpdf
  1332. \epsfig{file=pics/ide/watchlst.png}
  1333. \else
  1334. \epsfig{file=pics/ide/watchlst.eps}
  1335. \fi
  1336. \end{center}
  1337. \end{figure}
  1338. \end{latexonly}
  1339. Pressing \key{Enter} or the space bar will show the watch property dialog
  1340. for the currently highlighted watch in the watches window.
  1341. The list of watches is updated whenever the IDE resumes control when
  1342. debugging a program.
  1343. %
  1344. % The call stack
  1345. %
  1346. \subsection{The call stack}
  1347. \label{se:callstack}
  1348. The call stack helps in showing the program flow. It shows the list of
  1349. procedures that are being called at this moment, in reverse order.
  1350. The call stack window can be shown using the \menu{Debug|Call Stack}
  1351. It will show the address or procedure name of all currently active
  1352. procedures with their filename and addresses. If parameters were passed
  1353. they will be shown as well.
  1354. \begin{htmlonly}
  1355. The call stack window looks as follows:
  1356. \fpcaddimg{../pics/ide/callstck.png}
  1357. \end{htmlonly}
  1358. \begin{latexonly}
  1359. The call stack is shown in \seefig{callstack}.
  1360. \begin{figure}[ht]
  1361. \begin{center}
  1362. \caption{The call stack window.}\label{fig:callstack}
  1363. \ifpdf
  1364. \epsfig{file=pics/ide/callstck.png}
  1365. \else
  1366. \epsfig{file=pics/ide/callstck.eps}
  1367. \fi
  1368. \end{center}
  1369. \end{figure}
  1370. \end{latexonly}
  1371. By pressing the space bar in the call stack window, the line corresponding
  1372. to the call will be highlighted in the edit window.
  1373. % The GDB Window
  1374. \subsection{The GDB window}
  1375. \label{se:gdbwindow}
  1376. The GDB window provides direct interaction with the GDB debugger.
  1377. In it, GDB commands can be typed as they would be typed in GDB.
  1378. The response of GDB will be shown in the window.
  1379. Some more information on using GDB can be found in \sees{usinggdb}, but
  1380. the final reference is of course the GDB manual itself
  1381. \footnote{Available from the Free Software Foundation website.}.
  1382. \begin{htmlonly}
  1383. The GDB window looks as follows:
  1384. \fpcaddimg{../pics/ide/gdbwin.png}
  1385. \end{htmlonly}
  1386. \begin{latexonly}
  1387. The GDB window is shown in \seefig{gdbwin}.
  1388. \begin{figure}[ht]
  1389. \begin{center}
  1390. \caption{The GDB window.}\label{fig:gdbwin}
  1391. \ifpdf
  1392. \epsfig{file=pics/ide/gdbwin.png}
  1393. \else
  1394. \epsfig{file=pics/ide/gdbwin.eps},
  1395. \fi
  1396. \end{center}
  1397. \end{figure}
  1398. \end{latexonly}
  1399. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1400. % The tools menu
  1401. \section{Using Tools}
  1402. \label{se:toolsmenu}
  1403. The tools menu provides easy access to external tools. It also has
  1404. three pre-defined tools for programmers: an ASCII table, a grep tool
  1405. and a calculator. The output of the external tools can be accessed through
  1406. this menu as well.
  1407. %
  1408. % The messages window.
  1409. %
  1410. \subsection{The messages window}
  1411. \label{se:toolsmessages}
  1412. The output of the external utilities is redirected by the IDE and it
  1413. will be displayed in the messages window. The messages window is
  1414. displayed automatically, if an external tool was run. The
  1415. messages window can be also displayed manually by the selecting the
  1416. menu item \menu{Tools|Messages} or by pressing the key \key{F11}.
  1417. \begin{htmlonly}
  1418. The messages window looks as follows:
  1419. \fpcaddimg{../pics/ide/messages.png}
  1420. \end{htmlonly}
  1421. \begin{latexonly}
  1422. The messages window is shown in \seefig{messages}.
  1423. \begin{figure}[ht]
  1424. \caption{The messages window.}\label{fig:messages}
  1425. \ifpdf
  1426. \epsfig{file=pics/ide/messages.png,width=\textwidth}
  1427. \else
  1428. \epsfig{file=pics/ide/messages.eps,width=\textwidth}
  1429. \fi
  1430. \end{figure}
  1431. \end{latexonly}
  1432. If the output of the tool contains filenames and line numbers,
  1433. the messages window can be used to navigate the source as in a browse
  1434. window:
  1435. \begin{enumerate}
  1436. \item Pressing \key{Enter} or double clicking the output line will jump
  1437. to the specified source line and close the messages window.
  1438. \item Pressing the space bar will jump to the specified source line, but
  1439. will leave the messages window open, with the focus on it. This allows to
  1440. quickly select another message line with the arrow keys and jump to
  1441. another location in the sources.
  1442. \end{enumerate}
  1443. The algorithm which extracts the file names and line numbers from
  1444. the tool output is quite sophisticated, but in some cases it may
  1445. fail\footnote{Suggestions for improvement, or better yet, patches
  1446. that improve the algorithm, are always welcome.}.
  1447. %
  1448. % Grep
  1449. %
  1450. \subsection{Grep}
  1451. \label{se:grep}
  1452. One external tool in the Tools menu is already predefined: a
  1453. menu item to call the \file{grep} utility (\menu{Tools|Grep} or
  1454. \key{Shift-F2}). \file{Grep} searches for a given string in files and
  1455. returns the lines which contain the string. The search string can
  1456. be even a regular expression. For this menu item to work, the
  1457. \file{grep} program must be installed, since it does not come with \fpc.
  1458. The messages window displayed in \seefig{messages} in the previous
  1459. section shows the output of a typical \file{grep} session. The messages
  1460. window can be used in combination with \file{grep} to find special
  1461. occurrences in the text.
  1462. \file{Grep} supports regular expressions. A regular expression is a
  1463. string with special characters which describe a whole class of
  1464. expressions. The command line in \dos or \linux have limited
  1465. support for regular expressions: entering \var{ls *.pas}
  1466. (or \var{dir *.pas}) to get a list of all Pascal files in a
  1467. directory. \file{*.pas} is something similar to regular expression.
  1468. It uses a wildcard to describe a whole class of strings: these which
  1469. end with "\file{.pas}".
  1470. Regular expressions offer much more: for example \var{[A-Z][0-9]+}
  1471. describes all strings which begin with a upper case letter followed by
  1472. one or more digits.
  1473. It is outside the scope of this manual to describe regular expressions
  1474. in great detail. Users of a \linux system can get more information on grep
  1475. using \var{man grep} on the command-line.
  1476. %
  1477. % The ASCII table.
  1478. %
  1479. \subsection{The ASCII table}
  1480. \label{se:asciitable}
  1481. The tools menu provides also an ASCII table (\menu{Tools|Ascii table}),
  1482. The ASCII table can be used to look up ASCII codes as well as
  1483. inserting characters into the window which was active when invoking the
  1484. table. To get the ASCII code of a char move the cursor on this char
  1485. or click with the mouse on it. To insert a
  1486. char into an editor window either:
  1487. \begin{enumerate}
  1488. \item using the mouse, double click it,
  1489. \item using the keyboard, press \key{Enter} while the cursor is on it.
  1490. \end{enumerate}
  1491. This is especially useful for pasting graphical characters in a constant
  1492. string.
  1493. The ASCII table remains active till another window is explicitly activated,
  1494. thus multiple characters can be inserted at once.
  1495. \begin{htmlonly}
  1496. The ASCII table looks as follows:
  1497. \fpcaddimg{../pics/ide/ascii.png}
  1498. \end{htmlonly}
  1499. \begin{latexonly}
  1500. The ASCII table is shown in \seefig{asciitable}.
  1501. \begin{figure}[ht]
  1502. \begin{center}
  1503. \caption{The ASCII table.}\label{fig:asciitable}
  1504. \ifpdf
  1505. \epsfig{file=pics/ide/ascii.png}
  1506. \else
  1507. \epsfig{file=pics/ide/ascii.eps}
  1508. \fi
  1509. \end{center}
  1510. \end{figure}
  1511. \end{latexonly}
  1512. %
  1513. % The calculator
  1514. %
  1515. \subsection{The calculator}
  1516. \label{se:calculator}
  1517. The calculator allows to do some quick calculations. It is a simple
  1518. calculator, since it does not take care of operator precedence, and
  1519. bracketing of operations is not (yet) supported.
  1520. The result of the calculations can be pasted into the text using the
  1521. \key{Ctrl-Enter} keystroke.
  1522. \begin{htmlonly}
  1523. The calculator dialog looks as follows:
  1524. \fpcaddimg{../pics/ide/calc.png}
  1525. \end{htmlonly}
  1526. \begin{latexonly}
  1527. The calculator dialog is shown in \seefig{calculator}.
  1528. \begin{figure}[ht]
  1529. \begin{center}
  1530. \caption{The calculator dialog.}\label{fig:calculator}
  1531. \ifpdf
  1532. \epsfig{file=pics/ide/calc.png}
  1533. \else
  1534. \epsfig{file=pics/ide/calc.eps}
  1535. \fi
  1536. \end{center}
  1537. \end{figure}
  1538. \end{latexonly}
  1539. The calculator supports all basic mathematical operations such as
  1540. addition, subtraction, division and multiplication. They are summarised in
  1541. \seet{calculatorbasic}.
  1542. \begin{FPCltable}{p{8cm}lll}{Advanced calculator commands}{calculatorbasic}
  1543. Operation & Button & Key \\ \hline
  1544. Add two numbers & \var{+} & \key{+} \\
  1545. Subtract two numbers & \var{\-} & \key{\-} \\
  1546. Multiply two numbers & \var{*} & \key{*} \\
  1547. Divide two numbers & \var{/} & \key{/} \\
  1548. Delete the last typed digit & \var{<-} & \key{Backspace} \\
  1549. Delete the display & \var{C} & \key{C} \\
  1550. Change the sign & \var{+\-} & \\
  1551. Do per cent calculation & \var{\%} & \key{\%} \\ \hline
  1552. Get result of operation & \var{=} & \key{Enter} \\ \hline
  1553. \end{FPCltable}
  1554. But also more sophisticated mathematical operations such as exponentiation
  1555. and logarithms are supported. The available mathematical calculations are
  1556. shown in \seet{calculatoradvanced}.
  1557. \begin{FPCltable}{p{8cm}lll}{Advanced calculator commands}{calculatoradvanced}
  1558. Operation & Button & Key \\ \hline
  1559. Calculate power & \var{x\^y} & \\
  1560. Calculate the inverse value & \var{1/x} & \\
  1561. Calculate the square root & \var{sqr} & \\
  1562. Calculate the natural logarithm & \var{log} & \\
  1563. Square the display contents & \var{x\^2} & \\ \hline.
  1564. \end{FPCltable}
  1565. Like many calculators, the calculator in the IDE also supports storing
  1566. a single value in memory, and several operations can be done on this memory
  1567. value. The available operations are listed in \seet{calculatormemory}
  1568. \begin{FPCltable}{p{8cm}lll}{Advanced calculator commands}{calculatormemory}
  1569. Operation & Button & Key \\ \hline
  1570. Add the displayed number to the memory & \var{M+} & \\
  1571. Subtract the displayed number from the memory & \var{M-} & \\
  1572. Move the memory contents to the display & \var{M->} & \\
  1573. Move the display contents to the memory & \var{M<-} & \\
  1574. Exchange display and memory contents & \var{M<->} & \\ \hline
  1575. \end{FPCltable}
  1576. %
  1577. % Adding new tools
  1578. %
  1579. \subsection{Adding new tools}
  1580. \label{se:addingtools}
  1581. The tools menu can be extended with any external program which is command-line
  1582. oriented. The output of such a program will be caught and displayed in the
  1583. messages window.
  1584. Adding a tool to the tools menu can be done using the \menu{Options|Tools} menu.
  1585. This will display the tools dialog.
  1586. \begin{htmlonly}
  1587. The tools dialog looks as follows:
  1588. \fpcaddimg{../pics/ide/otools.png}
  1589. \end{htmlonly}
  1590. \begin{latexonly}
  1591. The tools dialog is shown in \seefig{otools}.
  1592. \begin{figure}[ht]
  1593. \begin{center}
  1594. \caption{The tools configuration dialog.}\label{fig:otools}
  1595. \ifpdf
  1596. \epsfig{file=pics/ide/otools.png}
  1597. \else
  1598. \epsfig{file=pics/ide/otools.eps}
  1599. \fi
  1600. \end{center}
  1601. \end{figure}
  1602. \end{latexonly}
  1603. In the tools dialog, the following actions are available:
  1604. \begin{description}
  1605. \item[New] Shows the tool properties dialog where the
  1606. properties of a new tool can be entered.
  1607. \item[Edit] Shows the tool properties dialog where the
  1608. properties of the highlighted tool can be edited.
  1609. \item[Delete] Removes the currently highlighted tool.
  1610. \item[Cancel] Discards all changes and closes the dialog.
  1611. \item[OK] Saves all changes and closes the dialog.
  1612. \end{description}
  1613. The definitions of the tools are written in the desktop
  1614. configuration file, so unless auto-saving of the desktop file
  1615. is enabled, the desktop file should be saved explicitly after
  1616. the dialog is closed.
  1617. \subsection{Meta parameters}
  1618. When specifying the command line for the called tool, meta parameters can
  1619. be used. Meta parameters are variables and and they are replaced
  1620. by their contents before passing the command line to the tool.
  1621. \begin{description}
  1622. \item[\$CAP]
  1623. Captures the output of the tool.
  1624. \item[\$CAP\_MSG]
  1625. Captures the output of the tool and puts it in the messages window.
  1626. \item[\$CAP\_EDIT]
  1627. Captures the output of the tool and puts it in a separate editor window.
  1628. \item[\$COL]
  1629. Replaced by the column of the cursor in the active editor window. If there is no
  1630. active window or the active window is a dialog, then it is replaced by 0.
  1631. \item[\$CONFIG]
  1632. Replaced by the complete filename of the current configuration file.
  1633. \item[\$DIR()]
  1634. Replaced by the full directory of the filename argument, including trailing
  1635. directory separator. e.g.
  1636. \begin{verbatim}
  1637. $DIR('d:\data\myfile.pas')
  1638. \end{verbatim}
  1639. would return \verb|d:\data\|.
  1640. \item[\$DRIVE()]
  1641. Replaced by the drive letter of the filename argument. e.g.
  1642. \begin{verbatim}
  1643. $DRIVE('d:\data\myfile.pas')
  1644. \end{verbatim}
  1645. would return \file{d:}.
  1646. \item[\$EDNAME]
  1647. Replaced by the complete file name of the file in the active edit window.
  1648. If there is no active edit window, this is an empty string.
  1649. \item[\$EXENAME]
  1650. Replaced by the executable name that would be created if the make command
  1651. was used. (i.e. from the 'Primary File' setting or the active edit window).
  1652. \item[\$EXT()]
  1653. Replaced by the extension of the filename argument.
  1654. The extension includes the dot.
  1655. e.g.
  1656. \begin{verbatim}
  1657. $DIR('d:\data\myfile.pas')
  1658. \end{verbatim}
  1659. would return \file{.pas}.
  1660. \item[\$LINE]
  1661. Replaced by the line number of the cursor in the active edit window.
  1662. If no edit window is present or active, this is 0.
  1663. \item[\$NAME()]
  1664. Replaced by the name part (excluding extension and dot) of the filename
  1665. argument.
  1666. e.g.
  1667. \begin{verbatim}
  1668. $NAME('d:\data\myfile.pas')
  1669. \end{verbatim}
  1670. would return \file{myfile}.
  1671. \item[\$NAMEEXT()]
  1672. Replaced by the name and extension part of the filename argument.
  1673. e.g.
  1674. \begin{verbatim}
  1675. $DIR('d:\data\myfile.pas')
  1676. \end{verbatim}
  1677. would return \file{myfile.pas}.
  1678. \item[\$NOSWAP]
  1679. Does nothing in the IDE, it is provided for compatibility with \tp only.
  1680. \item[\$PROMPT()]
  1681. Prompt displays a dialog bow that allows editing of all arguments that
  1682. come after it. Arguments that appear before the \var{\$PROMPT} keyword
  1683. are not presented for editing.
  1684. If a (optional) filename argument is present, \var{\$PROMPT()} will load
  1685. a dialog description from the filename argument, e.g.
  1686. \begin{verbatim}
  1687. $PROMPT(cvsco.tdf)
  1688. \end{verbatim}
  1689. would parse the file \file{cvsco.tdf}, construct a dialog with it and
  1690. display it. After the dialog closed, the information entered by the user
  1691. is used to construct the tool command line.
  1692. See \sees{commanddialogs} for more information on how to create a dialog
  1693. description.
  1694. \item[\$SAVE]
  1695. Before executing the command, the active editor window is saved, even if it is not modified.
  1696. \item[\$SAVE\_ALL]
  1697. Before executing the command, all unsaved editor files are saved without prompting.
  1698. \item[\$SAVE\_CUR]
  1699. Before executing the command the contents of the active editor window are
  1700. saved without prompting if they are modified.
  1701. \item[\$SAVE\_PROMPT]
  1702. Before executing the command, a dialog is displayed asking whether any
  1703. unsaved files should be saved before executing the command.
  1704. \item[\$WRITEMSG()]
  1705. Writes the parsed tool output information to a file with name as in the argument.
  1706. \end{description}
  1707. \subsection{Building a command line dialog box}
  1708. \label{se:commanddialogs}
  1709. When defining a tool, it is possible to show a dialog to the user, asking for
  1710. additional arguments, using the \var{\$PROMPT(filename)} command-macro.
  1711. \fpc comes with some dialogs, such as a 'grep' dialog, a 'cvs checkout' dialog
  1712. and a 'cvs check in' dialog. The files for these dialogs are in the binary
  1713. directory and have an extension \file{.tdf}.
  1714. In this section, the file format for the dialog description file is explained.
  1715. The format of this file resembles a windows \file{.INI} file, where each section
  1716. in the file describes an element (or control) in the dialog.
  1717. A \var{OK} and \var{Cancel} button will be added to the bottom of the dialog,
  1718. so these should not be specified in the dialog definition.
  1719. A special section is the \var{Main} section. It describes how the result of
  1720. the dialog will be passed on the command-line, and the total size of the dialog.
  1721. \begin{remark}
  1722. Keywords that contain a string value, should have the string value enclosed
  1723. in double quotes as in
  1724. \begin{verbatim}
  1725. Title="Dialog title"
  1726. \end{verbatim}
  1727. \end{remark}
  1728. The \var{Main} section should contain the following keywords:
  1729. \begin{description}
  1730. \item[Title] The title of the dialog. This will appear in the frame title of the dialog.
  1731. The string should be enclosed in quotes.
  1732. \item[Size] The size of the dialog, this is formatted as \var{(Cols,Rows)}, so
  1733. \begin{verbatim}
  1734. Size=(59,9)
  1735. \end{verbatim}
  1736. means the dialog is 59 characters wide, and 9 lines high. This size does not include
  1737. the border of the dialog.
  1738. \item[CommandLine] specifies how the command-line will be passed to the
  1739. program, based on the entries made in the dialog. The text typed here will be passed
  1740. on after replacing some control placeholders with their values.
  1741. A control placeholder is the name of some control in the dialog, enclosed in
  1742. percent (\var{\%}) characters. The name of the control will be replaced with
  1743. the text, associated with the control. Consider the following example:
  1744. \begin{verbatim}
  1745. CommandLine="-n %l% %v% %i% %w% %searchstr% %filemask%"
  1746. \end{verbatim}
  1747. Here the values associated with the controls named \var{l, i, v, w} and
  1748. \var{searchstr} and \var{filemask} will be inserted in the command-line
  1749. string.
  1750. \item[Default]
  1751. The name of the control that is the default control, i.e. the control
  1752. that has the focus when the dialog is opened.
  1753. \end{description}
  1754. The following is an example of a valid main section:
  1755. \begin{verbatim}
  1756. [Main]
  1757. Title="GNU Grep"
  1758. Size=(56,9)
  1759. CommandLine="-n %l% %v% %i% %w% %searchstr% %filemask%"
  1760. Default="searchstr"
  1761. \end{verbatim}
  1762. After the \var{Main} section, a section must be specified for each control that
  1763. should appear on the dialog. Each section has the name of the control it
  1764. describes, as in the following example:
  1765. \begin{verbatim}
  1766. [CaseSensitive]
  1767. Type=CheckBox
  1768. Name="~C~ase sensitive"
  1769. Origin=(2,6)
  1770. Size=(25,1)
  1771. Default=On
  1772. On="-i"
  1773. \end{verbatim}
  1774. Each control section must have at least the following keywords associated
  1775. with it:
  1776. \begin{description}
  1777. \item[Type] The type of control. Possible values are:
  1778. \begin{description}
  1779. \item[Label] A plain text label which will be shown on the dialog.
  1780. A control can be linked to this label, so it will be focused when
  1781. the user presses the highlighted letter in the label caption (if any).
  1782. \item[InputLine] An edit field where a text can be entered.
  1783. \item[CheckBox] A Checkbox which can be in a on or off state.
  1784. \end{description}
  1785. \item[Origin] Specifies where the control should be located in the dialog.
  1786. The origin is specified as \var{(left,Top)} and the top-left corned of
  1787. the dialog has coordinate \var{(1,1)} (not counting the frame).
  1788. \item[Size] Specifies the size of the control, which should be specified
  1789. as \var{(Cols,Rows)}.
  1790. \end{description}
  1791. Each control has some specific keywords associated with it;
  1792. they will be described below.
  1793. A label (\var{Type=Label}) has the following extra keywords associated
  1794. with it:
  1795. \begin{description}
  1796. \item[Text] the text displayed in the label. If one of the letters should
  1797. be highlighted so it can be used as a shortcut, then it should be enclosed
  1798. in tilde characters (\~{}), e.g. in
  1799. \begin{verbatim}
  1800. Text="~T~ext to find"
  1801. \end{verbatim}
  1802. The \var{T} will be highlighted.
  1803. \item[Link] here the name of a control in the dialog may be specified.
  1804. If specified, pressing this letter in combination with the \key{Alt}
  1805. key will put the focus on the control specified here.
  1806. \end{description}
  1807. A label does not contribute to the text of the command-line, it is for
  1808. informational and navigational purposes only. The following is an
  1809. example of a label description section:
  1810. \begin{verbatim}
  1811. [label2]
  1812. Type=Label
  1813. Origin=(2,3)
  1814. Size=(22,1)
  1815. Text="File ~m~ask"
  1816. Link="filemask"
  1817. \end{verbatim}
  1818. An edit control (\var{Type=InputLine}) allows to enter arbitrary text.
  1819. The text of the edit control will be pasted in the command-line if it
  1820. is referenced there. The following keyword can be specified in a
  1821. inputline control section:
  1822. \begin{description}
  1823. \item[Value] here a standard value (text) for the edit control can be
  1824. specified. This value will be filled in when the dialog appears.
  1825. \end{description}
  1826. The following is an example of a input line section:
  1827. \begin{verbatim}
  1828. [filemask]
  1829. Type=InputLine
  1830. Origin=(2,4)
  1831. Size=(22,1)
  1832. Value="*.pas *.pp *.inc"
  1833. \end{verbatim}
  1834. A combo-box control (\var{Type=CheckBox}) presents a checkbox which
  1835. can be in one of two states, \var{on} or \var{off}. With each of
  1836. these states, a value can be associated which will be passed on to
  1837. the command-line. The following keywords can appear in a checkbox
  1838. type section:
  1839. \begin{description}
  1840. \item[Name] the text that appears after the checkbox.
  1841. If there is a highlighted letter in it, this letter can be used
  1842. to set or unset the checkbox using the \key{Alt}-letter combination.
  1843. \item[Default] specifies whether the checkbox is checked or not when
  1844. the dialog appears (values \var{on} or \var{off})
  1845. \item[On] the text associated with this checkbox if it is in the checked
  1846. state.
  1847. \item[Off] the text associated with this checkbox if it is in the
  1848. unchecked state.
  1849. \end{description}
  1850. The following is a example of a valid checkbox description:
  1851. \begin{verbatim}
  1852. [i]
  1853. Type=CheckBox
  1854. Name="~C~ase sensitive"
  1855. Origin=(2,6)
  1856. Size=(25,1)
  1857. Default=On
  1858. On="-i"
  1859. \end{verbatim}
  1860. If the checkbox is checked, then the value \var{-i} will be added on
  1861. the command-line of the tool. If it is unchecked, no value will be added.
  1862. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1863. % Project management
  1864. \section{Project management and compiler options}
  1865. \label{se:projectmanagement}
  1866. Project management in Pascal is much easier than with C. The
  1867. compiler knows from the source which units, sources etc. it needs.
  1868. So the \fpc IDE does not need a full featured project manager like
  1869. some C development environments offer, nevertheless there are some
  1870. settings in the IDE which apply to projects.
  1871. %
  1872. % The primary file
  1873. %
  1874. \subsection{The primary file}
  1875. \label{se:primaryfile}
  1876. Without a primary file the IDE compiles/runs the source of the active
  1877. window when a program is started. If a primary file is specified,
  1878. the IDE compiles/runs always this source, even if another
  1879. source window is active. With the menu item \menu{Compile|Primary file...}
  1880. a file dialog can be opened where the primary file can be selected.
  1881. Only the menu item \menu{Compile|Compile} compiles still the active window,
  1882. this is useful if a large project is being edited, and only the syntax of
  1883. the current source should be checked.
  1884. The menu item \menu{Compiler|Clear primary file} restores the default
  1885. behaviour of the IDE, i.e. the 'compile' and 'run' commands apply to the
  1886. active window.
  1887. %
  1888. % The directory dialog
  1889. %
  1890. \subsection{The directory dialog}
  1891. In the directory dialog, the directories can be specified where the
  1892. compiler should look for units, libraries, object files. It also says
  1893. where the output files should be stored. Multiple directories (except
  1894. for the output directory) can be entered, separated by semicolons.
  1895. \begin{htmlonly}
  1896. The directories dialog looks as follows:
  1897. \fpcaddimg{../pics/ide/odirs.png}
  1898. \end{htmlonly}
  1899. \begin{latexonly}
  1900. The directories dialog is shown in \seefig{odirs}.
  1901. \begin{figure}[ht]
  1902. \begin{center}
  1903. \caption{The directories configuration dialog.}\label{fig:odirs}
  1904. \ifpdf
  1905. \epsfig{file=pics/ide/odirs.png,width=\textwidth}
  1906. \else
  1907. \epsfig{file=pics/ide/odirs.eps,width=\textwidth}
  1908. \fi
  1909. \end{center}
  1910. \end{figure}
  1911. \end{latexonly}
  1912. The following directories can be specified:
  1913. \begin{description}
  1914. \item[EXE \& PPU directories] Specifies where the compiled units and
  1915. executables will go. (\seeo{FE} on the command line.)
  1916. \item[Object directories] Specifies where the compiler looks for external
  1917. object files. (\seeo{Fo} on the command line.)
  1918. \item[Library directories] Specifies where the compiler (more exactly, the
  1919. linker) looks for external libraries. (\seeo{Fl} on the command line.)
  1920. \item[Include directories] Specifies where the compiler will look for
  1921. include files, included with the \var{\{\$i \}} directive.
  1922. (\seeo{Fi} or \seeo{I} on the command line.)
  1923. \item[Unit directories] Specifies where the compiler will look for compiled
  1924. units. The compiler always looks first in the current directory, and also in
  1925. some standard directories. (\seeo{Fu} on the command line.)
  1926. \end{description}
  1927. %
  1928. % The target operating system.
  1929. %
  1930. \subsection{The target operating system}
  1931. The menu item \menu{Compile|Target} allows to specify the target
  1932. operating system for which the sources will be compiled.
  1933. Changing the target doesn't affect any compiler switches or
  1934. directories. It does affect some defines defined by the compiler.
  1935. The settings here correspond to the option \seeo{T}
  1936. on the command-line.
  1937. \begin{htmlonly}
  1938. The target dialog looks as follows:
  1939. \fpcaddimg{../pics/ide/target.png}
  1940. \end{htmlonly}
  1941. \begin{latexonly}
  1942. The compilation target dialog is shown in \seefig{target}.
  1943. \begin{figure}[ht]
  1944. \begin{center}
  1945. \caption{The compilation target dialog.}\label{fig:target}
  1946. \ifpdf
  1947. \epsfig{file=pics/ide/target.png}
  1948. \else
  1949. \epsfig{file=pics/ide/target.eps}
  1950. \fi
  1951. \end{center}
  1952. \end{figure}
  1953. \end{latexonly}
  1954. The following targets can be set:
  1955. \begin{description}
  1956. \item[Dos (go32v1)] This switch will dissapear in time as this target is no
  1957. longer being maintained.
  1958. \item[Dos (go32v2)] Compile for \dos, using version 2 of the Go32 extender.
  1959. \item[FreeBSD] Compile for \freebsd.
  1960. \item[Linux] Compile for \linux.
  1961. \item[OS/2] Compile for OS/2 (using the EMX extender)
  1962. \item[Win32] Compile for windows 32 bit.
  1963. \end{description}
  1964. The currently selected target operating system is shown in the menu item in
  1965. the \menu{Compile} menu. Standard this should be the operating system for
  1966. which the IDE was compiled.
  1967. %
  1968. % Other compiler options
  1969. %
  1970. \subsection{Compiler options}
  1971. The menu \menu{Options|Compiler} allows to set other options that affect the
  1972. compilers behaviour. When this menu item is chosen, a dialog pops up that
  1973. displays several tabs.
  1974. There are 5 tabs:
  1975. \begin{description}
  1976. \item[Syntax] Here options can be set that affect the various syntax aspects
  1977. of the code. They correspond mostly to the \var{-S} option on the command
  1978. line (\sees{sourceoptions}).
  1979. \item[Code generation] These options control the generated code; they are
  1980. mostly concerned with the \var{-C} and \var{-X} command-line options.
  1981. \item[Verbose] These set the verbosity of the compiler when compiling. The
  1982. messages of the compiler are shown in the compiler messages window (can be
  1983. called with \key{F12}).
  1984. \item[Browser] options concerning the generated browser information. Browser
  1985. information needs to be generated for the symbol browser to work.
  1986. \item[Assembler] Options concerning the reading of assembler blocks (-R on
  1987. the command line) and the generated assembler (\var{-A} on the command line)
  1988. \end{description}
  1989. Under the tab pages, the {\em Conditional defines} entry box is visible;
  1990. here symbols to define can be entered. The symbols should be separated with
  1991. semicolons.
  1992. \begin{htmlonly}
  1993. The syntax tab of the compiler options looks as follows:
  1994. \fpcaddimg{../pics/ide/ocompa.png}
  1995. \end{htmlonly}
  1996. \begin{latexonly}
  1997. The syntax tab of the compiler options dialog is shown in \seefig{ocompa}.
  1998. \begin{figure}[ht]
  1999. \begin{center}
  2000. \caption{The syntax options tab.}\label{fig:ocompa}
  2001. \ifpdf
  2002. \epsfig{file=pics/ide/ocompa.png,width=\textwidth}
  2003. \else
  2004. \epsfig{file=pics/ide/ocompa.eps,width=\textwidth}
  2005. \fi
  2006. \end{center}
  2007. \end{figure}
  2008. \end{latexonly}
  2009. In this dialog, the following options can be set:
  2010. \begin{description}
  2011. \item[Delphi 2 extensions on]
  2012. Enables the use of classes and exceptions (\seeo{Sd} on the command-line).
  2013. \item[C-like operators]
  2014. Allows the use of some extended operators such as \var{+=, -=} etc.
  2015. (\seeo{Sc} on the command-line).
  2016. \item[Stop after first error] when checked, the compiler stops after the
  2017. first error. Normally the compiler continues compiling till a fatal error is
  2018. reached. (\seeo{Se} on the command-line)
  2019. \item[Allow label and goto] Allow the use of label declarations and goto
  2020. statements (\seeo{Sg} on the command line).
  2021. \item[C++ styled inline] allows the use of inlined functions (\seeo{Sc} on
  2022. the command-line).
  2023. \item[TP/BP 7.0 compatibility] Try to be more \tp compatible (\seeo{So} on
  2024. the command-line).
  2025. \item[Delphi compatibility] try to be more \delphi compatible (\seeo{Sd} on
  2026. the command-line).
  2027. \item[Allow STATIC in objects] Allow the \var{Static} modifier for object
  2028. methods (\seeo{St} on the command-line)
  2029. \item[Strict var-strings] Not used.
  2030. \item[Extended syntax] Not used.
  2031. \item[Allow MMX operations] Allow MMX operations.
  2032. \end{description}
  2033. \begin{htmlonly}
  2034. The code generation tab of the compiler options looks as follows:
  2035. \fpcaddimg{../pics/ide/ocompb.png}
  2036. \end{htmlonly}
  2037. \begin{latexonly}
  2038. The code generation tab of the compiler options dialog is shown in
  2039. \seefig{ocompb}.
  2040. \begin{figure}[ht]
  2041. \begin{center}
  2042. \caption{The code generation options tab.}\label{fig:ocompb}
  2043. \ifpdf
  2044. \epsfig{file=pics/ide/ocompb.png,width=\textwidth}
  2045. \else
  2046. \epsfig{file=pics/ide/ocompb.eps,width=\textwidth}
  2047. \fi
  2048. \end{center}
  2049. \end{figure}
  2050. \end{latexonly}
  2051. In this dialog, the following options can be set:
  2052. \begin{description}
  2053. \item[Run-time checks] Controls what run-time checking code is generated. If
  2054. such a check fails, a run-time error is generated.
  2055. the following checking code can be generated:
  2056. \begin{description}
  2057. \item[Range checking] Code that checks the results of enumeration and subset
  2058. type operations is generated (\seeo{Cr} command-line option)
  2059. \item[Stack checking] Code that checks whether the stack limit is not
  2060. reached is generated (\seeo{Cs} command-line option)
  2061. \item[I/O checking] Code that checks the result of IO operations is
  2062. generated. (\seeo{Ci} command-line option).
  2063. \item[Integer overflow checking] The result of integer operations is
  2064. checked (\seeo{Co} command-line option)
  2065. \end{description}
  2066. \item[Target processor] Set the target process for optimizations. The
  2067. compiler can use different optimizations for different processors. This
  2068. corresponds to the \var{Op} option.
  2069. \begin{description}
  2070. \item[i386/i486] Code is optimized for less than Pentium processors.
  2071. \item[Pentium/pentiumMMX] Code is optimized for Pentium processors.
  2072. \item[PPro/PII/c6x86/K6] Code is optimized for Pentium pro and higher
  2073. processors.
  2074. \end{description}
  2075. \item[Optimizations] What optimizations should be used when compiling:
  2076. \begin{description}
  2077. \item[Generate faster code] Corresponds to the \var{-OG} command-line option.
  2078. \item[Generate smaller code] Corresponds to the \var{-Og} command-line option.
  2079. \item[Use register variables] Corresponds to the \var{-Or} command-line
  2080. option.
  2081. \item[Uncertain optimizations] Corresponds to the \var{-Ou} command-line
  2082. option.
  2083. \item[Level 1 optimizations] Corresponds to the \var{O1} command-line
  2084. option.
  2085. \item[Level 2 optimizations] Corresponds to the \var{O1} command-line
  2086. option.
  2087. \end{description}
  2088. \end{description}
  2089. More information on these switches can be found in \sees{codegen}.
  2090. \begin{htmlonly}
  2091. The verbose tab of the compiler options looks as follows:
  2092. \fpcaddimg{../pics/ide/ocompc.png}
  2093. \end{htmlonly}
  2094. \begin{latexonly}
  2095. The verbose tab of the compiler options dialog is shown in
  2096. \seefig{ocompc}.
  2097. \begin{figure}[ht]
  2098. \begin{center}
  2099. \caption{The verbosity options tab.}\label{fig:ocompc}
  2100. \ifpdf
  2101. \epsfig{file=pics/ide/ocompc.png,width=\textwidth}
  2102. \else
  2103. \epsfig{file=pics/ide/ocompc.eps,width=\textwidth}
  2104. \fi
  2105. \end{center}
  2106. \end{figure}
  2107. \end{latexonly}
  2108. In this dialog, the following verbosity options (\seeo{v} on the
  2109. command-line) can be set:
  2110. \begin{description}
  2111. \item[Warnings] Generate warnings, corresponds to \var{-vw} on the
  2112. command-line.
  2113. \item[Notes] Generate notes, corresponds to \var{-vn} on the
  2114. command-line.
  2115. \item[Hints] Generate hints, corresponds to \var{-vh} on the
  2116. command-line.
  2117. \item[General info] Generate general information, corresponds to \var{-vi} on the
  2118. command-line.
  2119. \item[User,tried info] Generate information on used and tried files. Corresponds to \var{-vut} on the
  2120. command-line.
  2121. \item[All] Switch on full verbosity. Corresponds to \var{-va} on the
  2122. command-line.
  2123. \item[Show all procedure if error] If an error using overloaded procedure
  2124. occurs, show all procedures. Corresponds to \var{-vb} on the
  2125. command-line.
  2126. \end{description}
  2127. \begin{htmlonly}
  2128. The browser tab of the compiler options looks as follows:
  2129. \fpcaddimg{../pics/ide/ocompd.png}
  2130. \end{htmlonly}
  2131. \begin{latexonly}
  2132. The browser tab of the compiler options dialog is shown in
  2133. \seefig{ocompd}.
  2134. \begin{figure}[ht]
  2135. \begin{center}
  2136. \caption{The browser options tab.}\label{fig:ocompd}
  2137. \ifpdf
  2138. \epsfig{file=pics/ide/ocompd.png,width=\textwidth}
  2139. \else
  2140. \epsfig{file=pics/ide/ocompd.eps,width=\textwidth}
  2141. \fi
  2142. \end{center}
  2143. \end{figure}
  2144. \end{latexonly}
  2145. In this dialog, the browser options can be set:
  2146. \begin{description}
  2147. \item[No browser] (default) no browser information is generated by the
  2148. compiler.
  2149. \item[Only global browser] Browser information is generated for global
  2150. symbols only, i.e. symbols defined not in a procedure or function (\var{-b} on the command-line)
  2151. \item[Local and global browser] Browser information is generated for all
  2152. symbols, i.e. also for symbols that are defined in procedures or functions
  2153. (\var{-bl} on the command-line)
  2154. \end{description}
  2155. \begin{remark}
  2156. If no browser information is generated, the symbol browser of the IDE will
  2157. not work.
  2158. \end{remark}
  2159. \begin{htmlonly}
  2160. The assembler tab of the compiler options looks as follows:
  2161. \fpcaddimg{../pics/ide/ocompe.png}
  2162. \end{htmlonly}
  2163. \begin{latexonly}
  2164. The assembler tab of the compiler options dialog is shown in
  2165. \seefig{ocompe}.
  2166. \begin{figure}[ht]
  2167. \begin{center}
  2168. \caption{The assembler options tab.}\label{fig:ocompe}
  2169. \ifpdf
  2170. \epsfig{file=pics/ide/ocompe.png,width=\textwidth}
  2171. \else
  2172. \epsfig{file=pics/ide/ocompe.eps,width=\textwidth}
  2173. \fi
  2174. \end{center}
  2175. \end{figure}
  2176. \end{latexonly}
  2177. In this dialog, the assembler reader and writer options can be set:
  2178. \begin{description}
  2179. \item[Assembler reader] This allows to set the style of the assembler blocks
  2180. in the sources:
  2181. \begin{description}
  2182. \item[Direct assembler] The assembler blocks are copied as-is to the output
  2183. (\var{-Rdirect} on the command-line).
  2184. \item[AT\&T assembler] The assembler is written in \var{AT\&T} style
  2185. assembler (\var{-Ratt} on the command-line).
  2186. \item[Intel style assembler] The assembler is written in \var{Intel} style
  2187. assembler blocks (\var{-Rintel} on the command-line).
  2188. \end{description}
  2189. remark that this option is global, but locally the assembler style can be
  2190. changed with compiler directives.
  2191. \item[Assembler info] When writing assembler files, this option decides
  2192. which extra information is written to the assembler file in comments:
  2193. \begin{description}
  2194. \item[List source] The source lines are written to the assembler files
  2195. together with the generated assembler (\var{-al} on the command line).
  2196. \item[List register allocation] The compilers internal register
  2197. allocation/deallocation information is written to the assembler file
  2198. (\var{-ar} on the command-line).
  2199. \item[List temp allocation] The temporary register allocation/deallocation
  2200. is written to the assembler file. (\var{-at} on the command-line).
  2201. \end{description}
  2202. The latter two of these options are mainly useful for debugging the
  2203. compiler itself, it should be rarely necessary to use these.
  2204. \item[Assembler output] This option tells the compiler what assembler output
  2205. should be generated.
  2206. \begin{description}
  2207. \item[Use default output] This depends on the target.
  2208. \item[Use GNU as] assemble using \gnu \file{as} (\var{-Aas} on the
  2209. command-line).
  2210. \item[Use NASM coff] produce NASM coff assembler (go32v2, \var{-Anasmcoff} on the
  2211. command-line)
  2212. \item[Use NASM elf] produce NASM elf assembler (\linux, \var{-Anasmelf} on
  2213. the command-line).
  2214. \item[Use NASM obj] produce NASM obj assembler (\var{-Anasmobj} on the
  2215. command-line).
  2216. \item[Use MASM] produce MASM (Microsoft assembler) assembler (\var{-Amasm} on the
  2217. command-line).
  2218. \item[Use TASM] produce TASM (Turbo Assembler) assembler (\var{-Atasm} on the
  2219. command-line).
  2220. \item[Use coff] Write binary coff files directly using the internal
  2221. assembler (go32v2, \var{-Acoff} on the command-line).
  2222. \item[Use pecoff] Write binary pecoff files files directly using the
  2223. internal writer. (Win32)
  2224. \end{description}
  2225. \end{description}
  2226. %
  2227. % Linker options
  2228. %
  2229. \subsection{Linker options}
  2230. The linker options can be set in the menu \menu{Options|Linker}. It allows
  2231. to determine how libraries and units are linked, and how the linker should
  2232. be called.
  2233. \begin{htmlonly}
  2234. The linker options dialog looks as follows:
  2235. \fpcaddimg{../pics/ide/olinker.png}
  2236. \end{htmlonly}
  2237. \begin{latexonly}
  2238. The linker options dialog is shown in
  2239. \seefig{olinker}.
  2240. \begin{figure}[ht]
  2241. \begin{center}
  2242. \caption{The linker options dialog.}\label{fig:olinker}
  2243. \ifpdf
  2244. \epsfig{file=pics/ide/olinker.png,width=\textwidth}
  2245. \else
  2246. \epsfig{file=pics/ide/olinker.eps,width=\textwidth}
  2247. \fi
  2248. \end{center}
  2249. \end{figure}
  2250. \end{latexonly}
  2251. The following options can be set:
  2252. \begin{description}
  2253. \item[Call linker after] If this option is set then a script is written
  2254. which calls the linker. This corresponds to the \seeo{s} on the
  2255. command-line.
  2256. \item[Preferred library type] With this option, the type of library to be
  2257. linked in can be set:
  2258. \begin{description}
  2259. \item[Target default] This depends on the platform.
  2260. \item[Dynamic libraries] Tries to link in units in dynamical libraries.
  2261. (option \var{-XD} on the command-line)
  2262. \item[Static libraries] Tries to link in units in statical libraries.
  2263. (option \var{-XS} on the command-line)
  2264. \item[Smart libraries] Tries to link in units in smartlinked libraries.
  2265. (option \var{-XX} on the command-line)
  2266. \end{description}
  2267. \end{description}
  2268. %
  2269. % Memory sizes dialog
  2270. %
  2271. \subsection{Memory sizes}
  2272. The memory sizes dialog (reachable via \menu{options|Memory sizes}) allows
  2273. to enter the memory sizes for the project.
  2274. \begin{htmlonly}
  2275. The memory sizes dialog looks as follows:
  2276. \fpcaddimg{../pics/ide/omemsize.png}
  2277. \end{htmlonly}
  2278. \begin{latexonly}
  2279. The memory sizes dialog is shown in \seefig{omemsize}.
  2280. \begin{figure}[ht]
  2281. \begin{center}
  2282. \caption{The memory sizes dialog.}\label{fig:omemsize}
  2283. \ifpdf
  2284. \epsfig{file=pics/ide/omemsize.png}
  2285. \else
  2286. \epsfig{file=pics/ide/omemsize.eps}
  2287. \fi
  2288. \end{center}
  2289. \end{figure}
  2290. \end{latexonly}
  2291. The following sizes can be entered:
  2292. \begin{description}
  2293. \item[Stack size] Sets the size of the stack in bytes;
  2294. (option \var{-Cs} on the command line). This size may be ignored on some
  2295. systems.
  2296. \item[Heap size] Sets the size of the heap in bytes; (option \var{-Ch} on
  2297. the command-line). Note that the heap grows dynamically as much as the OS
  2298. allows.
  2299. \end{description}
  2300. %
  2301. % Debugging options
  2302. %
  2303. \subsection{Debug options}
  2304. \label{se:debugoptions}
  2305. In the debug options dialog some options for inclusion of debug information
  2306. in the binary can be set; it i also possible to add additional compiler
  2307. options in this dialog.
  2308. \begin{htmlonly}
  2309. The debug options dialog looks as follows:
  2310. \fpcaddimg{../pics/ide/odebug.png}
  2311. \end{htmlonly}
  2312. \begin{latexonly}
  2313. The debug options dialog is shown in \seefig{odebug}.
  2314. \begin{figure}[ht]
  2315. \begin{center}
  2316. \caption{The debug options dialog.}\label{fig:odebug}
  2317. \ifpdf
  2318. \epsfig{file=pics/ide/odebug.png,width=\textwidth}
  2319. \else
  2320. \epsfig{file=pics/ide/odebug.eps,width=\textwidth}
  2321. \fi
  2322. \end{center}
  2323. \end{figure}
  2324. \end{latexonly}
  2325. The following options can be set:
  2326. \begin{description}
  2327. \item[Debugging information] tells the compiler which debug information
  2328. should be compiled in. One of following options can be chosen:
  2329. \begin{description}
  2330. \item[Strip all debug symbols from executable] Will strip all debug nd
  2331. symbol information from the binary. (option \var{-Xs} on the command-line).
  2332. \item[Generate debug symbol information] include debug information in the
  2333. binary (option \var{-g} on the command-line). Please note that no debug
  2334. information for units in the Run-Time Library will be included, unless a
  2335. version of the RTL compiled with debug information is available. Only units
  2336. specific to the current project will have debug information included.
  2337. \item[Generate also backtrace lines information] Will compile with debug
  2338. information, and will additionally include the \file{lineinfo} unit in the
  2339. binary, so in case of an error the backtrace will contain the filenames and
  2340. linenumbers of procedures in the call-stack. (Option \var{-gl} on the
  2341. command-line)
  2342. \end{description}
  2343. \item[Profiling switches] Tells the compiler whether or not profile code
  2344. should be included in the binary.
  2345. \begin{description}
  2346. \item[No profile information] Has no effect, as it is the default.
  2347. \item[Generate Profile code for gprof] If checked, profiling code is
  2348. included in the binary (option \var{-p} on the command-line).
  2349. \end{description}
  2350. \item[Addition compiler args] Here arbitrary options can be entered as they
  2351. would be entered on the command-line, they will be passed on to the compiler
  2352. as typed here.
  2353. \item[Debuggee redirection]
  2354. If checked, an attempt will be made to redirect the output of the program
  2355. being debugged to another window (terminal).
  2356. \end{description}
  2357. %
  2358. % The switches mode.
  2359. %
  2360. \subsection{The switches mode}
  2361. \label{se:compilermode}
  2362. The IDE allows to save a set of compiler settings under a common name; it
  2363. provides 3 names under which the switches can be saved:
  2364. \begin{description}
  2365. \item[Normal] For normal (fast) compilation.
  2366. \item[Debug] For debugging; intended to set most debug switches on. Also
  2367. useful for setting conditional defines that e.g. allow to include some
  2368. debug code.
  2369. \item[release] For a compile of the program as it should be released, debug
  2370. information should be off, the binary should be stripped, and optimizations
  2371. should be used.
  2372. \end{description}
  2373. Selecting one of these modes will load the compiler options as they were
  2374. saved the last time the selected mode was active, i.e. it doesn't
  2375. specifically set or unset options.
  2376. When setting and saving compiler options, be sure to select the correct
  2377. switch mode first; it makes little sense to set debug options while the
  2378. release switch is active.
  2379. \begin{htmlonly}
  2380. The switches mode dialog looks as follows:
  2381. \fpcaddimg{../pics/ide/oswitch.png}
  2382. \end{htmlonly}
  2383. \begin{latexonly}
  2384. The switches mode dialog is shown in \seefig{oswitch}.
  2385. \begin{figure}[ht]
  2386. \begin{center}
  2387. \caption{The switches mode dialog.}\label{fig:oswitch}
  2388. \ifpdf
  2389. \epsfig{file=pics/ide/oswitch.png}
  2390. \else
  2391. \epsfig{file=pics/ide/oswitch.eps}
  2392. \fi
  2393. \end{center}
  2394. \end{figure}
  2395. \end{latexonly}
  2396. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2397. % Customize the IDE
  2398. \section{Customizing the IDE}
  2399. The IDE is configurable in a wide range: Colors can be changed, screen
  2400. resolution. The configuration setting can reached via the
  2401. sub-menu \var{Environment} in the \var{Options} menu.
  2402. %
  2403. % general preferences
  2404. %
  2405. \subsection{Preferences}
  2406. The {\em preferences dialog} is called by the menu item
  2407. \menu{Options|Environment|Preferences}.
  2408. \begin{htmlonly}
  2409. The preferences dialog looks as follows:
  2410. \fpcaddimg{../pics/ide/oeprefs.png}
  2411. \end{htmlonly}
  2412. \begin{latexonly}
  2413. The preferences dialog is shown in \seefig{oprefs}.
  2414. \begin{figure}[ht]
  2415. \begin{center}
  2416. \caption{The preferences dialog.}\label{fig:oprefs}
  2417. \ifpdf
  2418. \epsfig{file=pics/ide/oeprefs.png,width=\textwidth}
  2419. \else
  2420. \epsfig{file=pics/ide/oeprefs.eps,width=\textwidth}
  2421. \fi
  2422. \end{center}
  2423. \end{figure}
  2424. \end{latexonly}
  2425. \begin{description}
  2426. \item[Video modes]
  2427. The drop down list at the top of the dialog allows to select a video mode.
  2428. The available video modes depend on the system on which the IDE
  2429. is running.
  2430. \begin{remark}
  2431. \begin{enumerate}
  2432. \item The video mode must be selected by pressing space or clicking
  2433. on it. If the drop down list is opened while leaving the dialog,
  2434. the new video mode will not be applied.
  2435. \item For the \dos version of the IDE, the following should be noted:
  2436. When using VESA modes, the display refresh rate may be very low.
  2437. On older graphics card (1998 and before), it is possible to use the
  2438. {\em UniVBE} driver of {\em SciTech}\footnote{It can be downloaded from
  2439. \href{http://www.informatik.fh-muenchen.de/~ifw98223/vbehz.htm}
  2440. {http://www.informatik.fh-muenchen.de/\~{}ifw98223/vbehz.htm}}
  2441. % It is quite outdated
  2442. %(last update somewhere in 1998).
  2443. %For newer graphics cards which support VESA 3.0, you can try to get one
  2444. %of the TSR programs
  2445. %\footnote{\textbf{T}erminate and \textbf{S}tay \textbf{R}esisdent}
  2446. % available at the net to customize the refresh rate.
  2447. %%%%!!!!!!!! footnote with URL
  2448. \end{enumerate}
  2449. \end{remark}
  2450. \item[Desktop File]
  2451. Specifies where the desktop file is saved: the current directory, or the
  2452. directory where the config file was found;
  2453. \item[Auto save]
  2454. Here it is possible to set which files are saved when a program is run or
  2455. when the IDE is exited:
  2456. \begin{description}
  2457. \item[Editor files] The contents of all open edit windows will be saved.
  2458. \item[Environment] The current environment settings will be saved
  2459. \item[Desktop] The desktop file with all desktop settings (open windows,
  2460. history lists, breakpoints etc.) will be saved.
  2461. \end{description}
  2462. \item[Options]
  2463. Some special behaviour of the IDE can be specified here:
  2464. \begin{description}
  2465. \item[Auto track source]
  2466. \item[Close on go to source] When checked, the messages window is closed
  2467. when the 'go to source line' action is executed.
  2468. \item[Change dir on open] When a file is opened, the directory of that file
  2469. is made the current working directory.
  2470. \end{description}
  2471. \end{description}
  2472. %
  2473. % Desktop customization
  2474. %
  2475. \subsection{The desktop}
  2476. \label{se:prefdesktop}
  2477. The desktop preferences dialog allows to specify what elements of the
  2478. desktop are saved across sessions, i.e. they are saved when the IDE is left,
  2479. and they are again restored when the IDE is started the next time.
  2480. They are saved in a file \file{fp.dsk}.
  2481. \begin{htmlonly}
  2482. The desktop preferences dialog looks as follows:
  2483. \fpcaddimg{../pics/ide/oeprefs.png}
  2484. \end{htmlonly}
  2485. \begin{latexonly}
  2486. The desktop preferences dialog is shown in \seefig{odesktop}.
  2487. \begin{figure}[ht]
  2488. \begin{center}
  2489. \caption{The desktop preferences dialog.}\label{fig:odesktop}
  2490. \ifpdf
  2491. \epsfig{file=pics/ide/oedesk.png}
  2492. \else
  2493. \epsfig{file=pics/ide/oedesk.eps}
  2494. \fi
  2495. \end{center}
  2496. \end{figure}
  2497. \end{latexonly}
  2498. The following elements can be saved and restored across IDE sessions:
  2499. \begin{description}
  2500. \item[History lists] Most entry boxes have a history list where previous
  2501. entries are saved and can be selected. When this option is saved, these
  2502. entries are saved in the desktop file. On by default.
  2503. \item[Clipboard content]
  2504. When checked, the contents of the clipboard is also saved to disk. Off by
  2505. default.
  2506. \item[Watch expressions]
  2507. When checked, all watch expressions are saved in the desktop file. Off by
  2508. default.
  2509. \item[Breakpoints]
  2510. When checked, all break points with their properties are saved in the
  2511. desktop file. Off by default.
  2512. \item[Open windows]
  2513. When checked, the list of files in open editor windows is saved in the
  2514. desktop file, and the windows will be restored the next time the IDE
  2515. is run. On by default.
  2516. \item[Symbol information]
  2517. When checked, the information for the symbol browser is saved in the desktop
  2518. file. Off by default.
  2519. \item[CodeComplete wordlist]
  2520. When checked, the list of code-completion words is saved. On by default.
  2521. \item[CodeTemplates]
  2522. When checked, the defined code-templates are saved. On by default.
  2523. \end{description}
  2524. %
  2525. % Editor customization
  2526. %
  2527. \subsection{The Editor}
  2528. Several aspects of the editor window behaviour can be set in this dialog.
  2529. \begin{htmlonly}
  2530. The editor preferences dialog looks as follows:
  2531. \fpcaddimg{../pics/ide/oeeditor.png}
  2532. \end{htmlonly}
  2533. \begin{latexonly}
  2534. The editor preferences dialog is shown in \seefig{oeeditor}.
  2535. \begin{figure}[ht]
  2536. \begin{center}
  2537. \caption{The editor preferences dialog.}\label{fig:oeeditor}
  2538. \ifpdf
  2539. \epsfig{file=pics/ide/oeeditor.png,width=\textwidth}
  2540. \else
  2541. \epsfig{file=pics/ide/oeeditor.eps,width=\textwidth}
  2542. \fi
  2543. \end{center}
  2544. \end{figure}
  2545. \end{latexonly}
  2546. The following elements can be set in the editor preferences dialog:
  2547. \begin{description}
  2548. \item[Create backup files]
  2549. Whenever an editor file is saved, a backup is made of the old file. On by
  2550. default.
  2551. \item[Auto indent mode]
  2552. Smart indenting is on. This means that pressing \key{Enter} will position the
  2553. cursor on the next line in the same column where text starts on the current
  2554. line. On by default.
  2555. \item[Use tab characters]
  2556. When the tab key is pressed, use a tab character. Normally, when the tab key
  2557. is pressed, spaces are inserted. When this option is checked, tab characters
  2558. will be inserted instead. Off by default.
  2559. \item[Backspace unindents]
  2560. Pressing the \key{Bksp} key will unindent if the beginning of the text on
  2561. the current line is reached, instead of deleting just the previous
  2562. character. On by default.
  2563. \item[Persistent blocks]
  2564. When a selection is made, and the cursor is moved, the selection is not
  2565. destroyed, i.e. the selected block stays selected. On by default.
  2566. \item[Syntax highlight]
  2567. Use syntax highlighting on the files that have an extension which appears in
  2568. the list of highlight extensions. On by default.
  2569. \item[Block insert cursor]
  2570. The insert cursor is a block instead of an underscore character. By default
  2571. the overwrite cursor is a block. This option reverses that behaviour. Off by
  2572. default.
  2573. \item[Vertical blocks]
  2574. When selecting blocks over several lines, the block doesn't select the whole
  2575. lines in the block, it selects the lines till the column on which the cursor
  2576. is located. Off by default.
  2577. \item[Highlight column]
  2578. When checked, the current column (i.e. the column where the cursor is) is
  2579. highlighted. Off by default.
  2580. \item[Highlight row]
  2581. When checked, the current row (i.e. the row where the cursor is) is
  2582. highlighted. Off by default.
  2583. \item[Auto closing brackets]
  2584. When an opening bracket character is typed, the closing bracket is also
  2585. inserted at once. Off by default.
  2586. \item[Keep trailing spaces]
  2587. When saving a file, the spaces at the end of lines are stripped off. This
  2588. behaviour disables that behaviour, i.e. any trailing spaces are also saved
  2589. to file. Off by default.
  2590. \item[Codecomplete enabled]
  2591. Enable code completion. On by default.
  2592. \item[enable folds]
  2593. ???. Off by default.
  2594. \item[Tab size]
  2595. The number of spaces that are inserted when the \key{Tab} key is pressed.
  2596. The default value is 8.
  2597. \item[Indent size]
  2598. The number of spaces a block is indented when calling the block indent function.
  2599. The default value is 2.
  2600. \item[Highlight extensions]
  2601. When syntax highlighting is on, the list of file masks entered here will be
  2602. used to determine which files are highlighted. File masks should be
  2603. separated with semicolon (;) characters. The default is
  2604. \file{*.pas;*.pp;*.inc}.
  2605. \item[File patterns needing tabs]
  2606. Some files (such as makefiles) need actual tab characters instead of spaces.
  2607. Here a series of file masks can be entered for which tab characters will
  2608. always be used. Default is \file{make*;make*.*}.
  2609. \end{description}
  2610. \begin{remark}
  2611. These options will not be applied to already opened windows, only newly
  2612. opened windows will have these options.
  2613. \end{remark}
  2614. %
  2615. % Mouse customization
  2616. %
  2617. \subsection{Mouse}
  2618. \label{se:prefmouse}
  2619. The mouse options dialog is called by the menu item
  2620. \menu{Options|Environment|Mouse}. It allows to adjust the behaviour of the
  2621. mouse as well as the sensitivity of the mouse.
  2622. \begin{htmlonly}
  2623. The mouse options dialog looks as follows:
  2624. \fpcaddimg{../pics/ide/oemouse.png}
  2625. \end{htmlonly}
  2626. \begin{latexonly}
  2627. The mouse options dialog is shown in \seefig{omouse}.
  2628. \begin{figure}[ht]
  2629. \begin{center}
  2630. \caption{The mouse options dialog.}\label{fig:omouse}
  2631. \ifpdf
  2632. \epsfig{file=pics/ide/oemouse.png,width=\textwidth}
  2633. \else
  2634. \epsfig{file=pics/ide/oemouse.eps,width=\textwidth}
  2635. \fi
  2636. \end{center}
  2637. \end{figure}
  2638. \end{latexonly}
  2639. \begin{description}
  2640. \item[Mouse double click]
  2641. The slider can be used to adjust the double click speed. Fast means that the
  2642. time between two clicks is very short, slow means that the time between two
  2643. mouse clicks can be quite long.
  2644. \item[Reverse mouse buttons]
  2645. the behaviour of the left and right mouse buttons can be changed by
  2646. by checking the checkbox; this is especially useful for left-handed people.
  2647. \item[Ctrl+Right mouse button]
  2648. Assigns an action to a right mouse button click while holding the
  2649. \key{Ctrl} key pressed.
  2650. \item[Ctrl+Left mouse button]
  2651. Assigns an action to a left mouse button click while holding the
  2652. \key{Ctrl} key pressed.
  2653. \end{description}
  2654. The following actions can be assigned to \key{Ctrl}-right mouse button or
  2655. \key{Alt}-right mouse button:
  2656. \begin{description}
  2657. \item [Topic search] The keyword at the mouse cursor is searched in the
  2658. help index.
  2659. \item [Go to cursor] The program is executed until the line where
  2660. the mouse cursor is located.
  2661. \item [Breakpoint] Set a breakpoint at the mouse cursor position.
  2662. \item [Evaluate] Evaluate the value of the variable at the mouse
  2663. cursor.
  2664. \item [Add watch] Add the variable at the mouse cursor to the
  2665. watch list.
  2666. \item [Browse symbol] The symbol at the mouse cursor is displayed
  2667. in the browser.
  2668. \end{description}
  2669. %
  2670. % Color customization
  2671. %
  2672. \subsection{Colors}
  2673. \label{se:prefcolors}
  2674. Almost all elements of the IDE such as borders input fields, buttons and so
  2675. on can have their color set in this dialog. The dialog sets the colors for
  2676. all elements at once, i.e. it is not so that the color of one particular
  2677. button can be set.
  2678. The syntax highlighting colors for the editor windows of the IDE can also
  2679. be set in this dialog.
  2680. \begin{htmlonly}
  2681. The colors dialog looks as follows:
  2682. \fpcaddimg{../pics/ide/oecolors.png}
  2683. \end{htmlonly}
  2684. \begin{latexonly}
  2685. The colors dialog is shown in \seefig{ocolors}.
  2686. \begin{figure}[ht]
  2687. \begin{center}
  2688. \caption{The colors dialog.}\label{fig:ocolors}
  2689. \ifpdf
  2690. \epsfig{file=pics/ide/oecolors.png,width=\textwidth}
  2691. \else
  2692. \epsfig{file=pics/ide/oecolors.eps,width=\textwidth}
  2693. \fi
  2694. \end{center}
  2695. \end{figure}
  2696. \end{latexonly}
  2697. The following elements are visible in the color dialog:
  2698. \begin{description}
  2699. \item[Group]
  2700. Here the group to be customized is displayed; A group is a specific window
  2701. or series of windows in the editor. A special group is {\em Syntax} which
  2702. sets the colors for syntax highlighting.
  2703. \begin{description}
  2704. \item[Browser] Sets the colors for the symbol browser window.
  2705. \item[Clock] Sets the colors for the clock in the menu.
  2706. \item[Desktop] Sets the colors for the desktop.
  2707. \item[Dialogs] Sets the colors for the dialog windows.
  2708. \item[Editor] Sets the colors for the editor windows.
  2709. \item[Help] Sets the colors for the help windows.
  2710. \item[Menus] Sets the colors used in the menus.
  2711. \item[Syntax] Sets the colors used when performing syntax highlighting in the
  2712. editor windows.
  2713. \end{description}
  2714. \item[item]
  2715. Here the item for the current group can be selected. The foreground and
  2716. background of this item can be set using the color selectors on the right of
  2717. the dialog.
  2718. \item[Foreground]
  2719. Sets the foreground color of the selected item.
  2720. \item[background]
  2721. Sets the background color of the selected item.
  2722. \item[Sample text]
  2723. This shows the colors of the selected item in a sample text.
  2724. \end{description}
  2725. Setting a good color scheme is important especially for syntax highlighting;
  2726. a good syntax highlighting scheme helps in eliminating errors when typing,
  2727. without needing to compile the sources.
  2728. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2729. % The help system
  2730. \section{The help system}
  2731. More information on how to handle the IDE, or about the use of various
  2732. calls in the RTL, explanations regarding the syntax of a Pascal statement,
  2733. can be found in the \emph{help system}. The help system is activated
  2734. by pressing \key{F1}.
  2735. \subsection{Navigating in the help system}
  2736. The help system contains hyperlinks; these are sensitive locations that
  2737. lead to another topic in the help system. They are marked by a different
  2738. color. The hyperlinks can be activated in 2 ways:
  2739. \begin{enumerate}
  2740. \item by clicking them with the mouse,
  2741. \item by using the \key{Tab} and \key{Shift-Tab} keys to move between
  2742. the different hyperlinks of a page and the \key{Enter} key can be used
  2743. to activate them.
  2744. \end{enumerate}
  2745. The contents of the help system is displayed, if \key{Shift-F1} is
  2746. pressed. To go back to the previous help topic, press \key{Alt-F1}.
  2747. This also works if the help window isn't displayed on the desktop; the help
  2748. window will then be activated.
  2749. %
  2750. % Working with help files.
  2751. %
  2752. \subsection{Working with help files}
  2753. The IDE contains a help system which can display the following file formats:
  2754. \begin{description}
  2755. \item[TPH] The help format for the Turbo Pascal help viewer.
  2756. \item[INF] The OS/2 help format.
  2757. \item[NG] The Norton Guide Help format.
  2758. \item[HTML] HTML files.
  2759. \end{description}
  2760. In future some more formats may be added. However, the above formats should
  2761. cover already a wide spectrum of help files available.
  2762. \begin{remark}
  2763. Concerning the support for HTML files the following should be noted:
  2764. \begin{enumerate}
  2765. \item
  2766. The HTML viewer of the help system is limited, it can only handle the
  2767. most basic HTML files (graphics excluded), since it is only designed
  2768. to display the \fpc help files. \footnote{...but feel free to improve it and send patches to the
  2769. \fpc development team...}.
  2770. \item
  2771. When the HTML help viewer encounters a graphics file, it will try and find a
  2772. file with the same name but an extension of \file{.ans}; If this file is
  2773. found, this will be interpreted as a file with ANSI escape sequences, and
  2774. these will be used to display a text image. The displays of the IDE dialogs
  2775. in the IDE help files are made in this way.
  2776. \end{enumerate}
  2777. \end{remark}
  2778. The menu item \menu{Help|Files} permits to add and delete help files to the
  2779. list of files in the help table of contents.
  2780. \begin{htmlonly}
  2781. The Help files dialog looks as follows:
  2782. \fpcaddimg{../pics/ide/helpfils.png}
  2783. \end{htmlonly}
  2784. \begin{latexonly}
  2785. The help files dialog is displayed in \seefig{helpfiles}.
  2786. \begin{figure}[ht]
  2787. \begin{center}
  2788. \caption{The help files dialog.}\label{fig:helpfiles}
  2789. \ifpdf
  2790. \epsfig{file=pics/ide/helpfils.png}
  2791. \else
  2792. \epsfig{file=pics/ide/helpfils.eps}
  2793. \fi
  2794. \end{center}
  2795. \end{figure}
  2796. \end{latexonly}
  2797. The dialogs lists the files that will be presented in the table of contents
  2798. window of the help system. Each entry has a small descriptive title and a
  2799. filename next to it. The following actions are available when adding help
  2800. files:
  2801. \begin{description}
  2802. \item[New] Adds a new file. IDE will display a prompt, in which the
  2803. location of the help file should be entered.
  2804. If the added file is an HTML file, a dialog box will be displayed
  2805. which asks for a title. This title will then be included in the
  2806. contents of help.
  2807. \item[Delete] Deletes the currently highlighted file from the help system.
  2808. It is \emph{not} deleted from the hard disk, only the help system entry is
  2809. removed.
  2810. \item[Cancel] Discards all changes and closes the dialog.
  2811. \item[OK] Saves the changes and closes the dialog.
  2812. \end{description}
  2813. The \fpc documentation in HTML format can be added to the IDE's help system,
  2814. this way the documentation can be viewed from within the IDE. If \fpc has
  2815. been installed using the installer, the installer should have added the
  2816. FPC documentation to the list of help files, if the documentation was
  2817. installed as well.
  2818. %
  2819. % The about dialog.
  2820. %
  2821. \subsection{The about dialog}
  2822. \label{se:about}
  2823. The {\em about dialog}, reachable through (\menu{Help|About...}) shows some
  2824. information about the IDE, such as the version number, the date it was built,
  2825. what compiler and debugger it uses. When reporting bugs about the IDE, please
  2826. use the information given by this dialog to identify the version of the IDE
  2827. that was used.
  2828. It also displays some copyright information.
  2829. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2830. % Keyboard shortcuts
  2831. \section{Keyboard shortcuts}
  2832. \label{se:keyshortcuts}
  2833. A lot of keyboard shortcuts used by the IDE are compatible with
  2834. WordStar and should be well known to Turbo Pascal users.
  2835. Below are the following tables:
  2836. \begin{enumerate}
  2837. \item In \seet{shortcutsgeneral} some shortcuts for handling the IDE windows
  2838. and Help are listed.
  2839. \item In \seet{shortcutscompiler} the shortcuts for compiling, running and
  2840. debugging a program are presented.
  2841. \item In \seet{shortcutsnavigation} the navigation keys are described.
  2842. \item In \seet{shortcutsedit} the editing keys are listed.
  2843. \item In \seet{shortcutsblock} lists all block command shortcuts.
  2844. \item In \seet{shortcutsselection} all selection-changing shortcuts are
  2845. presented.
  2846. \item In \seet{shortcutsmisc} some general shortcuts are presented,
  2847. which do not fit in the previous categories.
  2848. \end{enumerate}
  2849. \begin{FPCltable}{p{5cm}ll}{General}{shortcutsgeneral}
  2850. Command & Key shortcut & Alternative \\ \hline
  2851. Help & \key{F1} & \\
  2852. Goto last help topic & \key{Alt-F1} & \\
  2853. Search word at cursor position in help & \key{Ctrl-F1} & \\
  2854. Help index & \key{Shift-F1} & \\
  2855. Close active window & \key{Alt-F3} & \\
  2856. Zoom/Unzoom window & \key{F5} & \\
  2857. Move/Zoom active window & \key{Ctrl-F5} & \\
  2858. Switch to next window & \key{F6} & \\
  2859. Switch to last window & \key{Shift-F6} & \\
  2860. Menu & \key{F10} & \\
  2861. Local menu & \key{Alt-F10} & \\
  2862. List of windows & \key{Alt-0} & \\
  2863. Active another window & \key{Alt-<digit>} & \\
  2864. Call \file{grep} utility & \key{Shift-F2} & \\
  2865. Exit IDE & \key{Alt-X} & \\
  2866. \end{FPCltable}
  2867. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2868. \begin{FPCltable}{p{5cm}ll}{Compiler}{shortcutscompiler}
  2869. Command & Key shortcut & Alternative \\
  2870. \hline
  2871. Reset debugger/program & \key{Ctrl-F2} & \\
  2872. Display call stack & \key{Ctrl-F3} & \\
  2873. Run til cursor & \key{F4} & \\
  2874. Switch to user screen & \key{Alt-F5} & \\
  2875. Trace into & \key{F7} & \\
  2876. Add watch & \key{Ctrl-F7} & \\
  2877. Step over & \key{F8} & \\
  2878. Set breakpoint at current line & \key{Ctrl-F8} & \\
  2879. Make & \key{F9} & \\
  2880. Run & \key{Ctrl-F9} & \\
  2881. Compile the active source file & \key{Alt-F9} & \\
  2882. Message & \key{F11} & \\
  2883. Compiler messages & \key{F12} & \\
  2884. \end{FPCltable}
  2885. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2886. \begin{FPCltable}{p{5cm}ll}{Text navigation}{shortcutsnavigation}
  2887. Command & Key shortcut & Alternative \\
  2888. \hline
  2889. Char left & \key{Arrow left} & \key{Ctrl-S} \\
  2890. Char right & \key{Arrow right} & \key{Ctrl-D} \\
  2891. Line up & \key{Arrow up} & \key{Ctrl-E} \\
  2892. Line down & \key{Arrow down} & \key{Ctrl-X} \\
  2893. Word left & \key{Ctrl-Arrow left} & \key{Ctrl-A} \\
  2894. Word right & \key{Ctrl-Arrow right} & \key{Ctrl-F} \\
  2895. Scroll one line up & \key{Ctrl-W} & \\
  2896. Scroll one line down & \key{Ctrl-Z} & \\
  2897. Page up & \key{PageUp} & \key{Ctrl-R} \\
  2898. Page down & \key{PageDown} & \\
  2899. Beginning of Line & \key{Pos1} & \key{Ctrl-Q-S} \\
  2900. End of Line & \key{End} & \key{Ctrl-Q-D} \\
  2901. First line of window & \key{Ctrl-Pos1} & \key{Ctrl-Q-E} \\
  2902. Last line of window & \key{Ctrl-End} & \key{Ctrl-Q-X} \\
  2903. First line of file & \key{Ctrl-PageUp} & \key{Ctrl-Q-R} \\
  2904. Last line of file & \key{Ctrl-PageDown} & \key{Ctrl-Q-C} \\
  2905. Last cursor position & \key{Ctrl-Q-P} & \\
  2906. \end{FPCltable}
  2907. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2908. \begin{FPCltable}{p{5cm}ll}{Edit}{shortcutsedit}
  2909. Command & Key shortcut & Alternative \\
  2910. \hline
  2911. Delete char & \key{Del} & \key{Ctrl-G} \\
  2912. Delete left char & \key{Backspace} & \key{Ctrl-H} \\
  2913. Delete line & \key{Ctrl-Y} & \\
  2914. Delete til end of line & \key{Ctrl-Q-Y} & \\
  2915. Delete word & \key{Ctrl-T} & \\
  2916. Insert line & \key{Ctrl-N} & \\
  2917. Toggle insert mode & \key{Insert} & \key{Ctrl-V} \\
  2918. \end{FPCltable}
  2919. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2920. \begin{FPCltable}{p{5cm}ll}{Block commands}{shortcutsblock}
  2921. Command & Key shortcut & Alternative \\
  2922. \hline
  2923. Goto Beginning of selected text & \key{Ctrl-Q-B} & \\
  2924. Goto end of selected text & \key{Ctrl-Q-K} & \\
  2925. Select current line & \key{Ctrl-K-L} & \\
  2926. Print selected text & \key{Ctrl-K-P} & \\
  2927. Select current word & \key{Ctrl-K-T} & \\
  2928. Delete selected text & \key{Ctrl-Del} & \key{Ctrl-K-Y} \\
  2929. Copy selected text to cursor position & \key{Ctrl-K-C} & \\
  2930. Move selected text to cursor position & \key{Ctrl-K-V} & \\
  2931. Copy selected text to clipboard & \key{Ctrl-Ins} & \\
  2932. Move selected text to the clipboard & \key{Shift-Del} & \\
  2933. Indent block one column & \key{Ctrl-K-I} & \\
  2934. Unindent block one column & \key{Ctrl-K-U} & \\
  2935. Insert text from clipboard & \key{Shift-Insert} & \\
  2936. Insert file & \key{Ctrl-K-R} & \\
  2937. Write selected text to file & \key{Ctrl-K-W} & \\
  2938. Uppercase current block & \key{Ctrl-K-N} & \\
  2939. \end{FPCltable}
  2940. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2941. \begin{FPCltable}{p{5cm}ll}{Change selection}{shortcutsselection}
  2942. Command & Key shortcut & Alternative \\
  2943. \hline
  2944. Mark beginning of selected text & \key{Ctrl-K-B} & \\
  2945. Mark end of selected text& \key{Ctrl-K-K} & \\
  2946. Remove selection & \key{Ctrl-K-Y} & \\
  2947. Extend selection one char to the left & \key{Shift-Arrow left} & \\
  2948. Extend selection one char to the right & \key{Shift-Arrow right} & \\
  2949. Extend selection to the beginning of the line & \key{Shift-Pos1} & \\
  2950. Extend selection to the end of the line & \key{Shift-End} & \\
  2951. Extend selection to the same column in the last row & \key{Shift-Arrow up} & \\
  2952. Extend selection to the same column in the next row & \key{Shift-Arrow down} & \\
  2953. Extend selection to the end of the line & \key{Shift-End} & \\
  2954. Extend selection one word to the left & \key{Ctrl-Shift-Arrow left} & \\
  2955. Extend selection one word to the right & \key{Ctrl-Shift-Arrow right} & \\
  2956. Extend selection one page up & \key{Shift-PageUp} & \\
  2957. Extend selection one page down & \key{Shift-PageDown} & \\
  2958. Extend selection to the beginning of the file & \key{Ctrl-Shift-Pos1} &
  2959. \key{Ctrl-Shift-PageUp} \\
  2960. Extend selection to the end of the file & \key{Ctrl-Shift-End} &
  2961. \key{Ctrl-Shift-PageUp} \\
  2962. \end{FPCltable}
  2963. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2964. \begin{FPCltable}{p{5cm}ll}{Misc. commands}{shortcutsmisc}
  2965. Command & Key shortcut & Alternative \\
  2966. \hline
  2967. Save file & \key{F2} & \key{Ctrl-K-S} \\
  2968. Open file & \key{F3} & \\
  2969. Search & \key{Ctrl-Q-F} & \\
  2970. Search again & \key{Ctrl-L}\ & \\
  2971. Search and replace & \key{Ctrl-Q-A} & \\
  2972. Set mark & \key{Ctrl-K-n} (where n can be 0..9) & \\
  2973. Goto mark & \key{Ctrl-Q-n} (where n can be 0..9) & \\
  2974. Undo & \key{Alt-Backspace} & \\
  2975. \end{FPCltable}
  2976. %
  2977. % $Log$
  2978. % Revision 1.3 2001-07-19 15:07:56 michael
  2979. % + Merged from fixbranch
  2980. %
  2981. % Revision 1.1.2.21 2001/06/29 19:44:47 peter
  2982. % * create pdf without latex2html installed
  2983. %
  2984. % Revision 1.1.2.20 2000/12/08 23:59:53 michael
  2985. % + Some changes noted by marco
  2986. %
  2987. % Revision 1.1.2.19 2000/12/08 21:15:39 michael
  2988. % + spell-checked
  2989. %
  2990. % Revision 1.1.2.18 2000/12/08 20:41:50 michael
  2991. % + Fixed some references
  2992. %
  2993. % Revision 1.1.2.17 2000/12/08 16:55:54 michael
  2994. % + Some remarks corrected
  2995. %
  2996. % Revision 1.1.2.16 2000/12/08 12:57:21 michael
  2997. % + Documented tdf format
  2998. %
  2999. % Revision 1.1.2.15 2000/12/07 23:19:04 michael
  3000. % + Added memsizes, goto line and debug options
  3001. %
  3002. % Revision 1.1.2.14 2000/12/06 23:08:56 michael
  3003. % + Linker options dialog documented
  3004. %
  3005. % Revision 1.1.2.13 2000/12/03 22:32:06 michael
  3006. % + More compiler options
  3007. %
  3008. % Revision 1.1.2.12 2000/11/28 22:53:06 michael
  3009. % + Better sized pictures, start of options
  3010. %
  3011. % Revision 1.1.2.11 2000/11/21 22:02:25 peter
  3012. % * html image including fixed
  3013. %
  3014. % Revision 1.1.2.10 2000/11/21 18:44:38 peter
  3015. % * removed last gifs
  3016. %
  3017. % Revision 1.1.2.9 2000/11/21 14:16:06 michael
  3018. % + Pages 1-23 corrected after remarks from Luk Vandelaer
  3019. %
  3020. % Revision 1.1.2.8 2000/11/20 18:53:52 michael
  3021. % + Documenting tools
  3022. %
  3023. % Revision 1.1.2.7 2000/11/19 23:08:32 michael
  3024. % + Further implementation.
  3025. %
  3026. % Revision 1.1.2.6 2000/11/18 00:06:11 michael
  3027. % + Added code templates
  3028. % + Added syntax highlighting
  3029. % + Added codecompletion
  3030. % + Added gdb window
  3031. %
  3032. % Revision 1.1.2.5 2000/11/15 23:43:32 michael
  3033. % + Debugging finished
  3034. %
  3035. % Revision 1.1.2.4 2000/11/15 18:58:35 michael
  3036. % + Debug continued
  3037. %
  3038. % Revision 1.1.2.3 2000/11/14 23:24:09 michael
  3039. % + Documented run menu
  3040. %
  3041. % Revision 1.1.2.2 2000/11/13 23:46:03 michael
  3042. % + documented blocks, search, and the browser
  3043. %
  3044. % Revision 1.1.2.1 2000/11/12 23:40:32 michael
  3045. % + Changes for final version
  3046. %
  3047. % Revision 1.1 2000/07/13 09:10:04 michael
  3048. % + Initial import
  3049. %
  3050. % Revision 1.5 2000/03/04 07:47:28 florian
  3051. % * some corrections and some new stuff
  3052. %
  3053. % Revision 1.4 2000/03/01 15:39:40 florian
  3054. % * some new stuff
  3055. %
  3056. % Revision 1.3 2000/02/28 17:45:40 florian
  3057. % * a lot of new stuff
  3058. %