GnuCash  4.12-11-g8193d7f23a+
Data Structures | Macros | Typedefs | Enumerations | Functions
gnc-tree-model-split-reg.h File Reference
#include <gtk/gtk.h>
#include "gnc-tree-model.h"
#include "Query.h"

Go to the source code of this file.

Data Structures

struct  GncTreeModelSplitReg
 The instance data structure for an account tree model. More...
 
struct  GncTreeModelSplitRegClass
 The class data structure for an account tree model. More...
 

Macros

#define GNC_TYPE_TREE_MODEL_SPLIT_REG   (gnc_tree_model_split_reg_get_type ())
 
#define GNC_TREE_MODEL_SPLIT_REG(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitReg))
 
#define GNC_TREE_MODEL_SPLIT_REG_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitRegClass))
 
#define GNC_IS_TREE_MODEL_SPLIT_REG(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG))
 
#define GNC_IS_TREE_MODEL_SPLIT_REG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_SPLIT_REG))
 
#define GNC_TREE_MODEL_SPLIT_REG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_SPLIT_REG, GncTreeModelSplitRegClass))
 
#define GNC_TREE_MODEL_SPLIT_REG_NAME   "GncTreeModelSplitReg"
 
#define NUM_OF_TRANS   30
 

Typedefs

typedef GtkWidget *(* SRGetParentCallback2) (gpointer user_data)
 Callback function type - Used to get parent window.
 

Enumerations

enum  SplitRegisterType2 {
  BANK_REGISTER2, CASH_REGISTER2, ASSET_REGISTER2, CREDIT_REGISTER2,
  LIABILITY_REGISTER2, INCOME_REGISTER2, EXPENSE_REGISTER2, EQUITY_REGISTER2,
  STOCK_REGISTER2, CURRENCY_REGISTER2, RECEIVABLE_REGISTER2, PAYABLE_REGISTER2,
  TRADING_REGISTER2, NUM_SINGLE_REGISTER_TYPES2, GENERAL_JOURNAL2 = NUM_SINGLE_REGISTER_TYPES2, INCOME_LEDGER2,
  PORTFOLIO_LEDGER2, SEARCH_LEDGER2, NUM_REGISTER_TYPES2
}
 Register types. More...
 
enum  SplitRegisterStyle2 { REG2_STYLE_LEDGER, REG2_STYLE_AUTO_LEDGER, REG2_STYLE_JOURNAL }
 Register styles.
 
enum  GncTreeModelSplitRegColumn {
  GNC_TREE_MODEL_SPLIT_REG_COL_GUID, GNC_TREE_MODEL_SPLIT_REG_COL_DATE, GNC_TREE_MODEL_SPLIT_REG_COL_DUEDATE, GNC_TREE_MODEL_SPLIT_REG_COL_NUMACT,
  GNC_TREE_MODEL_SPLIT_REG_COL_DESCNOTES, GNC_TREE_MODEL_SPLIT_REG_COL_TRANSFERVOID, GNC_TREE_MODEL_SPLIT_REG_COL_RECN, GNC_TREE_MODEL_SPLIT_REG_COL_DEBIT,
  GNC_TREE_MODEL_SPLIT_REG_COL_CREDIT, GNC_TREE_MODEL_SPLIT_REG_COL_LAST_VISIBLE = GNC_TREE_MODEL_SPLIT_REG_COL_CREDIT, GNC_TREE_MODEL_SPLIT_REG_COL_RO, GNC_TREE_MODEL_SPLIT_REG_COL_NUM_VIS,
  GNC_TREE_MODEL_SPLIT_REG_COL_ACT_VIS, GNC_TREE_MODEL_SPLIT_REG_NUM_COLUMNS
}
 
enum  GncTreeModelSplitRegUpdate {
  VIEW_HOME, VIEW_UP, VIEW_PGUP, VIEW_GOTO,
  VIEW_PGDOWN, VIEW_DOWN, VIEW_END
}
 

Functions

GType gnc_tree_model_split_reg_get_type (void)
 Get the type of split register tree plugin. More...
 
GncTreeModelSplitReggnc_tree_model_split_reg_new (SplitRegisterType2 reg_type, SplitRegisterStyle2 style, gboolean use_double_line, gboolean is_template, gboolean mismatched_commodities)
 Create new model and set options for register. More...
 
void gnc_tree_model_split_reg_load (GncTreeModelSplitReg *model, GList *slist, Account *default_account)
 Load the model from a slist and set default account for register. More...
 
void gnc_tree_model_split_reg_set_template_account (GncTreeModelSplitReg *model, Account *template_account)
 Sets the template account. More...
 
Accountgnc_tree_model_split_reg_get_template_account (GncTreeModelSplitReg *model)
 Returns the template account. More...
 
gboolean gnc_tree_model_split_reg_get_template (GncTreeModelSplitReg *model)
 Return TRUE if this is a template register. More...
 
void gnc_tree_model_split_reg_destroy (GncTreeModelSplitReg *model)
 Destroy the model. More...
 
void gnc_tree_model_split_reg_set_data (GncTreeModelSplitReg *model, gpointer user_data, SRGetParentCallback2 get_parent)
 Sets the user data and callback hooks for the register. More...
 
void gnc_tree_model_split_reg_update_query (GncTreeModelSplitReg *model, Query *query)
 Update the query for the register. More...
 
GtkWidget * gnc_tree_model_split_reg_get_parent (GncTreeModelSplitReg *model)
 Returns the parent Window of the register. More...
 
void gnc_tree_model_split_reg_config (GncTreeModelSplitReg *model, SplitRegisterType2 newtype, SplitRegisterStyle2 newstyle, gboolean use_double_line)
 Set style and type for register. More...
 
Accountgnc_tree_model_split_reg_get_anchor (GncTreeModelSplitReg *model)
 Return the default account for this register model. More...
 
void gnc_tree_model_split_reg_commit_blank_split (GncTreeModelSplitReg *model)
 Commit the blank split. More...
 
void gnc_tree_model_split_reg_set_display (GncTreeModelSplitReg *model, gboolean subacc, gboolean gl)
 Set display general journal and show sub accounts. More...
 
void gnc_tree_model_split_reg_move (GncTreeModelSplitReg *model, GncTreeModelSplitRegUpdate model_update)
 Change transactions in the tlist based on view movement. More...
 
void gnc_tree_model_split_reg_sync_scrollbar (GncTreeModelSplitReg *model)
 
Transaction * gnc_tree_model_split_reg_get_first_trans (GncTreeModelSplitReg *model)
 Return the first transaction, opposite to blank transaction in the full list. More...
 
gboolean gnc_tree_model_split_reg_trans_is_in_view (GncTreeModelSplitReg *model, Transaction *trans)
 Return TRUE if transaction is in the view list. More...
 
GtkListStore * gnc_tree_model_split_reg_get_description_list (GncTreeModelSplitReg *model)
 
GtkListStore * gnc_tree_model_split_reg_get_notes_list (GncTreeModelSplitReg *model)
 
GtkListStore * gnc_tree_model_split_reg_get_memo_list (GncTreeModelSplitReg *model)
 
GtkListStore * gnc_tree_model_split_reg_get_action_list (GncTreeModelSplitReg *model)
 
GtkListStore * gnc_tree_model_split_reg_get_acct_list (GncTreeModelSplitReg *model)
 
void gnc_tree_model_split_reg_update_num_list (GncTreeModelSplitReg *model)
 
void gnc_tree_model_split_reg_update_action_list (GncTreeModelSplitReg *model)
 
void gnc_tree_model_split_reg_update_account_list (GncTreeModelSplitReg *model)
 
void gnc_tree_model_split_reg_update_completion (GncTreeModelSplitReg *model)
 
gboolean gnc_tree_model_split_reg_get_split_and_trans (GncTreeModelSplitReg *model, GtkTreeIter *iter, gboolean *is_trow1, gboolean *is_trow2, gboolean *is_split, gboolean *is_blank, Split **split, Transaction **trans)
 
gboolean gnc_tree_model_split_reg_set_blank_split_parent (GncTreeModelSplitReg *model, Transaction *trans, gboolean remove_only)
 
Split * gnc_tree_model_split_get_blank_split (GncTreeModelSplitReg *model)
 
gboolean gnc_tree_model_split_reg_is_blank_split_parent (GncTreeModelSplitReg *model, Transaction *trans)
 
Transaction * gnc_tree_model_split_get_blank_trans (GncTreeModelSplitReg *model)
 
gboolean gnc_tree_model_split_reg_get_iter_from_trans_and_split (GncTreeModelSplitReg *model, Transaction *trans, Split *split, GtkTreeIter *iter1, GtkTreeIter *iter2)
 
gchar * gnc_tree_model_split_reg_get_row_color (GncTreeModelSplitReg *model, gboolean is_trow1, gboolean is_trow2, gboolean is_split, gint num)
 
gchar * gnc_tree_model_split_reg_get_tooltip (GncTreeModelSplitReg *model, gint position)
 
void gnc_tree_model_split_reg_set_current_trans_by_position (GncTreeModelSplitReg *model, gint position)
 
gboolean gnc_tree_model_split_reg_get_read_only (GncTreeModelSplitReg *model, Transaction *trans)
 
gboolean gnc_tree_model_split_reg_get_sub_account (GncTreeModelSplitReg *model)
 
GtkTreePath * gnc_tree_model_split_reg_get_path_to_split_and_trans (GncTreeModelSplitReg *model, Split *split, Transaction *trans)
 
gboolean gnc_tree_model_split_reg_is_blank_trans (GncTreeModelSplitReg *model, GtkTreeIter *iter)
 
Split * gnc_tree_model_split_reg_trans_get_split_equal_to_ancestor (const Transaction *trans, const Account *ancestor)
 
gint gnc_tree_model_split_reg_sort_iter_compare_func (GtkTreeModel *tm, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data)