mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: hide implementation of GncTreeModel* (move from .h -> .c)
This commit is contained in:
parent
ae352e9efe
commit
1084071be6
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
@{ */
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
@{ */
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
@{ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user