Invoice++
Loading...
Searching...
No Matches
MainWindow Class Reference

main application window More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 

Public Attributes

QWidget * centralwidget
 
QVBoxLayout * verticalLayout
 
QHBoxLayout * representatives_layout
 
QVBoxLayout * sender_layout
 
QLabel * sender_label
 
representativeWidgetsender
 
QSpacerItem * recipients_spacer
 
QVBoxLayout * recipient_layout
 
QLabel * recipient_label
 
representativeWidgetrecipient
 
QHBoxLayout * number_date_horizontal
 
textInputWidgetinvoice_number
 
dateInputWidgetinvoice_service_date
 
textInputWidgetinvoice_title
 
QLabel * footer_label
 
QHBoxLayout * banking_horizontal
 
textInputWidgetiban
 
textInputWidgetbic
 
textInputWidgettax_number
 
QHBoxLayout * product_label_create_horizontal
 
QLabel * products_label
 
QListWidget * productList
 
QPushButton * add_product_button
 
QSpacerItem * add_product_button_space_right
 
QHBoxLayout * generate_invoice_button_center_layout
 
QSpacerItem * generate_invoice_button_space_left
 
QPushButton * generate_invoice_button
 
QSpacerItem * generate_invoice_button_space_right
 

Private Slots

void addProductWidget ()
 helper function to add a product widget to the productList widget
 
void removeProductWidget (const productWidget *widget) const
 helper function to remove a product widget from the productList widget
 
void generateInvoice ()
 helper function to generate the PDF invoice
 

Private Member Functions

std::list< std::string > checkForMissingFields () const
 function checking for missing required fields
 

Detailed Description

main application window

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addProductWidget

void MainWindow::addProductWidget ( )
privateslot

helper function to add a product widget to the productList widget

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkForMissingFields()

std::list< std::string > MainWindow::checkForMissingFields ( ) const
private

function checking for missing required fields

Returns
list with error messages of missing fields
Here is the caller graph for this function:

◆ generateInvoice

void MainWindow::generateInvoice ( )
privateslot

helper function to generate the PDF invoice

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeProductWidget

void MainWindow::removeProductWidget ( const productWidget * widget) const
privateslot

helper function to remove a product widget from the productList widget

Here is the caller graph for this function:

Member Data Documentation

◆ add_product_button

QPushButton* MainWindow::add_product_button

◆ add_product_button_space_right

QSpacerItem* MainWindow::add_product_button_space_right

◆ banking_horizontal

QHBoxLayout* MainWindow::banking_horizontal

◆ bic

textInputWidget* MainWindow::bic

◆ centralwidget

QWidget* MainWindow::centralwidget

◆ footer_label

QLabel* MainWindow::footer_label

◆ generate_invoice_button

QPushButton* MainWindow::generate_invoice_button

◆ generate_invoice_button_center_layout

QHBoxLayout* MainWindow::generate_invoice_button_center_layout

◆ generate_invoice_button_space_left

QSpacerItem* MainWindow::generate_invoice_button_space_left

◆ generate_invoice_button_space_right

QSpacerItem* MainWindow::generate_invoice_button_space_right

◆ iban

textInputWidget* MainWindow::iban

◆ invoice_number

textInputWidget* MainWindow::invoice_number

◆ invoice_service_date

dateInputWidget* MainWindow::invoice_service_date

◆ invoice_title

textInputWidget* MainWindow::invoice_title

◆ number_date_horizontal

QHBoxLayout* MainWindow::number_date_horizontal

◆ product_label_create_horizontal

QHBoxLayout* MainWindow::product_label_create_horizontal

◆ productList

QListWidget* MainWindow::productList

◆ products_label

QLabel* MainWindow::products_label

◆ recipient

representativeWidget* MainWindow::recipient

◆ recipient_label

QLabel* MainWindow::recipient_label

◆ recipient_layout

QVBoxLayout* MainWindow::recipient_layout

◆ recipients_spacer

QSpacerItem* MainWindow::recipients_spacer

◆ representatives_layout

QHBoxLayout* MainWindow::representatives_layout

◆ sender

representativeWidget* MainWindow::sender

◆ sender_label

QLabel* MainWindow::sender_label

◆ sender_layout

QVBoxLayout* MainWindow::sender_layout

◆ tax_number

textInputWidget* MainWindow::tax_number

◆ verticalLayout

QVBoxLayout* MainWindow::verticalLayout

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