GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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, COMMODITYM,
  COMMODITYN, HIDDEN, TAX, PLACE_HOLDER,
  ROW_COLOR, N_COLUMNS
}
 

Functions

void gnc_file_csv_account_import (void)
 

Detailed Description

CSV Import Assistant.

Author
Copyright (c) 2011 Robert Fewell

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

Function Documentation

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 686 of file assistant-csv-account-import.c.

687 {
688  CsvImportInfo *info;
689 
690  info = g_new0 (CsvImportInfo, 1);
691 
692  /* In order to trigger a book options display on the creation of a new book,
693  * we need to detect when we are dealing with a new book. */
694  info->new_book = gnc_is_new_book();
695 
696  csv_import_assistant_create (info);
697 
698  gnc_register_gui_component (ASSISTANT_CSV_IMPORT_CM_CLASS,
699  NULL, csv_import_close_handler,
700  info);
701 
702  gtk_widget_show_all (info->window);
703 
704  gnc_window_adjust_for_screen (GTK_WINDOW(info->window));
705 }