GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
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 2404 of file assistant-stock-transaction.cpp.

Constructor & Destructor Documentation

◆ PageFinish()

PageFinish::PageFinish ( GtkBuilder *  builder)

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

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

Member Function Documentation

◆ prepare()

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

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

2422{
2423 auto [success, summary, list_of_splits] = model->generate_list_of_splits ();
2424 m_view.load(list_of_splits);
2425 gtk_label_set_text(GTK_LABEL(m_summary), summary.c_str());
2426 gtk_assistant_set_page_complete(GTK_ASSISTANT(window), m_page, success);
2427}
void load(const EntryVec &list_of_splits)
Extract the information from the StockTransactionEntries in the vector created by the model's make_li...
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: