[Gnucash-changes] changes to make the documentation format nicely with Doxygen

Linas Vepstas linas at cvs.gnucash.org
Fri May 7 00:47:03 EDT 2004


Log Message:
-----------
changes to make the documentation format nicely with Doxygen

Modified Files:
--------------
    gnucash/src/business/business-core:
        gncAddress.h
        gncBillTerm.h
        gncBusiness.h
        gncCustomer.h
        gncEmployee.h
        gncTaxTable.h

Revision Data
-------------
Index: gncBillTerm.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncBillTerm.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lsrc/business/business-core/gncBillTerm.h -Lsrc/business/business-core/gncBillTerm.h -u -r1.12 -r1.13
--- src/business/business-core/gncBillTerm.h
+++ src/business/business-core/gncBillTerm.h
@@ -19,11 +19,14 @@
  * Boston, MA  02111-1307,  USA       gnu at gnu.org                   *
  *                                                                  *
 \********************************************************************/
-
-/*
- * Copyright (C) 2002 Derek Atkins
- * Author: Derek Atkins <warlord at MIT.EDU>
- */
+/** @addtogroup Business
+    @{ */
+/** @addtogroup BillTerm
+    @{ */
+/** @file gncBillTerm.h
+    @brief Billing Term interface
+    @author Copyright (C) 2002 Derek Atkins <warlord at MIT.EDU>
+*/
 
 #ifndef GNC_BILLTERM_H_
 #define GNC_BILLTERM_H_
@@ -41,7 +44,7 @@
 #define GNC_IS_BILLTERM(obj)  (QOF_CHECK_TYPE((obj), GNC_ID_BILLTERM))
 #define GNC_BILLTERM(obj)     (QOF_CHECK_CAST((obj), GNC_ID_BILLTERM, GncBillTerm))
 
-/*
+/**
  * How to interpret the amount.
  * You can interpret it as a VALUE or a PERCENT.
  * ??? huh?
@@ -51,11 +54,19 @@
   GNC_TERM_TYPE_PROXIMO,
 } GncBillTermType;
 
-/* Create/Destroy Functions */
+/** @name Create/Destroy Functions */
+/** @{ */
 GncBillTerm * gncBillTermCreate (QofBook *book);
 void gncBillTermDestroy (GncBillTerm *term);
+void gncBillTermIncRef (GncBillTerm *term);
+void gncBillTermDecRef (GncBillTerm *term);
+
+void gncBillTermChanged (GncBillTerm *term);
+void gncBillTermBeginEdit (GncBillTerm *term);
+void gncBillTermCommitEdit (GncBillTerm *term);
+/** @} */
 
-/* Set Functions */
+/** @name Set Functions */
 void gncBillTermSetName (GncBillTerm *term, const char *name);
 void gncBillTermSetDescription (GncBillTerm *term, const char *name);
 void gncBillTermSetType (GncBillTerm *term, GncBillTermType type);
@@ -64,15 +75,10 @@
 void gncBillTermSetDiscount (GncBillTerm *term, gnc_numeric discount);
 void gncBillTermSetCutoff (GncBillTerm *term, gint cutoff);
 
-void gncBillTermIncRef (GncBillTerm *term);
-void gncBillTermDecRef (GncBillTerm *term);
-
-void gncBillTermChanged (GncBillTerm *term);
-void gncBillTermBeginEdit (GncBillTerm *term);
-void gncBillTermCommitEdit (GncBillTerm *term);
-
-/* Get Functions */
+/** @} */
 
+/** @name Get Functions */
+/** @{ */
 /** Return a pointer to the instance gncBillTerm that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 
  *  instance can't be found.
@@ -100,6 +106,7 @@
 GncBillTerm *gncBillTermReturnChild (GncBillTerm *term, gboolean make_new);
 #define gncBillTermGetChild(t) gncBillTermReturnChild((t),FALSE)
 gint64 gncBillTermGetRefcount (GncBillTerm *term);
+/** @} */
 
 int gncBillTermCompare (GncBillTerm *a, GncBillTerm *b);
 
@@ -114,3 +121,5 @@
 #define gncBillTermGetGUID(x) qof_instance_get_guid (QOF_INSTANCE(x))
 
 #endif /* GNC_BILLTERM_H_ */
+/** @} */
+/** @} */
Index: gncCustomer.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncCustomer.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -Lsrc/business/business-core/gncCustomer.h -Lsrc/business/business-core/gncCustomer.h -u -r1.20 -r1.21
--- src/business/business-core/gncCustomer.h
+++ src/business/business-core/gncCustomer.h
@@ -19,11 +19,14 @@
  * Boston, MA  02111-1307,  USA       gnu at gnu.org                   *
  *                                                                  *
 \********************************************************************/
-
-/*
- * Copyright (C) 2001,2002 Derek Atkins
- * Author: Derek Atkins <warlord at MIT.EDU>
- */
+/** @addtogroup Business
+    @{ */
+/** @addtogroup Customer
+    @{ */
+/** @file gncCustomer.h
+    @brief Core Customer Interface 
+    @author Copyright (C) 2001,2002 Derek Atkins <warlord at MIT.EDU>
+*/
 
 #ifndef GNC_CUSTOMER_H_
 #define GNC_CUSTOMER_H_
@@ -45,12 +48,16 @@
 #define GNC_IS_CUSTOMER(obj)  (QOF_CHECK_TYPE((obj), GNC_ID_CUSTOMER))
 #define GNC_CUSTOMER(obj)     (QOF_CHECK_CAST((obj), GNC_ID_CUSTOMER, GncCustomer))
 
-/* Create/Destroy Functions */
-
+/** @name Create/Destroy Functions */
+/** @{ */
 GncCustomer *gncCustomerCreate (QofBook *book);
 void gncCustomerDestroy (GncCustomer *customer);
+void gncCustomerBeginEdit (GncCustomer *customer);
+void gncCustomerCommitEdit (GncCustomer *customer);
+/** @} */
 
-/* Set Functions */
+/** @name Set Functions */
+/** @{ */
 
 void gncCustomerSetID (GncCustomer *customer, const char *id);
 void gncCustomerSetName (GncCustomer *customer, const char *name);
@@ -67,11 +74,10 @@
 
 void gncCustomerAddJob (GncCustomer *customer, GncJob *job);
 void gncCustomerRemoveJob (GncCustomer *customer, GncJob *job);
+/** @} */
 
-void gncCustomerBeginEdit (GncCustomer *customer);
-void gncCustomerCommitEdit (GncCustomer *customer);
-
-/* Get Functions */
+/** @name Get Functions */
+/** @{ */
 /** Return a pointer to the instance gncCustomer that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 
  *  instance can't be found.
@@ -98,6 +104,7 @@
 
 KvpFrame *gncCustomerGetSlots (GncCustomer *customer);
 GList * gncCustomerGetJoblist (GncCustomer *customer, gboolean show_all);
+/** @} */
 
 
 
@@ -109,10 +116,12 @@
 #define CUSTOMER_ADDR	"addr"
 #define CUSTOMER_SHIPADDR	"shipaddr"
 
-/* deprecated functions, should be removed */
+/** @deprecated functions, should be removed */
 #define gncCustomerGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x))
 #define gncCustomerRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null()))
 #define gncCustomerGetBook(x) qof_instance_get_book(QOF_INSTANCE(x))
 #define gncCustomerLookupDirect(g,b) gncCustomerLookup((b), &(g))
 
 #endif /* GNC_CUSTOMER_H_ */
+/** @} */
+/** @} */
Index: gncBusiness.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncBusiness.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -Lsrc/business/business-core/gncBusiness.h -Lsrc/business/business-core/gncBusiness.h -u -r1.17 -r1.18
--- src/business/business-core/gncBusiness.h
+++ src/business/business-core/gncBusiness.h
@@ -1,7 +1,4 @@
-/*
- * gncBusiness.h -- Business Helper Functions
- * Copyright (C) 2002 Derek Atkins
- * Author: Derek Atkins <warlord at MIT.EDU>
+/* gncBusiness.h -- Business Helper Functions
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -19,15 +16,26 @@
  * Free Software Foundation           Voice:  +1-617-542-5942
  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652
  * Boston, MA  02111-1307,  USA       gnu at gnu.org
- *
- * Currently mostly not used ... 
+ */
+/** @addtogroup Engine
+    @{ */
+/** @addtogroup Business
+    The Business Engine provides a set of structures for 
+    that provide small-business accounting features.
+    @{ */
+
+/** @file gncBusiness.h -- Business Helper Functions
+ *  @author Copyright (C) 2002 Derek Atkins
+ *  @author Derek Atkins <warlord at MIT.EDU>
  */
 
+/** @} */
+/** @} */
 #ifndef GNC_BUSINESS_H_
 #define GNC_BUSINESS_H_
 
 
-/* deprecated backwards-compat definitions */
+/* @deprecated backwards-compat definitions */
 #define GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM
 #define GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER
 #define GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE
Index: gncAddress.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncAddress.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lsrc/business/business-core/gncAddress.h -Lsrc/business/business-core/gncAddress.h -u -r1.10 -r1.11
--- src/business/business-core/gncAddress.h
+++ src/business/business-core/gncAddress.h
@@ -19,11 +19,14 @@
  * Boston, MA  02111-1307,  USA       gnu at gnu.org                   *
  *                                                                  *
 \********************************************************************/
-
-/*
- * Copyright (C) 2001 Derek Atkins
- * Author: Derek Atkins <warlord at MIT.EDU>
- */
+/** @addtogroup Business
+    @{ */
+/** @addtogroup Address
+    @{ */
+/** @file gncAddress.h
+    @brief an Address object
+    @author Copyright (C) 2001 Derek Atkins <warlord at MIT.EDU>
+*/
 
 #ifndef GNC_ADDRESS_H_
 #define GNC_ADDRESS_H_
@@ -35,11 +38,14 @@
 
 typedef struct _gncAddress GncAddress;
 
-/* Create/Destroy functions */
+/** @name Create/Destroy functions */
+/** @{ */
 GncAddress * gncAddressCreate (QofBook *book, QofEntity *parent);
 void gncAddressDestroy (GncAddress *addr);
+/** @} */
 
-/* Set functions */
+/** @name Set functions */
+/** @{ */
 
 void gncAddressSetName (GncAddress *addr, const char *name);
 void gncAddressSetAddr1 (GncAddress *addr, const char *addr1);
@@ -50,8 +56,10 @@
 void gncAddressSetFax (GncAddress *addr, const char *fax);
 void gncAddressSetEmail (GncAddress *addr, const char *email);
 void gncAddressClearDirty (GncAddress *address);
+/** @} */
 
-/* Get Functions */
+/** @name Get Functions */
+/** @{ */
 
 const char * gncAddressGetName (const GncAddress *addr);
 const char * gncAddressGetAddr1 (const GncAddress *addr);
@@ -61,6 +69,8 @@
 const char * gncAddressGetPhone (const GncAddress *addr);
 const char * gncAddressGetFax (const GncAddress *addr);
 const char * gncAddressGetEmail (const GncAddress *addr);
+/** @} */
+
 gboolean gncAddressIsDirty (const GncAddress *addr);
 
 int gncAddressCompare (const GncAddress *a, const GncAddress *b);
@@ -71,3 +81,5 @@
 #define ADDRESS_EMAIL   "email"
 
 #endif /* GNC_ADDRESS_H_ */
+/** @} */
+/** @} */
Index: gncEmployee.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncEmployee.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -Lsrc/business/business-core/gncEmployee.h -Lsrc/business/business-core/gncEmployee.h -u -r1.16 -r1.17
--- src/business/business-core/gncEmployee.h
+++ src/business/business-core/gncEmployee.h
@@ -19,11 +19,14 @@
  * Boston, MA  02111-1307,  USA       gnu at gnu.org                   *
  *                                                                  *
 \********************************************************************/
-
-/*
- * Copyright (C) 2001 Derek Atkins
- * Author: Derek Atkins <warlord at MIT.EDU>
- */
+/** @addtogroup Business
+    @{ */
+/** @addtogroup Employee
+    @{ */
+/** @file gncEmployee.h
+    @brief Employee Interface
+    @author Copyright (C) 2001 Derek Atkins <warlord at MIT.EDU>
+*/
 
 #ifndef GNC_EMPLOYEE_H_
 #define GNC_EMPLOYEE_H_
@@ -40,13 +43,17 @@
 #define GNC_IS_EMPLOYEE(obj)  (QOF_CHECK_TYPE((obj), GNC_ID_EMPLOYEE))
 #define GNC_EMPLOYEE(obj)     (QOF_CHECK_CAST((obj), GNC_ID_EMPLOYEE, GncEmployee))
 
-/* Create/Destroy Functions */
-
+/** @name Create/Destroy Functions */
+/** @{ */
 GncEmployee *gncEmployeeCreate (QofBook *book);
 void gncEmployeeDestroy (GncEmployee *employee);
+void gncEmployeeBeginEdit (GncEmployee *employee);
+void gncEmployeeCommitEdit (GncEmployee *employee);
+int gncEmployeeCompare (GncEmployee *a, GncEmployee *b);
+/** @} */
 
-/* Set Functions */
-
+/** @name Set Functions */
+/** @{ */
 void gncEmployeeSetID (GncEmployee *employee, const char *id);
 void gncEmployeeSetUsername (GncEmployee *employee, const char *username);
 void gncEmployeeSetLanguage (GncEmployee *employee, const char *language);
@@ -56,9 +63,10 @@
 void gncEmployeeSetCurrency (GncEmployee *employee, gnc_commodity * currency);
 void gncEmployeeSetActive (GncEmployee *employee, gboolean active);
 void gncEmployeeSetCCard (GncEmployee *employee, Account* ccard_acc);
+/** @} */
 
-/* Get Functions */
-
+/** @name Get Functions */
+/** @{ */
 QofBook * gncEmployeeGetBook (GncEmployee *employee);
 const char * gncEmployeeGetID (GncEmployee *employee);
 const char * gncEmployeeGetUsername (GncEmployee *employee);
@@ -70,6 +78,7 @@
 gnc_commodity * gncEmployeeGetCurrency (GncEmployee *employee);
 gboolean gncEmployeeGetActive (GncEmployee *employee);
 Account * gncEmployeeGetCCard (GncEmployee *employee);
+/** @} */
 
 
 /** Return a pointer to the instance gncEmployee that is identified
@@ -84,9 +93,6 @@
 gboolean gncEmployeeIsDirty (GncEmployee *employee);
 
 
-void gncEmployeeBeginEdit (GncEmployee *employee);
-void gncEmployeeCommitEdit (GncEmployee *employee);
-int gncEmployeeCompare (GncEmployee *a, GncEmployee *b);
 
 #define EMPLOYEE_ID	"id"
 #define EMPLOYEE_USERNAME	"username"
@@ -98,3 +104,5 @@
 #define gncEmployeeLookupDirect(G,B) gncEmployeeLookup((B),&(G))
 
 #endif /* GNC_EMPLOYEE_H_ */
+/** @} */
+/** @} */
Index: gncTaxTable.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/gncTaxTable.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lsrc/business/business-core/gncTaxTable.h -Lsrc/business/business-core/gncTaxTable.h -u -r1.15 -r1.16
--- src/business/business-core/gncTaxTable.h
+++ src/business/business-core/gncTaxTable.h
@@ -19,10 +19,12 @@
  * Boston, MA  02111-1307,  USA       gnu at gnu.org                   *
  *                                                                  *
 \********************************************************************/
-/** @addtogroup Business-Engine
+/** @addtogroup Business
+    @{ */
+/** @addtogroup TaxTable
     @{ */
 /** @file gncTaxTable.h
-    @breif Tax Table programming interface
+    @brief Tax Table programming interface
     @author Copyright (C) 2002 Derek Atkins <warlord at MIT.EDU>
 */
 
@@ -67,7 +69,8 @@
 const char * gncTaxIncludedTypeToString (GncTaxIncluded type);
 gboolean gncTaxIncludedStringToType (const char *str, GncTaxIncluded *type);
 
-/** Create/Destroy Functions */
+/** @name Create/Destroy Functions */
+/** @{ */
 GncTaxTable * gncTaxTableCreate (QofBook *book);
 void gncTaxTableDestroy (GncTaxTable *table);
 GncTaxTableEntry * gncTaxTableEntryCreate (void);
@@ -88,8 +91,10 @@
 void gncTaxTableChanged (GncTaxTable *table);
 void gncTaxTableBeginEdit (GncTaxTable *table);
 void gncTaxTableCommitEdit (GncTaxTable *table);
+/** @} */
 
-/** Get Functions */
+/** @name Get Functions */
+/** @{ */
 
 /** Return a pointer to the instance gncTaxTable that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 
@@ -115,6 +120,7 @@
 Account * gncTaxTableEntryGetAccount (GncTaxTableEntry *entry);
 GncAmountType gncTaxTableEntryGetType (GncTaxTableEntry *entry);
 gnc_numeric gncTaxTableEntryGetAmount (GncTaxTableEntry *entry);
+/** @} */
 
 int gncTaxTableCompare (GncTaxTable *a, GncTaxTable *b);
 int gncTaxTableEntryCompare (GncTaxTableEntry *a, GncTaxTableEntry *b);
@@ -141,10 +147,11 @@
 /** Destroy a list of accountvalues */
 void gncAccountValueDestroy (GList *list);
 
-/** deprecated routine */
+/** @deprecated routine */
 #define gncTaxTableGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x))
 #define gncTaxTableRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null()))
 #define gncTaxTableLookupDirect(G,B) gncTaxTableLookup((B), &(G))
 
 #endif /* GNC_TAXTABLE_H_ */
+/** @} */
 /** @} */


More information about the Gnucash-changes mailing list