KoMo2  1.0.0
A modern ARM emulator GUI.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MainWindowView Class Reference

The class definition of the main window of the program. This main window is the mater view of the program. Within this class are all of the child views, controllers, and a pointer to the master model, as keeping with MVC. More...

#include <MainWindowView.h>

Inheritance diagram for MainWindowView:

Public Member Functions

 MainWindowView (const int x, const int y)
 Construct a new MainWindowView object. More...
 
void setModel (KoMo2Model *const val)
 Sets the model member variable. More...
 
KoMo2Model *const getModel () const
 Gets the model member variable. More...
 
CompileLoadView *const getCompileLoadView ()
 Get the CompileLoadView. More...
 
ControlsView *const getControlsView ()
 Get the ControlsView. More...
 
RegistersView *const getRegistersView ()
 Returns a pointer to the registersView object. More...
 
TerminalView *const getTerminalView ()
 Get the TerminalView. More...
 
DisassemblyView *const getDisassemblyView ()
 Get the DisassemblyView. More...
 
void setStyling ()
 Sets the style attributes for the views - namely any icons and CSS.
 

Private Member Functions

Gtk::HButtonBox *const getControlsAndCompileBar ()
 Gets the controlsAndCompileBar layout. More...
 
Gtk::HButtonBox *const getRegistersAndDisassemblyBar ()
 Gets the registersAndSiassemblyBar layout. More...
 
Gtk::Box *const getMasterLayout ()
 Gets the masterLayout layout. More...
 
void initControlsAndCompileBar ()
 Initialise the controls and compile bar.
 
void initRegistersAndDisassemblyBar ()
 Initialise the registers and disassembly bar.
 
void initMasterLayout ()
 Initialise the master layout.
 
 MainWindowView (const MainWindowView &)=delete
 
 MainWindowView (const MainWindowView &&)=delete
 
MainWindowViewoperator= (const MainWindowView &)=delete
 
MainWindowViewoperator= (const MainWindowView &&)=delete
 

Private Attributes

Gtk::Box masterLayout
 The master layout - every other view or layout should be nested within this layout.
 
Gtk::HButtonBox controlsAndCompileBar
 The layout for the top bar running along the screen. Contains the compile and load layout, and the program controls layout.
 
Gtk::HButtonBox registersAndDisassemblyBar
 The container that contains the source/disassembly view and the registers view.
 
CompileLoadView compileLoadView
 A box containing the browse button, the compile and load button, and the selected file label.
 
ControlsView controlsView
 A box containing all of the programs running controls.
 
RegistersView registersView
 A box containing all of the registers.
 
TerminalView terminalView
 A box contaning the input/output terminal.
 
DisassemblyView disassemblyView
 A box containing the disassembly and source views.
 
KoMo2Modelmodel
 A pointer to the main model of the program.
 

Detailed Description

The class definition of the main window of the program. This main window is the mater view of the program. Within this class are all of the child views, controllers, and a pointer to the master model, as keeping with MVC.

Definition at line 31 of file MainWindowView.h.

Constructor & Destructor Documentation

MainWindowView::MainWindowView ( const int  x,
const int  y 
)

Construct a new MainWindowView object.

Parameters
xThe width of the window.
yThe height of the window.

Definition at line 23 of file MainWindowView.cpp.

Member Function Documentation

CompileLoadView *const MainWindowView::getCompileLoadView ( )

Get the CompileLoadView.

Returns
CompileLoadView* A pointer to the compileLoadView.

Definition at line 117 of file MainWindowView.cpp.

Gtk::HButtonBox *const MainWindowView::getControlsAndCompileBar ( )
private

Gets the controlsAndCompileBar layout.

Returns
Gtk::HButtonBox* const The controlsAndCompileBar layout.

Definition at line 159 of file MainWindowView.cpp.

ControlsView *const MainWindowView::getControlsView ( )

Get the ControlsView.

Returns
ControlsView* A pointer to the controlsView.

Definition at line 124 of file MainWindowView.cpp.

DisassemblyView *const MainWindowView::getDisassemblyView ( )

Get the DisassemblyView.

Returns
ControlsView* A pointer to the controlsView.

Definition at line 138 of file MainWindowView.cpp.

Gtk::Box *const MainWindowView::getMasterLayout ( )
private

Gets the masterLayout layout.

Returns
Gtk::VButtonBox* const The masterLayout layout.

Definition at line 173 of file MainWindowView.cpp.

KoMo2Model *const MainWindowView::getModel ( ) const

Gets the model member variable.

Returns
KoMo2Model* A pointer to the model member variable.

Definition at line 145 of file MainWindowView.cpp.

Gtk::HButtonBox *const MainWindowView::getRegistersAndDisassemblyBar ( )
private

Gets the registersAndSiassemblyBar layout.

Returns
Gtk::HButtonBox* const The registersAndSiassemblyBar layout.

Definition at line 166 of file MainWindowView.cpp.

RegistersView *const MainWindowView::getRegistersView ( )

Returns a pointer to the registersView object.

Returns
RegistersView* const The registersView object.

Definition at line 110 of file MainWindowView.cpp.

TerminalView *const MainWindowView::getTerminalView ( )

Get the TerminalView.

Returns
ControlsView* A pointer to the controlsView.

Definition at line 131 of file MainWindowView.cpp.

void MainWindowView::setModel ( KoMo2Model *const  val)

Sets the model member variable.

Parameters
valThe pointer to set the model member variable to.

Definition at line 152 of file MainWindowView.cpp.


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