Personal Finance 1.0.0
An application that allows you to track/store/view finances, as well as calculate different financial values.
MainWindow Class Reference

The GUI class. More...

#include <MainWindow.h>

Inheritance diagram for MainWindow:

Public Member Functions

 MainWindow ()
 
 MainWindow (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 Constructor inherited from wxWindow. More...
 
void setPathName (wxString path)
 Sets the name of the path defined by the user's input. More...
 
wxString getPathName ()
 Returns the name of the path. More...
 
void OnViewAccountClick (wxCommandEvent &event)
 On the View Account Button Click. More...
 
void OnAccountSelected (wxCommandEvent &event)
 On the Account Selected Event. More...
 
void OnQuit (wxCommandEvent &event)
 Quits the application. More...
 
void OnNewFile (wxCommandEvent &event)
 Opens a file. More...
 
void OnOpenFile (wxCommandEvent &event)
 Opening a file. More...
 
void OnSaveFile (wxCommandEvent &event)
 Save file. More...
 
void OnSaveFileAs (wxCommandEvent &event)
 Save file as. More...
 
void ExitButtonClick (wxCommandEvent &event)
 Event when the Exit Button is pressed. More...
 
void EnterButtonClick (wxCommandEvent &event)
 Event when the Enter Button is clicked. More...
 
void UseExistingAcctClick (wxCommandEvent &event)
 Event when the Existing Account Button is pressed. More...
 
void CreateNewSaveDataClick (wxCommandEvent &event)
 Event when the Create New Save Data button is clicked. More...
 
void OnAccInfoSubmit (wxCommandEvent &event)
 Event when the Submit button is pressed. More...
 
void OnGoToAccHome (wxCommandEvent &event)
 Set current panel to the Account Home Panel. More...
 
void OnUpdateAccClick (wxCommandEvent &event)
 Allows the user to update the current account. More...
 
void OnUpdateName (wxCommandEvent &event)
 Creates a text dialog that allows the user to set the name of the current account. More...
 
void OnUpdateBalance (wxCommandEvent &event)
 Creates a text dialog that allows the user to update the account balance. More...
 
void OnUpdateTransactions (wxCommandEvent &event)
 Creates a text dialog that allows the user to enter a new transaction. More...
 
void OnCreateNewAccount (wxCommandEvent &event)
 Creates a new account. More...
 
void OnSwitchAccount (wxCommandEvent &event)
 Allows the user to switch the account currently being used. More...
 
void OnToolsBtnClick (wxCommandEvent &event)
 
void OnLoanCalculatorClick (wxCommandEvent &event)
 
void OnCreditCardClick (wxCommandEvent &event)
 
void OnDoubleInvestmentClick (wxCommandEvent &event)
 
void OnLeverageRatioClick (wxCommandEvent &event)
 
void OnAverageGrowthClick (wxCommandEvent &event)
 
void OnNowOrLater (wxCommandEvent &event)
 
void OnViewCashFlow (wxCommandEvent &event)
 
void OnAddIncome (wxCommandEvent &event)
 
void OnHomeFromViewPanel (wxCommandEvent &event)
 
virtual ~MainWindow ()
 

Detailed Description

The GUI class.

This class contains all of the functions that all for the application to run with a GUI.

Author
Dawson Dauphinais.

Constructor & Destructor Documentation

◆ MainWindow() [1/2]

MainWindow::MainWindow ( )

◆ MainWindow() [2/2]

MainWindow::MainWindow ( wxWindow *  parent,
wxWindowID  id,
const wxString &  title,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_FRAME_STYLE,
const wxString &  name = wxFrameNameStr 
)

Constructor inherited from wxWindow.

Creates the MainWindow which is inherited from the wxFrame class.

Author
Dawson Dauphinais

◆ ~MainWindow()

virtual MainWindow::~MainWindow ( )
virtual

Member Function Documentation

◆ CreateNewSaveDataClick()

void MainWindow::CreateNewSaveDataClick ( wxCommandEvent &  event)

Event when the Create New Save Data button is clicked.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ EnterButtonClick()

void MainWindow::EnterButtonClick ( wxCommandEvent &  event)

Event when the Enter Button is clicked.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ ExitButtonClick()

void MainWindow::ExitButtonClick ( wxCommandEvent &  event)

Event when the Exit Button is pressed.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ getPathName()

wxString MainWindow::getPathName ( )

Returns the name of the path.

Author
Dawson Dauphinais

◆ OnAccInfoSubmit()

void MainWindow::OnAccInfoSubmit ( wxCommandEvent &  event)

Event when the Submit button is pressed.

Submits the account information when the user clicks Submit.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnAccountSelected()

void MainWindow::OnAccountSelected ( wxCommandEvent &  event)

On the Account Selected Event.

Parameters
eventThe event.
Author
Dawson Dauphinais

◆ OnAddIncome()

void MainWindow::OnAddIncome ( wxCommandEvent &  event)

◆ OnAverageGrowthClick()

void MainWindow::OnAverageGrowthClick ( wxCommandEvent &  event)

◆ OnCreateNewAccount()

void MainWindow::OnCreateNewAccount ( wxCommandEvent &  event)

Creates a new account.

Parameters
eventWhen The Create Account click occurs.
Author
Dawson Dauphinais
See also
Account::setValues(string, Money, map<string, string>)

◆ OnCreditCardClick()

void MainWindow::OnCreditCardClick ( wxCommandEvent &  event)

◆ OnDoubleInvestmentClick()

void MainWindow::OnDoubleInvestmentClick ( wxCommandEvent &  event)

◆ OnGoToAccHome()

void MainWindow::OnGoToAccHome ( wxCommandEvent &  event)

Set current panel to the Account Home Panel.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnHomeFromViewPanel()

void MainWindow::OnHomeFromViewPanel ( wxCommandEvent &  event)

◆ OnLeverageRatioClick()

void MainWindow::OnLeverageRatioClick ( wxCommandEvent &  event)

◆ OnLoanCalculatorClick()

void MainWindow::OnLoanCalculatorClick ( wxCommandEvent &  event)

◆ OnNewFile()

void MainWindow::OnNewFile ( wxCommandEvent &  event)

Opens a file.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnNowOrLater()

void MainWindow::OnNowOrLater ( wxCommandEvent &  event)

◆ OnOpenFile()

void MainWindow::OnOpenFile ( wxCommandEvent &  event)

Opening a file.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnQuit()

void MainWindow::OnQuit ( wxCommandEvent &  event)

Quits the application.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnSaveFile()

void MainWindow::OnSaveFile ( wxCommandEvent &  event)

Save file.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnSaveFileAs()

void MainWindow::OnSaveFileAs ( wxCommandEvent &  event)

Save file as.

Author
Dawson Dauphinais
Parameters
eventthe event.

◆ OnSwitchAccount()

void MainWindow::OnSwitchAccount ( wxCommandEvent &  event)

Allows the user to switch the account currently being used.

Parameters
eventWhen the Switch Account Button is clicked.
Author
Dawson Dauphinais
See also
fromJSON(nlohmann::json, Account, string)

◆ OnToolsBtnClick()

void MainWindow::OnToolsBtnClick ( wxCommandEvent &  event)

◆ OnUpdateAccClick()

void MainWindow::OnUpdateAccClick ( wxCommandEvent &  event)

Allows the user to update the current account.

Parameters
eventWhen the Update Account Button is clicked.
Author
Dawson Dauphinais
See also
Account::getNameOfAccount() Account::setName() saveData() Account::setBalance() Account::getBalance() Account::addTransaction(Expense e)

◆ OnUpdateBalance()

void MainWindow::OnUpdateBalance ( wxCommandEvent &  event)

Creates a text dialog that allows the user to update the account balance.

Parameters
eventThe text dialog event.
Author
Dawson Dauphinais

◆ OnUpdateName()

void MainWindow::OnUpdateName ( wxCommandEvent &  event)

Creates a text dialog that allows the user to set the name of the current account.

Parameters
eventThe text dialog event.
Author
Dawson Dauphinais

◆ OnUpdateTransactions()

void MainWindow::OnUpdateTransactions ( wxCommandEvent &  event)

Creates a text dialog that allows the user to enter a new transaction.

Parameters
eventThe text dialog event(s);
Author
Dawson Dauphinais

◆ OnViewAccountClick()

void MainWindow::OnViewAccountClick ( wxCommandEvent &  event)

On the View Account Button Click.

Parameters
eventThe click event.
Author
Dawson Dauphinais

◆ OnViewCashFlow()

void MainWindow::OnViewCashFlow ( wxCommandEvent &  event)

◆ setPathName()

void MainWindow::setPathName ( wxString  path)

Sets the name of the path defined by the user's input.

Parameters
pathThe path.
Author
Dawson Dauphinais

◆ UseExistingAcctClick()

void MainWindow::UseExistingAcctClick ( wxCommandEvent &  event)

Event when the Existing Account Button is pressed.

Author
Dawson Dauphinais
Parameters
eventthe event.