The GUI class. More...
#include <MainWindow.h>
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 () |
The GUI class.
This class contains all of the functions that all for the application to run with a GUI.
MainWindow::MainWindow | ( | ) |
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.
|
virtual |
void MainWindow::CreateNewSaveDataClick | ( | wxCommandEvent & | event | ) |
Event when the Create New Save Data button is clicked.
event | the event. |
void MainWindow::EnterButtonClick | ( | wxCommandEvent & | event | ) |
Event when the Enter Button is clicked.
event | the event. |
void MainWindow::ExitButtonClick | ( | wxCommandEvent & | event | ) |
Event when the Exit Button is pressed.
event | the event. |
wxString MainWindow::getPathName | ( | ) |
Returns the name of the path.
void MainWindow::OnAccInfoSubmit | ( | wxCommandEvent & | event | ) |
Event when the Submit button is pressed.
Submits the account information when the user clicks Submit.
event | the event. |
void MainWindow::OnAccountSelected | ( | wxCommandEvent & | event | ) |
On the Account Selected Event.
event | The event. |
void MainWindow::OnAddIncome | ( | wxCommandEvent & | event | ) |
void MainWindow::OnAverageGrowthClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnCreateNewAccount | ( | wxCommandEvent & | event | ) |
Creates a new account.
event | When The Create Account click occurs. |
void MainWindow::OnCreditCardClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnDoubleInvestmentClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnGoToAccHome | ( | wxCommandEvent & | event | ) |
Set current panel to the Account Home Panel.
event | the event. |
void MainWindow::OnHomeFromViewPanel | ( | wxCommandEvent & | event | ) |
void MainWindow::OnLeverageRatioClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnLoanCalculatorClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnNewFile | ( | wxCommandEvent & | event | ) |
Opens a file.
event | the event. |
void MainWindow::OnNowOrLater | ( | wxCommandEvent & | event | ) |
void MainWindow::OnOpenFile | ( | wxCommandEvent & | event | ) |
Opening a file.
event | the event. |
void MainWindow::OnQuit | ( | wxCommandEvent & | event | ) |
Quits the application.
event | the event. |
void MainWindow::OnSaveFile | ( | wxCommandEvent & | event | ) |
Save file.
event | the event. |
void MainWindow::OnSaveFileAs | ( | wxCommandEvent & | event | ) |
Save file as.
event | the event. |
void MainWindow::OnSwitchAccount | ( | wxCommandEvent & | event | ) |
Allows the user to switch the account currently being used.
event | When the Switch Account Button is clicked. |
void MainWindow::OnToolsBtnClick | ( | wxCommandEvent & | event | ) |
void MainWindow::OnUpdateAccClick | ( | wxCommandEvent & | event | ) |
Allows the user to update the current account.
event | When the Update Account Button is clicked. |
void MainWindow::OnUpdateBalance | ( | wxCommandEvent & | event | ) |
Creates a text dialog that allows the user to update the account balance.
event | The text dialog event. |
void MainWindow::OnUpdateName | ( | wxCommandEvent & | event | ) |
Creates a text dialog that allows the user to set the name of the current account.
event | The text dialog event. |
void MainWindow::OnUpdateTransactions | ( | wxCommandEvent & | event | ) |
Creates a text dialog that allows the user to enter a new transaction.
event | The text dialog event(s); |
void MainWindow::OnViewAccountClick | ( | wxCommandEvent & | event | ) |
On the View Account Button Click.
event | The click event. |
void MainWindow::OnViewCashFlow | ( | wxCommandEvent & | event | ) |
void MainWindow::setPathName | ( | wxString | path | ) |
Sets the name of the path defined by the user's input.
path | The path. |
void MainWindow::UseExistingAcctClick | ( | wxCommandEvent & | event | ) |
Event when the Existing Account Button is pressed.
event | the event. |