Refactor: hide implementation of GncTreeModel* (move from .h -> .c)

This commit is contained in:
Richard Cohen 2023-06-13 13:04:37 +01:00
parent ae352e9efe
commit 1084071be6
10 changed files with 38 additions and 48 deletions

View File

@ -46,6 +46,12 @@ gnc_tree_model_account_types_finalize (GObject * object);
static void
gnc_tree_model_account_types_tree_model_init (GtkTreeModelIface * iface);
struct _GncTreeModelAccountTypes
{
GObject gobject;
int stamp;
};
typedef struct GncTreeModelAccountTypesPrivate
{
guint32 selected;

View File

@ -54,13 +54,6 @@ typedef enum
GNC_TREE_MODEL_ACCOUNT_TYPES_NUM_COLUMNS
} GncTreeModelAccountTypesColumn;
/* typedefs & structures */
struct _GncTreeModelAccountTypes
{
GObject gobject;
int stamp;
};
/* function prototypes */
/* Choose one of two methods to use the GncTreeModelAccountTypes

View File

@ -90,6 +90,14 @@ static void gnc_tree_model_account_event_handler (QofInstance *entity,
GncTreeModelAccount *model,
GncEventData *ed);
/** The instance data structure for an account tree model. */
struct _GncTreeModelAccount
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** The instance private data for an account tree model. */
typedef struct GncTreeModelAccountPrivate
{

View File

@ -96,16 +96,6 @@ typedef enum
GNC_TREE_MODEL_ACCOUNT_NUM_COLUMNS
} GncTreeModelAccountColumn;
/* typedefs & structures */
/** The instance data structure for an account tree model. */
struct _GncTreeModelAccount
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** Clear the tree model account cached values.
*
* @param model A pointer to the account tree model.

View File

@ -91,6 +91,14 @@ static void gnc_tree_model_commodity_event_handler (QofInstance *entity,
gpointer user_data,
gpointer event_data);
/** The instance data structure for a commodity tree model. */
struct _GncTreeModelCommodity
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** The instance private data for a commodity database tree model. */
typedef struct GncTreeModelCommodityPrivate
{

View File

@ -72,17 +72,6 @@ typedef enum
GNC_TREE_MODEL_COMMODITY_NUM_COLUMNS
} GncTreeModelCommodityColumn;
/* typedefs & structures */
/** The instance data structure for a commodity tree model. */
struct _GncTreeModelCommodity
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** @name Account Tree Model Constructors
@{ */

View File

@ -86,6 +86,14 @@ static void gnc_tree_model_owner_event_handler (QofInstance *entity,
GncTreeModelOwner *model,
GncEventData *ed);
/** The instance data structure for an owner tree model. */
struct _GncTreeModelOwner
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** The instance private data for an owner tree model. */
typedef struct GncTreeModelOwnerPrivate
{

View File

@ -75,16 +75,6 @@ typedef enum
GNC_TREE_MODEL_OWNER_NUM_COLUMNS
} GncTreeModelOwnerColumn;
/* typedefs & structures */
/** The instance data structure for an owner tree model. */
struct _GncTreeModelOwner
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** @name Owner Tree Model Constructors
@{ */

View File

@ -120,6 +120,14 @@ static void gnc_tree_model_price_event_handler (QofInstance *entity,
gpointer user_data,
gpointer event_data);
/** The instance data structure for a price tree model. */
struct _GncTreeModelPrice
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** The instance private data for a price database tree model. */
typedef struct GncTreeModelPricePrivate
{

View File

@ -66,16 +66,6 @@ typedef enum
GNC_TREE_MODEL_PRICE_NUM_COLUMNS
} GncTreeModelPriceColumn;
/* typedefs & structures */
/** The instance data structure for a price tree model. */
struct _GncTreeModelPrice
{
GncTreeModel gnc_tree_model; /**< The parent object data. */
int stamp; /**< The state of the model. Any state
* change increments this number. */
};
/** @name Account Tree Model Constructors
@{ */