cpp-project-template 0.0.1.0
C++ Project Template
Loading...
Searching...
No Matches
cpp_proj::MainFrame Class Reference

This class represents the main window. More...

#include <MainFrame.hpp>

Inheritance diagram for cpp_proj::MainFrame:
Collaboration diagram for cpp_proj::MainFrame:

Public Member Functions

 MainFrame (const App &app, const wxString &title, const wxPoint &pos, const wxSize &size)
 Construct a new Main Frame object.
 ~MainFrame () override=default
 MainFrame (const MainFrame &)=delete
MainFrameoperator= (const MainFrame &)=delete
 MainFrame (MainFrame &&)=delete
MainFrameoperator= (MainFrame &&)=delete

Private Member Functions

void OnHello (wxCommandEvent &event)
void OnExit (wxCommandEvent &event)
void OnAbout (wxCommandEvent &event)
 wxDECLARE_EVENT_TABLE ()

Private Attributes

const Appapp_
wxMenu * menuFile_
wxMenu * menuHelp_
wxMenuBar * menuBar_
wxIcon logoIco_

Static Private Attributes

static constexpr int LICENSE_COLUMN_WIDTH = 80
static constexpr int LOGO_FINAL_WIDTH = 114
static constexpr int LOGO_FINAL_HEIGHT = 128

Detailed Description

This class represents the main window.

Constructor & Destructor Documentation

◆ MainFrame() [1/3]

MainFrame::MainFrame ( const App & app,
const wxString & title,
const wxPoint & pos,
const wxSize & size )

Construct a new Main Frame object.

Parameters
[in]app
[in]title
[in]pos
[in]size

◆ ~MainFrame()

cpp_proj::MainFrame::~MainFrame ( )
overridedefault

◆ MainFrame() [2/3]

cpp_proj::MainFrame::MainFrame ( const MainFrame & )
delete

◆ MainFrame() [3/3]

cpp_proj::MainFrame::MainFrame ( MainFrame && )
delete

Member Function Documentation

◆ OnAbout()

void MainFrame::OnAbout ( wxCommandEvent & event)
private

◆ OnExit()

void MainFrame::OnExit ( wxCommandEvent & event)
private

◆ OnHello()

void MainFrame::OnHello ( wxCommandEvent & event)
private

◆ operator=() [1/2]

MainFrame & cpp_proj::MainFrame::operator= ( const MainFrame & )
delete

◆ operator=() [2/2]

MainFrame & cpp_proj::MainFrame::operator= ( MainFrame && )
delete

◆ wxDECLARE_EVENT_TABLE()

cpp_proj::MainFrame::wxDECLARE_EVENT_TABLE ( )
private

Member Data Documentation

◆ app_

const App& cpp_proj::MainFrame::app_
private

◆ LICENSE_COLUMN_WIDTH

int cpp_proj::MainFrame::LICENSE_COLUMN_WIDTH = 80
staticconstexprprivate

◆ LOGO_FINAL_HEIGHT

int cpp_proj::MainFrame::LOGO_FINAL_HEIGHT = 128
staticconstexprprivate

◆ LOGO_FINAL_WIDTH

int cpp_proj::MainFrame::LOGO_FINAL_WIDTH = 114
staticconstexprprivate

◆ logoIco_

wxIcon cpp_proj::MainFrame::logoIco_
private

◆ menuBar_

wxMenuBar* cpp_proj::MainFrame::menuBar_
private

◆ menuFile_

wxMenu* cpp_proj::MainFrame::menuFile_
private

◆ menuHelp_

wxMenu* cpp_proj::MainFrame::menuHelp_
private

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