GnuCash 7574033+
Loading...
Searching...
No Matches
PageFinish Class Reference

Finish page. More...

Public Member Functions

 PageFinish (GtkBuilder *builder)
void prepare (GtkWidget *window, StockAssistantModel *model)

Detailed Description

Finish page.

Displays the List View summarizing the transaction along with any diagnostic messages recorded by the model's logger.

Definition at line 2405 of file assistant-stock-transaction.cpp.

Constructor & Destructor Documentation

◆ PageFinish()

PageFinish::PageFinish ( GtkBuilder * builder)

Definition at line 2416 of file assistant-stock-transaction.cpp.

2416 :
2417 m_page (get_widget (builder, "finish_page")), m_view (builder),
2418 m_summary (get_widget (builder, "finish_summary")) {}

Member Function Documentation

◆ prepare()

void PageFinish::prepare ( GtkWidget * window,
StockAssistantModel * model )

Definition at line 2422 of file assistant-stock-transaction.cpp.

2423{
2424 auto [success, summary, list_of_splits] = model->generate_list_of_splits ();
2425 m_view.load(list_of_splits);
2426 gtk_label_set_text(GTK_LABEL(m_summary), summary.c_str());
2427 gtk_assistant_set_page_complete(GTK_ASSISTANT(window), m_page, success);
2428}
std::tuple< bool, std::string, EntryVec > generate_list_of_splits()
Generate the proposed list of splits.

The documentation for this class was generated from the following file: