GnuCash c935c2f+
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
assistant-csv-account-import.h File Reference

CSV Import Assistant. More...

Go to the source code of this file.

Data Structures

struct  CsvImportInfo
 

Enumerations

enum  tree_import_model_columns {
  TYPE , FULL_NAME , NAME , CODE ,
  DESCRIPTION , COLOR , NOTES , SYMBOL ,
  NAMESPACE , HIDDEN , TAX , PLACE_HOLDER ,
  ROW_COLOR , N_COLUMNS
}
 

Functions

void gnc_file_csv_account_import (void)
 The gnc_file_csv_account_import() will let the user import accounts from a delimited file.
 

Detailed Description

CSV Import Assistant.

Author
Copyright (c) 2011 Robert Fewell

Definition in file assistant-csv-account-import.h.

Enumeration Type Documentation

◆ tree_import_model_columns

enum tree_import_model_columns

Definition at line 33 of file assistant-csv-account-import.h.

34{
35 TYPE, FULL_NAME, NAME, CODE, DESCRIPTION, COLOR,
36 NOTES, SYMBOL, NAMESPACE, HIDDEN, TAX, PLACE_HOLDER, ROW_COLOR,
37 N_COLUMNS
38};

Function Documentation

◆ gnc_file_csv_account_import()

void gnc_file_csv_account_import ( void  )

The gnc_file_csv_account_import() will let the user import accounts from a delimited file.

Definition at line 672 of file assistant-csv-account-import.c.

673{
674 CsvImportInfo *info;
675
676 info = g_new0 (CsvImportInfo, 1);
677
678 /* In order to trigger a book options display on the creation of a new book,
679 * we need to detect when we are dealing with a new book. */
680 info->new_book = gnc_is_new_book();
681
682 csv_import_assistant_create (info);
683
684 gnc_register_gui_component (ASSISTANT_CSV_IMPORT_CM_CLASS,
685 NULL, csv_import_close_handler,
686 info);
687
688 gtk_widget_show_all (info->assistant);
689
690 gnc_window_adjust_for_screen (GTK_WINDOW(info->assistant));
691}