GnuCash
5.6-150-g038405b370+
|
gnc-plugin-page-report.h – A GncPlugin page for a report. More...
Modules | |
Window/Plugin Structure | |
Dialogs | |
Assistants | |
Utility functions for the GnuCash GUI | |
Auto-complete typed user input. | |
QuickFill is meant to be used by the GUI to auto-complete (e.g. | |
Options Dialog | |
Reports | |
Creating and editing accounts in the GUI | |
Commodity windows | |
GncCurrencyEdit | |
Gnome-specific GUI handling. | |
GUIUtility | |
GnuCash Tree Model | |
GncTreeView | |
Registers, Ledgers and Journals | |
Files | |
file | gnc-accounting-period.c |
General utilities for dealing with accounting periods. | |
file | gnc-accounting-period.h |
General utilities for dealing with accounting periods. | |
file | dialog-book-close.h |
This file contains the functions to present a GUI to select a book closing date and accounts into which to close the Income and Expense accounts. | |
file | dialog-file-access.h |
This file contains the functions to present a GUI to select a file or a database connection. | |
file | dialog-object-references.h |
This file contains the functions to present a dialog box with a list of object references and an explanation that these objects must be modified to not refer to another specific object so that that object may be deleted. | |
file | gnc-period-select.c |
A custom widget for selecting accounting periods. | |
file | gnc-period-select.h |
A custom widget for selecting accounting periods. | |
file | gnc-tree-view-sx-list.h |
GncTreeView implementation for Scheduled Transaction List. | |
file | gnc-tree-view.h |
common utilities for manipulating a GtkTreeView within gnucash | |
Data Structures | |
struct | _GncPeriodSelect |
Private Data Structure. More... | |
struct | _GncTreeViewClass |
Typedefs | |
typedef void(* | renderer_toggled) (GtkCellRendererToggle *cell_renderer_toggle, const gchar *path, gpointer user_data) |
Enumerations | |
enum | GncAccountingPeriod { GNC_ACCOUNTING_PERIOD_INVALID = -1, GNC_ACCOUNTING_PERIOD_TODAY, GNC_ACCOUNTING_PERIOD_MONTH, GNC_ACCOUNTING_PERIOD_MONTH_PREV, GNC_ACCOUNTING_PERIOD_QUARTER, GNC_ACCOUNTING_PERIOD_QUARTER_PREV, GNC_ACCOUNTING_PERIOD_CYEAR, GNC_ACCOUNTING_PERIOD_CYEAR_PREV, GNC_ACCOUNTING_PERIOD_CYEAR_LAST, GNC_ACCOUNTING_PERIOD_FYEAR = GNC_ACCOUNTING_PERIOD_CYEAR_LAST, GNC_ACCOUNTING_PERIOD_FYEAR_PREV, GNC_ACCOUNTING_PERIOD_FYEAR_LAST, GNC_ACCOUNTING_PERIOD_LAST = GNC_ACCOUNTING_PERIOD_FYEAR_LAST } |
This specifies a time interval. | |
enum | { PROP_0, PROP_FY_END, PROP_SHOW_DATE, PROP_DATE_BASE, PROP_PS_ACTIVE } |
enum | { CHANGED, LAST_SIGNAL } |
Functions | |
void | gnc_ui_close_book (QofBook *book, GtkWindow *parent) |
Create and run the dialog to close the book. More... | |
void | gnc_ui_file_access_for_open (GtkWindow *parent) |
void | gnc_ui_file_access_for_save_as (GtkWindow *parent) |
void | gnc_ui_file_access_for_export (GtkWindow *parent) |
void | gnc_ui_object_references_show (const gchar *explanation, GList *objlist) |
GncOptionsDialog::GncOptionsDialog (const char *title, GtkWindow *parent) | |
GncOptionsDialog::GncOptionsDialog (bool modal, const char *title, const char *component_class, GtkWindow *parent) | |
Constructs a GncOptionsDialog. More... | |
GncOptionsDialog::GncOptionsDialog (const GncOptionsDialog &)=default | |
GncOptionsDialog::GncOptionsDialog (GncOptionsDialog &&)=default | |
GtkWidget * | GncOptionsDialog::get_widget () const noexcept |
GtkWidget * | GncOptionsDialog::get_page_list () const noexcept |
GtkWidget * | GncOptionsDialog::get_page_list_view () const noexcept |
GtkWidget * | GncOptionsDialog::get_notebook () const noexcept |
GncOptionDB * | GncOptionsDialog::get_option_db () noexcept |
void | GncOptionsDialog::build_contents (GncOptionDB *odb) |
void | GncOptionsDialog::build_contents (GncOptionDB *odb, bool show_dialog) |
Populate the dialog's notebook with the contents of odb. More... | |
void | GncOptionsDialog::set_sensitive (bool sensitive) noexcept |
void | GncOptionsDialog::changed () noexcept |
void | GncOptionsDialog::set_apply_cb (GncOptionsDialogCallback, void *cb_data) noexcept |
void | GncOptionsDialog::call_apply_cb () noexcept |
void | GncOptionsDialog::set_help_cb (GncOptionsDialogCallback, void *cb_data) noexcept |
void | GncOptionsDialog::call_help_cb () noexcept |
void | GncOptionsDialog::set_close_cb (GncOptionsDialogCallback, void *cb_data) noexcept |
void | GncOptionsDialog::call_close_cb () noexcept |
void | GncOptionsDialog::set_book_help_cb () noexcept |
void | GncOptionsDialog::call_book_help_cb () noexcept |
void | GncOptionsDialog::set_style_sheet_help_cb () noexcept |
void | GncOptionsDialog::call_style_sheet_help_cb () noexcept |
void | gnc_period_select_set_active (GncPeriodSelect *period, GncAccountingPeriod which) |
Set which item in the GncPeriodSelect is initially selected. More... | |
GncAccountingPeriod | gnc_period_select_get_active (GncPeriodSelect *period) |
Get the currently selected accounting period from a GncPeriodSelect widget. More... | |
GDate * | gnc_period_select_get_date (GncPeriodSelect *period) |
Get the currently selected accounting period choice from a GncPeriodSelect widget. More... | |
G_DECLARE_FINAL_TYPE (GncTreeViewSxList, gnc_tree_view_sx_list, GNC, TREE_VIEW_SX_LIST, GncTreeView) GtkTreeView *gnc_tree_view_sx_list_new(GncSxInstanceModel *sx_instances) | |
SchedXaction * | gnc_tree_view_sx_list_get_sx_from_path (GncTreeViewSxList *view, GtkTreePath *path) |
Variables | |
const gchar * | start_strings [GNC_ACCOUNTING_PERIOD_LAST] |
const gchar * | end_strings [GNC_ACCOUNTING_PERIOD_LAST] |
Accounting Periods | |
time64 | gnc_accounting_period_fiscal_start (void) |
time64 | gnc_accounting_period_fiscal_end (void) |
GDate * | gnc_accounting_period_start_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains) |
This function returns the starting date for an accounting period. More... | |
GDate * | gnc_accounting_period_end_gdate (GncAccountingPeriod which, const GDate *fy_end, const GDate *contains) |
This function returns the ending date for an accounting period. More... | |
GncPeriodSelect Properties | |
GDate * | gnc_period_select_get_fy_end (GncPeriodSelect *period) |
Get the current value of the fiscal year end setting from a GncPeriodSelect widget. More... | |
void | gnc_period_select_set_fy_end (GncPeriodSelect *period, const GDate *fy_end) |
Set the fiscal year end on a GncPeriodSelect widget. More... | |
gboolean | gnc_period_select_get_show_date (GncPeriodSelect *period) |
Get the current value of the "show sample" setting from a GncPeriodSelect widget. | |
void | gnc_period_select_set_show_date (GncPeriodSelect *period, const gboolean show_date) |
Set the "show sample" setting on a GncPeriodSelect widget. More... | |
GDate * | gnc_period_select_get_date_base (GncPeriodSelect *period) |
void | gnc_period_select_set_date_base (GncPeriodSelect *period, const GDate *date_base) |
GncPeriodSelect Core Implementation | |
GtkWidget * | gnc_period_select_new (gboolean starting_labels) |
Create a new GncPeriodSelect widget which is used to select a accounting period like "previous month" or "this year". More... | |
GtkWidget * | gnc_period_select_new_glade (gchar *widget_name, gchar *string1, gchar *string2, gint int1, gint int2) |
Create a new GncPeriodSelect widget from a glade file. More... | |
Tree View Creation | |
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) |
This function adds a new toggle column to a GncTreeView base view. More... | |
GtkTreeViewColumn * | gnc_tree_view_add_text_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *icon_name, const gchar *sizing_text, gint model_data_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn) |
This function adds a new text column to a GncTreeView base view. More... | |
GtkTreeViewColumn * | gnc_tree_view_add_text_view_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *icon_name, const gchar *sizing_text, gint model_data_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn) |
This function adds a new text view column to a GncTreeView base view. More... | |
GtkTreeViewColumn * | gnc_tree_view_add_pix_column (GncTreeView *view, const gchar *column_title, const gchar *pref_name, const gchar *sizing_text, gint model_data_column, gint model_visibility_column, GtkTreeIterCompareFunc column_sort_fn) |
This function adds a pixbuf view column to a GncTreeView base view. More... | |
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) |
This function adds a new numeric column to a GncTreeView base view. More... | |
gint | gnc_tree_view_append_column (GncTreeView *view, GtkTreeViewColumn *column) |
Add a column to a view based upon a GncTreeView. More... | |
Tree View Properties | |
void | gnc_tree_view_configure_columns (GncTreeView *view) |
Make all the correct columns visible, respecting their default visibility setting, their "always" visibility setting, and the last saved state if available. More... | |
GtkTreeViewColumn * | gnc_tree_view_find_column_by_name (GncTreeView *view, const gchar *wanted) |
Find a tree column given the "pref name". More... | |
void | gnc_tree_view_set_state_section (GncTreeView *view, const gchar *section) |
This function is called to set up or remove an association between a saved state section and the display of a view. More... | |
const gchar * | gnc_tree_view_get_state_section (GncTreeView *view) |
This function is called to get the current association between a saved state section and the display of a view. More... | |
void | gnc_tree_view_remove_state_information (GncTreeView *view) |
This function is called to completely wipe the treeview's state information (column visibility, width, sorting order,..). More... | |
void | gnc_tree_view_save_state (GncTreeView *view) |
This function is called to write the treeview's state information (column visibility, width, sorting order,..) to the state file. More... | |
void | gnc_tree_view_expand_columns (GncTreeView *view, gchar *first_column_name,...) |
This function set the columns that will be allocated the free space in the view. More... | |
void | gnc_tree_view_set_control_column_background (GncTreeView *view, gint column, GtkTreeCellDataFunc func) |
This function links the cell backgrounds of the two control columns to a column in the model that has color strings or a cell data function that sets the "cell-background" property. More... | |
void | gnc_tree_view_set_sort_user_data (GncTreeView *view, GtkTreeModel *s_model) |
This allows the columns to be setup without the model connected. More... | |
void | gnc_tree_view_set_show_column_menu (GncTreeView *view, gboolean visible) |
This function is called to set the "show-column-menu" property on this view. More... | |
gboolean | gnc_tree_view_get_show_column_menu (GncTreeView *view) |
This function is called to get the current value of the "show-column-menu" property. More... | |
GtkCellRenderer * | gnc_tree_view_column_get_renderer (GtkTreeViewColumn *column) |
Return the "main" cell renderer from a GtkTreeViewColumn added to a GncTreeView my one of the convenience routines. More... | |
void | gnc_tree_view_keynav (GncTreeView *view, GtkTreeViewColumn **col, GtkTreePath *path, GdkEventKey *event) |
gboolean | gnc_tree_view_path_is_valid (GncTreeView *view, GtkTreePath *path) |
void | gnc_tree_view_set_editing_started_cb (GncTreeView *view, GFunc editing_started_cb, gpointer editing_cb_data) |
Setup a callback for when the user starts editing so appropriate actions can be taken like disable the actions delete menu option. | |
void | gnc_tree_view_set_editing_finished_cb (GncTreeView *view, GFunc editing_finished_cb, gpointer editing_cb_data) |
Setup a callback for when the user finishes editing so appropriate actions can be taken like enable the actions delete menu option. | |
gnc-plugin-page-report.h – A GncPlugin page for a report.
Copyright (C) 2004 Joshua Sled Author: Joshua Sled jsled @asy nchro nous .org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, contact:
Free Software Foundation Voice: +1-617-542-5942 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 Boston, MA 02110-1301, USA gnu@g nu.o rg
void GncOptionsDialog::build_contents | ( | GncOptionDB * | odb, |
bool | show_dialog | ||
) |
Populate the dialog's notebook with the contents of odb.
odb | - option database to use * |
show_dialog | - should dialog be made visible or not * |
Definition at line 336 of file dialog-options.cpp.
GDate * gnc_accounting_period_end_gdate | ( | GncAccountingPeriod | which, |
const GDate * | fy_end, | ||
const GDate * | contains | ||
) |
This function returns the ending date for an accounting period.
The date will be computed based upon the type of accounting interval requested, an optional fiscal year end value, and an optional time value.
which | An enum specifying the type of accounting period. |
fy_end | This argument specifies the month and day of the fiscal year end. If the accounting period specified in the 'which' parameter is not a fiscal accounting period, this variable is ignored and may be NULL. Note: the year field of this argument is always ignored. |
contains | This argument specifies the origin time value used by the calculations in this function. If this value is NULL, the origin will be the current time. |
Definition at line 229 of file gnc-accounting-period.c.
GDate * gnc_accounting_period_start_gdate | ( | GncAccountingPeriod | which, |
const GDate * | fy_end, | ||
const GDate * | contains | ||
) |
This function returns the starting date for an accounting period.
The date will be computed based upon the type of accounting interval requested, an optional fiscal year end value, and an optional time value.
which | An enum specifying the type of accounting period. |
fy_end | This argument specifies the month and day of the fiscal year end. If the accounting period specified in the 'which' parameter is not a fiscal accounting period, this variable is ignored and may be NULL. Note: the year field of this argument is always ignored. |
contains | This argument specifies the origin time value used by the calculations in this function. If this value is NULL, the origin will be the current time. |
Definition at line 135 of file gnc-accounting-period.c.
GncAccountingPeriod gnc_period_select_get_active | ( | GncPeriodSelect * | period | ) |
Get the currently selected accounting period from a GncPeriodSelect widget.
This is used to retrieve the user's selection in the form of an enum.
period | The selection widget to query. |
Definition at line 686 of file gnc-period-select.c.
GDate * gnc_period_select_get_date | ( | GncPeriodSelect * | period | ) |
Get the currently selected accounting period choice from a GncPeriodSelect widget.
This is used to retrieve the user's selection in the form of a GDate.
period | The selection widget to query. |
Definition at line 700 of file gnc-period-select.c.
GDate * gnc_period_select_get_fy_end | ( | GncPeriodSelect * | period | ) |
Get the current value of the fiscal year end setting from a GncPeriodSelect widget.
If the result is NULL then fiscal years are not currently supported.
period | The GncPeriodSelect widget to query. |
Definition at line 242 of file gnc-period-select.c.
GtkWidget * gnc_period_select_new | ( | gboolean | starting_labels | ) |
Create a new GncPeriodSelect widget which is used to select a accounting period like "previous month" or "this year".
starting_labels | If set to TRUE then all the labels will refer to the "Start of...". If FALSE, labels will refer to "End of...". |
Definition at line 604 of file gnc-period-select.c.
GtkWidget * gnc_period_select_new_glade | ( | gchar * | widget_name, |
gchar * | string1, | ||
gchar * | string2, | ||
gint | int1, | ||
gint | int2 | ||
) |
Create a new GncPeriodSelect widget from a glade file.
The int1 argument passed from glade is used to determine whether the widget uses labels for start times or end times. A non-zero int2 argument indicates that an example date should be shown.
Definition at line 645 of file gnc-period-select.c.
void gnc_period_select_set_active | ( | GncPeriodSelect * | period, |
GncAccountingPeriod | which | ||
) |
Set which item in the GncPeriodSelect is initially selected.
This is used to set the initial selection before the widget is shown to the user.
period | The selection widget to update. |
which | The accounting period that should be selected. |
Definition at line 669 of file gnc-period-select.c.
void gnc_period_select_set_fy_end | ( | GncPeriodSelect * | period, |
const GDate * | fy_end | ||
) |
Set the fiscal year end on a GncPeriodSelect widget.
If set to a value other than NULL then widget will include fiscal accounting period like "this fiscal year".
period | The GncPeriodSelect widget to update. |
fy_end | The new fiscal year end value, or NULL if no fiscal year is set. Note that only the month and day fields need be valid in the provided GDate. |
Definition at line 260 of file gnc-period-select.c.
void gnc_period_select_set_show_date | ( | GncPeriodSelect * | period, |
const gboolean | show_date | ||
) |
Set the "show sample" setting on a GncPeriodSelect widget.
If set to TRUE then a GtkLabel will be used to show the date corresponding to the selected time period.
Definition at line 348 of file gnc-period-select.c.
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 | ||
) |
This function adds a new numeric column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. A numeric column is nothing more then a text column with a few extra attributes.
view | A pointer to a generic GncTreeView. |
column_title | The title for this column. |
pref_name | The internal name of this column. This name is used in several functions to look up the column, and it is also used when saving/restoring the view's state. |
sizing_text | A string used to compute the default width of the column. This text is never displayed. |
model_data_column | The index of the GtkTreeModel data column used to determine the data that will be displayed in this column for each row in the view. Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using an non-model data source for this column. |
model_color_column | The index of the GtkTreeModel data column used to determine the foreground color of any text in this column. It should be used to display negative numbers in red. Use GNC_TREE_VIEW_COLUMN_COLOR_NONE if the text in this column should always be displayed in the default theme color for text. |
model_visibility_column | The index of the GtkTreeModel data column used to determine whether or not a checkbox for each row will be displayed at all. Use GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS if the checkbox should be displayed in all rows. |
column_sort_fn | The function that GtkTreeModelSort will call to compare two rows to determine their displayed order. |
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. If the tree has a state section associated with it, this function also wires up the column so that its visibility and width are remembered. A numeric column is nothing more then a text column with a few extra attributes.
Parameters are defined in gnc-tree-view.h
Definition at line 2059 of file gnc-tree-view.c.
GtkTreeViewColumn* gnc_tree_view_add_pix_column | ( | GncTreeView * | view, |
const gchar * | column_title, | ||
const gchar * | pref_name, | ||
const gchar * | sizing_text, | ||
gint | model_data_column, | ||
gint | model_visibility_column, | ||
GtkTreeIterCompareFunc | column_sort_fn | ||
) |
This function adds a pixbuf view column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn.
view | A pointer to a generic GncTreeView. |
column_title | The title for this column. |
pref_name | The internal name of this column. This name is used in several functions to look up the column, and it is also used when saving/restoring the view's state. |
sizing_text | A string used to compute the default width of the column. This text is never displayed. |
model_data_column | The index of the GtkTreeModel data column used to determine the data that will be displayed in this column for each row in the view. Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using a non-model data source for this column. This index is connected to the "icon-name" attribute of the cell renderer. |
model_visibility_column | The index of the GtkTreeModel data column used to determine whether or not a checkbox for each row will be displayed at all. Use GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS if the checkbox should be displayed in all rows. |
column_sort_fn | The function that GtkTreeModelSort will call to compare two rows to determine their displayed order. |
This function adds a pixbuf view column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. If the tree has a state section associated with it, this function also wires up the column so that its visibility and width are remembered.
Parameters are defined in gnc-tree-view.h
Definition at line 1983 of file gnc-tree-view.c.
GtkTreeViewColumn* gnc_tree_view_add_text_column | ( | GncTreeView * | view, |
const gchar * | column_title, | ||
const gchar * | pref_name, | ||
const gchar * | icon_name, | ||
const gchar * | sizing_text, | ||
gint | model_data_column, | ||
gint | model_visibility_column, | ||
GtkTreeIterCompareFunc | column_sort_fn | ||
) |
This function adds a new text column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn.
view | A pointer to a generic GncTreeView. |
column_title | The title for this column. |
pref_name | The internal name of this column. This name is used in several functions to look up the column, and it is also used when saving/restoring the view's state. |
icon_name | The name of the icon to display to the left of the text in this column. Used for adding icons like the "account" icon to a view. This must be a registered icon, not a filename. |
sizing_text | A string used to compute the default width of the column. This text is never displayed. |
model_data_column | The index of the GtkTreeModel data column used to determine the data that will be displayed in this column for each row in the view. Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using a non-model data source for this column. This index is connected to the "text" attribute of the cell renderer. |
model_visibility_column | The index of the GtkTreeModel data column used to determine whether or not a checkbox for each row will be displayed at all. Use GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS if the checkbox should be displayed in all rows. |
column_sort_fn | The function that GtkTreeModelSort will call to compare two rows to determine their displayed order. |
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. If the tree has a state section associated with it, this function also wires up the column so that its visibility and width are remembered.
Parameters are defined in gnc-tree-view.h
Definition at line 1919 of file gnc-tree-view.c.
GtkTreeViewColumn* gnc_tree_view_add_text_view_column | ( | GncTreeView * | view, |
const gchar * | column_title, | ||
const gchar * | pref_name, | ||
const gchar * | icon_name, | ||
const gchar * | sizing_text, | ||
gint | model_data_column, | ||
gint | model_visibility_column, | ||
GtkTreeIterCompareFunc | column_sort_fn | ||
) |
This function adds a new text view column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn.
view | A pointer to a generic GncTreeView. |
column_title | The title for this column. |
pref_name | The internal name of this column. This name is used in several functions to look up the column, and it is also used when saving/restoring the view's state. |
icon_name | The name of the icon to display to the left of the text in this column. Used for adding icons like the "account" icon to a view. This must be a registered icon, not a filename. |
sizing_text | A string used to compute the default width of the column. This text is never displayed. |
model_data_column | The index of the GtkTreeModel data column used to determine the data that will be displayed in this column for each row in the view. Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using a non-model data source for this column. This index is connected to the "text" attribute of the cell renderer. |
model_visibility_column | The index of the GtkTreeModel data column used to determine whether or not a checkbox for each row will be displayed at all. Use GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS if the checkbox should be displayed in all rows. |
column_sort_fn | The function that GtkTreeModelSort will call to compare two rows to determine their displayed order. |
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. If the tree has a state section associated with it, this function also wires up the column so that its visibility and width are remembered.
Parameters are defined in gnc-tree-view.h
Definition at line 1951 of file gnc-tree-view.c.
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 | ||
) |
This function adds a new toggle column to a GncTreeView base view.
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. It handles creating a tooltip to show the full title name, and setting the sort and edit callback functions.
view | A pointer to a generic GncTreeView. |
column_title | The full title for this column. This will be added as a tooltip what will be displayed when the mouse is hovered over the column title button. |
column_short_title | This is what will actually be displayed as the title of the column. This should be a single character, as anything more will unnecessarily expand the width of the column. |
pref_name | The internal name of this column. This name is used in several functions to look up the column, and it is also used when saving/restoring the view's state. |
model_data_column | The index of the GtkTreeModel data column used to determine whether the displayed checkbox for each row will be show as checked or empty. Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using an non-model data source for this column. |
model_visibility_column | The index of the GtkTreeModel data column used to determine whether or not a checkbox for each row will be displayed at all. Use GNC_TREE_VIEW_COLUMN_VISIBLE_ALWAYS if the checkbox should be displayed in all rows. |
column_sort_fn | The function that GtkTreeModelSort will call to compare two rows to determine their displayed order. |
toggle_edited_cb | The function to call when the user toggles the state of a checkbox. |
It takes all the parameters necessary to hook a GtkTreeModel column to a GtkTreeViewColumn. It handles creating a tooltip to show the full title name, and setting the sort and edit callback functions. If the tree has a state section associated with it, this function also wires up the column so that its visibility and width are remembered.
Parameters are defined in gnc-tree-view.h
Definition at line 1766 of file gnc-tree-view.c.
gint gnc_tree_view_append_column | ( | GncTreeView * | view, |
GtkTreeViewColumn * | column | ||
) |
Add a column to a view based upon a GncTreeView.
This function knows about the two special columns on the right side of this type of view, and adds the new column before these two columns. You could say that it appends to the data columns and ignores the infrastructure columns.
view | A pointer to a generic GncTreeView. |
column | The column to append. |
This function knows about the two special columns on the right side of this type of view, and adds the new column before these two columns. You could say that it appends to the data columns and ignores the infrastructure columns.
Parameters are defined in gnc-tree-view.h
Definition at line 2103 of file gnc-tree-view.c.
GtkCellRenderer* gnc_tree_view_column_get_renderer | ( | GtkTreeViewColumn * | column | ) |
Return the "main" cell renderer from a GtkTreeViewColumn added to a GncTreeView my one of the convenience routines.
column | The tree view column that was added to the GncTreeView |
Definition at line 2032 of file gnc-tree-view.c.
void gnc_tree_view_configure_columns | ( | GncTreeView * | view | ) |
Make all the correct columns visible, respecting their default visibility setting, their "always" visibility setting, and the last saved state if available.
view | A pointer to an gnc tree view. |
Definition at line 1596 of file gnc-tree-view.c.
void gnc_tree_view_expand_columns | ( | GncTreeView * | view, |
gchar * | first_column_name, | ||
... | |||
) |
This function set the columns that will be allocated the free space in the view.
view | The tree view. |
list | of column names. |
Definition at line 1431 of file gnc-tree-view.c.
GtkTreeViewColumn* gnc_tree_view_find_column_by_name | ( | GncTreeView * | view, |
const gchar * | wanted | ||
) |
Find a tree column given the "pref name".
This function simply runs the list of all (visible and invisible) columns looking for a match. Column names were attached to each column at the time the column was created.
view | The visible tree widget. |
wanted | The "pref name" to find. |
Find a tree column given the "pref name".
This function simply runs the list of all (visible and invisible) columns looking for a match. Column names were attached to each column at the time the column was created.
view | The visible tree widget. |
wanted | The "pref name" to find. |
Definition at line 537 of file gnc-tree-view.c.
gboolean gnc_tree_view_get_show_column_menu | ( | GncTreeView * | view | ) |
This function is called to get the current value of the "show-column-menu" property.
It returns the same value passed to gnc_tree_view_set_show_menu_column().
view | The tree view. |
It returns the same value passed to gnc_tree_view_set_show_menu_column().
Parameters are defined in gnc-tree-view.h
Definition at line 1560 of file gnc-tree-view.c.
const gchar* gnc_tree_view_get_state_section | ( | GncTreeView * | view | ) |
This function is called to get the current association between a saved state section and the display of a view.
It returns the same value passed to gnc_tree_view_set_state_section().
view | The tree view. |
This function is called to get the current association between a saved state section and the display of a view.
It returns the same value passed to gnc_tree_view_set_state_section(); i.e. a string like "dialogs/edit_prices".
Parameters are defined in gnc-tree-view.h
Definition at line 1123 of file gnc-tree-view.c.
void gnc_tree_view_remove_state_information | ( | GncTreeView * | view | ) |
This function is called to completely wipe the treeview's state information (column visibility, width, sorting order,..).
This function may be called at any time; either when the user wants to disconnect or when the view object is being destroyed.
view | The tree view. |
This function is called to completely wipe the treeview's state information (column visibility, width, sorting order,..).
This function may be called at any time; either when the user wants to disconnect or when the view object is being destroyed.
view | The tree view. |
Definition at line 981 of file gnc-tree-view.c.
void gnc_tree_view_save_state | ( | GncTreeView * | view | ) |
This function is called to write the treeview's state information (column visibility, width, sorting order,..) to the state file.
view | The tree view. |
Definition at line 1133 of file gnc-tree-view.c.
void gnc_tree_view_set_control_column_background | ( | GncTreeView * | view, |
gint | column, | ||
GtkTreeCellDataFunc | func | ||
) |
This function links the cell backgrounds of the two control columns to a column in the model that has color strings or a cell data function that sets the "cell-background" property.
view | The tree view. |
column | The column in the model containing color strings. |
func | This is a cell data function that sets the "cell-background". |
Definition at line 1500 of file gnc-tree-view.c.
void gnc_tree_view_set_show_column_menu | ( | GncTreeView * | view, |
gboolean | visible | ||
) |
This function is called to set the "show-column-menu" property on this view.
This function has no visible effect if the "state-section" property has not been set.
view | The tree view. |
visible | Create the column selection menu if TRUE. |
This function has no visible effect if the "state-section" property has not been set.
Parameters are defined in gnc-tree-view.h
Definition at line 1539 of file gnc-tree-view.c.
void gnc_tree_view_set_sort_user_data | ( | GncTreeView * | view, |
GtkTreeModel * | s_model | ||
) |
This allows the columns to be setup without the model connected.
view | The tree view. |
sort | model. |
Definition at line 1518 of file gnc-tree-view.c.
void gnc_tree_view_set_state_section | ( | GncTreeView * | view, |
const gchar * | section | ||
) |
This function is called to set up or remove an association between a saved state section and the display of a view.
It will first remove any existing association, and then install the new one.
view | The tree view. |
section | Link the view to this saved state section. Use NULL to disconnect saved state association. |
This function is called to set up or remove an association between a saved state section and the display of a view.
It will first remove any existing association, and then install the new one. If the new section has state information, update the view with this information.
Parameters are defined in gnc-tree-view.h
Definition at line 1008 of file gnc-tree-view.c.
void gnc_ui_close_book | ( | QofBook * | book, |
GtkWindow * | parent | ||
) |
Create and run the dialog to close the book.
book | This parameter specifies the book whose data will be closed. |
parent | This parameter specifies the parent window |
Definition at line 318 of file dialog-book-close.c.
GncOptionsDialog::GncOptionsDialog | ( | bool | modal, |
const char * | title, | ||
const char * | component_class, | ||
GtkWindow * | parent | ||
) |
Constructs a GncOptionsDialog.
Based on the description in the GtkBuilder file. Initializes signals. Two component classes might be used, DIALOG_BOOK_OPTIONS_CM_CLASS or DIALOG_OPTIONS_CM_CLASS of which the latter is the default.
modal | If true the "Apply" button is hidden. It doesn't make the dialog run in its own event loop so it's not truly modal. |
title | The title that will appear in the dialog's title bar. |
component_class | For registering the dialog in the component manager. |
parent | The widget for which the dialog will be transient-for. |
Definition at line 534 of file dialog-options.cpp.
const gchar* end_strings[GNC_ACCOUNTING_PERIOD_LAST] |
Definition at line 78 of file gnc-period-select.c.
const gchar* start_strings[GNC_ACCOUNTING_PERIOD_LAST] |
Definition at line 62 of file gnc-period-select.c.