GnuCash 2.4.99
Data Structures | Defines | Typedefs | Enumerations | Functions
gnc-tree-view.c File Reference

Base GncTreeView implementation for gnucash trees. More...

#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
#include <string.h>
#include "gnc-tree-view.h"
#include "gnc-engine.h"
#include "gnc-gconf-utils.h"
#include "gnc-gnome-utils.h"
#include "gnc-gobject-utils.h"

Go to the source code of this file.

Data Structures

struct  GncTreeViewPrivate

Defines

#define MODEL_COLUMN   "model_column"
#define REAL_TITLE   "real_title"
#define PREF_NAME   "pref-name"
#define GCONF_KEY   "gconf-key"
#define GCONF_KEY_SORT_COLUMN   "sort_column"
#define GCONF_KEY_SORT_ORDER   "sort_order"
#define GCONF_KEY_COLUMN_ORDER   "column_order"
#define GCONF_KEY_VISIBLE   "visible"
#define GCONF_KEY_WIDTH   "width"
#define GNC_TREE_VIEW_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_TREE_VIEW, GncTreeViewPrivate))

Typedefs

typedef struct GncTreeViewPrivate GncTreeViewPrivate

Enumerations

enum  { PROP_0, PROP_GCONF_SECTION, PROP_SHOW_COLUMN_MENU }

Functions

void gnc_tree_view_set_model (GncTreeView *view, GtkTreeModel *model)
void gnc_tree_view_configure_columns (GncTreeView *view)
GtkTreeViewColumn * gnc_tree_view_add_toggle_column (GncTreeView *view, const gchar *column_title, const gchar *column_short_title, const gchar *pref_name, gint model_data_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn, renderer_toggled toggle_edited_cb)
GtkTreeViewColumn * gnc_tree_view_add_text_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *stock_icon_name, const gchar *sizing_text, gint model_data_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn)
GtkTreeViewColumn * gnc_tree_view_add_combo_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *sizing_text, gint model_data_column, gint model_visibility_column, GtkTreeModel *combo_tree_model, gint combo_model_text_column, GtkTreeIterCompareFunc column_sort_fn)
GtkCellRenderer * gnc_tree_view_column_get_renderer (GtkTreeViewColumn *column)
GtkTreeViewColumn * gnc_tree_view_add_numeric_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *sizing_text, gint model_data_column, gint model_color_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn)
gint gnc_tree_view_append_column (GncTreeView *view, GtkTreeViewColumn *column)
gboolean gnc_tree_view_path_is_valid (GncTreeView *view, GtkTreePath *path)
void gnc_tree_view_keynav (GncTreeView *view, GtkTreeViewColumn **col, GtkTreePath *path, GdkEventKey *event)
Gnc Tree View Gconf Callback / Related Functions
void gnc_tree_view_set_gconf_section (GncTreeView *view, const gchar *section)
const gchar * gnc_tree_view_get_gconf_section (GncTreeView *view)
Gnc Tree View Callback Functions
Gnc Tree View Column Selection Menu Related Functions
void gnc_tree_view_expand_columns (GncTreeView *view, gchar *first_column_name,...)
void gnc_tree_view_set_show_column_menu (GncTreeView *view, gboolean visible)
gboolean gnc_tree_view_get_show_column_menu (GncTreeView *view)
Gnc Tree View Auxiliary Functions
GtkTreeViewColumn * gnc_tree_view_find_column_by_name (GncTreeView *view, const gchar *wanted)

Gnc Tree View Object Implementation

GType gnc_tree_view_get_type (void)

Detailed Description

Base GncTreeView implementation for gnucash trees.

Author:
David Hampton <hampton@employees.org>

Definition in file gnc-tree-view.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines