2005-11-01 21:32:36 -06:00
|
|
|
/** \mainpage GnuCash design and developer's reference
|
|
|
|
|
|
|
|
This is the new developer and design manual for GnuCash.
|
|
|
|
|
2024-05-20 11:49:19 -05:00
|
|
|
\section maindocs Documentation Sections
|
2002-11-27 16:49:10 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
The documentation is organised in a rough sequence:
|
|
|
|
|
|
|
|
-# \ref manualguide Start with the main GnuCash manual.
|
2024-05-20 11:49:19 -05:00
|
|
|
-# \ref highlevel Pages that cover topics at a higher level. Most also have
|
|
|
|
links to the full API reference they relate to.
|
2005-11-01 21:32:36 -06:00
|
|
|
-# \ref maingeneral How to work with Doxygen in your own code.
|
|
|
|
|
2024-05-20 11:49:19 -05:00
|
|
|
\section manualguide External documentation
|
2005-11-01 21:32:36 -06:00
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
Please refer to the main
|
2019-06-06 08:49:22 -05:00
|
|
|
<a href="https://www.gnucash.org/docs.phtml">documentation
|
2009-12-29 14:12:48 -06:00
|
|
|
page</a> on the gnucash website which includes links to the
|
2005-11-01 21:32:36 -06:00
|
|
|
GnuCash Manual and the Concepts Guide in various formats.
|
|
|
|
|
2024-05-20 11:49:19 -05:00
|
|
|
\section highlevel Highlevel overviews
|
2005-11-01 21:32:36 -06:00
|
|
|
|
2024-05-20 11:49:19 -05:00
|
|
|
Pages that cover topics at a higher level. Most also have
|
|
|
|
links to the full API reference they relate to.
|
2005-11-01 21:32:36 -06:00
|
|
|
|
|
|
|
- \ref deprecated
|
|
|
|
- \ref loanhandling
|
|
|
|
- \ref kvpvalues
|
|
|
|
- \ref lotsoverview
|
2010-12-27 09:36:15 -06:00
|
|
|
- \ref python_bindings_page
|
2005-11-01 21:32:36 -06:00
|
|
|
- \ref todo
|
|
|
|
|
2024-05-20 11:49:19 -05:00
|
|
|
\section maingeneral General Doxygen help
|
2005-11-01 21:32:36 -06:00
|
|
|
|
|
|
|
- \ref tipshints
|
|
|
|
- \ref reference
|
|
|
|
|
2018-01-25 15:44:42 -06:00
|
|
|
*/
|
|
|
|
|
2015-09-29 14:08:48 -05:00
|
|
|
/********************************************************************\
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 2 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License*
|
|
|
|
* along with this program; if not, contact: *
|
|
|
|
* *
|
|
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
|
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
|
|
|
* *
|
|
|
|
\********************************************************************/
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
|
|
|
|
/* Editing this file? Comments can be inserted in this file
|
|
|
|
Remember to use C syntax but skip the extra asterisk so that doxygen
|
|
|
|
ignores the extra notes, like this one.
|
|
|
|
*/
|
|
|
|
/* Hacking alert: When adding new sections, keep the references in
|
|
|
|
alphabetical order OF THE DESCRIPTION, not the reference title.
|
|
|
|
|
|
|
|
Also, make sure all reference titles are unique across the entire
|
|
|
|
Doxygen output.
|
|
|
|
|
|
|
|
Keep each section within one C comment block and any text before
|
|
|
|
the first section of a page must be in the same comment block as the
|
|
|
|
page title itself.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \section hacking Hacking on this documentation
|
|
|
|
|
|
|
|
There is the beginning of a style guide for documenting under
|
2024-05-20 11:49:19 -05:00
|
|
|
\ref tipshints
|
2005-11-01 21:32:36 -06:00
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
Feel free to start documenting or playing with doxygen configuration.
|
2005-11-01 21:32:36 -06:00
|
|
|
This main page can be found in src/doc/doxygen_main_page.c .
|
|
|
|
|
|
|
|
This main page is just an introduction to doxygen markup, see the
|
|
|
|
Doxygen manual for the full command set.
|
|
|
|
|
|
|
|
- \ref tipshints Tips and hints for using doxygen
|
|
|
|
- \ref reference Links to the Doxygen manual
|
|
|
|
|
|
|
|
Code snippets need special handling in the text overviews. Change all
|
2009-12-29 14:12:48 -06:00
|
|
|
comment markers to // (so that the overview comment remains intact)
|
|
|
|
and then wrap each code snippet in the \a verbatim \a endverbatim
|
2005-11-01 21:32:36 -06:00
|
|
|
doxygen markers.
|
|
|
|
|
|
|
|
One useful method is to edit these .txt files using the syntax highlighting
|
|
|
|
of normal C files.
|
|
|
|
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
\page tipshints Useful tips for doxygen in C files
|
|
|
|
|
|
|
|
- \ref index Introduction
|
|
|
|
- \ref reference The Doxygen manual
|
2009-12-29 14:12:48 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
\section tips An introduction to doxygen markup
|
2009-12-29 14:12:48 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
\subsection Locations What to document
|
|
|
|
|
|
|
|
All declarations for:
|
|
|
|
|
|
|
|
-# typedef
|
|
|
|
-# struct
|
|
|
|
-# enum
|
|
|
|
-# functions
|
|
|
|
|
|
|
|
This will enable doxygen to link all parameter types to the declarations
|
|
|
|
every time the type is used in a function - very helpful to new developers.
|
|
|
|
|
|
|
|
\subsection Files Private files
|
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
If your declarations are in separate files, like private header files,
|
2005-11-01 21:32:36 -06:00
|
|
|
a simple block can still be linked into doxygen as long as the file is
|
|
|
|
identified to doxygen using a '\\file' section:
|
|
|
|
|
|
|
|
** \\file filename.h\n
|
|
|
|
\\brief one-liner summary of the file purpose\n
|
|
|
|
\\author the usual copyright statement
|
2003-03-25 18:17:26 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
\subsection Methods How to document
|
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
Every doxygen comment block starts with an adapted comment marker.
|
2005-11-01 21:32:36 -06:00
|
|
|
You can use an extra slash /// or an extra asterisk ** . Blocks end
|
|
|
|
in the usual way. Doxygen accepts commands using a backslash.
|
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
To put a description with each function or structure, use '\\brief'
|
2005-11-01 21:32:36 -06:00
|
|
|
End the brief description with a blank line. The rest of the documentation will
|
|
|
|
then be shown in the body of the doxygen page.
|
|
|
|
|
|
|
|
Commands may begin with \\ or @
|
|
|
|
|
|
|
|
\subsection Presentation Extras
|
|
|
|
|
|
|
|
-# Start a line with a hyphen to start a list - the indent determines the
|
|
|
|
nesting of the list:
|
|
|
|
- To create a numbered list, use -# e.g. for a sublist:
|
|
|
|
-# start a numbered list
|
|
|
|
- revert to previous list
|
|
|
|
|
|
|
|
End the list with a blank line.
|
2009-12-29 14:12:48 -06:00
|
|
|
Use :: at the start of a function or structure to link to the page
|
2005-11-01 21:32:36 -06:00
|
|
|
for that function in the doxygen documentation. e.g. ::qof_class_foreach
|
|
|
|
|
|
|
|
Use the param command to describe function parameters in the text.
|
|
|
|
|
|
|
|
Use the 'back reference' to document enumerator values:\n
|
|
|
|
enum testenum {\n
|
|
|
|
enum_one **< less than marker tells doxygen to use this line
|
|
|
|
to document enum_one.
|
2003-03-25 18:17:26 -06:00
|
|
|
|
2002-11-27 16:49:10 -06:00
|
|
|
\subsection config Editing Doxygen configuration
|
2003-03-14 17:59:25 -06:00
|
|
|
|
2002-11-27 16:49:10 -06:00
|
|
|
To edit the doxygen configuration, you can use:
|
|
|
|
*
|
|
|
|
cd src/doc
|
|
|
|
*
|
|
|
|
doxywizard doxygen.cfg &
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \page reference Doxygen reference documentation
|
2003-03-14 17:59:25 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
- \ref index Introduction
|
|
|
|
- \ref tipshints Tips and hints for using doxygen
|
2024-05-20 11:49:19 -05:00
|
|
|
|
2009-12-29 14:12:48 -06:00
|
|
|
|
2019-06-06 08:49:22 -05:00
|
|
|
The Doxygen web site (https://www.stack.nl/~dimitri/doxygen/ [DEAD LINK]) has a
|
2003-03-25 18:17:26 -06:00
|
|
|
complete user manual. For the impatient, here are the most
|
|
|
|
interesting sections:
|
|
|
|
|
|
|
|
- How to write grouped documentation for files, functions, variables,
|
2019-06-06 08:49:22 -05:00
|
|
|
etc.: https://www.stack.nl/~dimitri/doxygen/grouping.html [DEAD LINK] . Do not
|
2005-11-01 21:32:36 -06:00
|
|
|
forget to add a file documentation block (\@file) at the top of your
|
2003-03-25 18:17:26 -06:00
|
|
|
file. Otherwise, all documentation in that file will <i>not</i> appear
|
|
|
|
in the html output.
|
|
|
|
|
|
|
|
- List of the special commands you can use within your documentation
|
2019-06-06 08:49:22 -05:00
|
|
|
blocks: https://www.stack.nl/~dimitri/doxygen/commands.html [DEAD LINK]
|
2002-11-27 16:49:10 -06:00
|
|
|
|
|
|
|
\section contact Contacts
|
|
|
|
|
|
|
|
\subsection web Web Site
|
2019-06-06 08:49:22 -05:00
|
|
|
News about GnuCash as well as the latest version can always be found at https://www.gnucash.org/
|
2002-11-27 16:49:10 -06:00
|
|
|
|
|
|
|
\subsection email Email
|
2009-12-29 14:12:48 -06:00
|
|
|
If you have any suggestions concerning this documentation, do not hesitate to send suggestions to
|
2019-06-06 08:49:22 -05:00
|
|
|
gnucash-devel (see https://www.gnucash.org/en/lists.phtml for details)
|
2002-11-27 16:49:10 -06:00
|
|
|
|
2009-02-03 15:19:39 -06:00
|
|
|
Benoit Grégoire <bock@step.polymtl.ca>
|
2005-11-01 21:32:36 -06:00
|
|
|
Neil Williams <linux@codehelp.co.uk>
|
2002-11-27 16:49:10 -06:00
|
|
|
*/
|