![]() |
KoMo2
1.0.0
A modern ARM emulator GUI.
|
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>
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 | |
| MainWindowView & | operator= (const MainWindowView &)=delete |
| MainWindowView & | operator= (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. | |
| KoMo2Model * | model |
| A pointer to the main model of the program. | |
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.
| MainWindowView::MainWindowView | ( | const int | x, |
| const int | y | ||
| ) |
Construct a new MainWindowView object.
| x | The width of the window. |
| y | The height of the window. |
Definition at line 23 of file MainWindowView.cpp.
| CompileLoadView *const MainWindowView::getCompileLoadView | ( | ) |
Get the CompileLoadView.
Definition at line 117 of file MainWindowView.cpp.
|
private |
Gets the controlsAndCompileBar layout.
Definition at line 159 of file MainWindowView.cpp.
| ControlsView *const MainWindowView::getControlsView | ( | ) |
Get the ControlsView.
Definition at line 124 of file MainWindowView.cpp.
| DisassemblyView *const MainWindowView::getDisassemblyView | ( | ) |
Get the DisassemblyView.
Definition at line 138 of file MainWindowView.cpp.
|
private |
Gets the masterLayout layout.
Definition at line 173 of file MainWindowView.cpp.
| KoMo2Model *const MainWindowView::getModel | ( | ) | const |
Gets the model member variable.
model member variable. Definition at line 145 of file MainWindowView.cpp.
|
private |
Gets the registersAndSiassemblyBar layout.
Definition at line 166 of file MainWindowView.cpp.
| RegistersView *const MainWindowView::getRegistersView | ( | ) |
Returns a pointer to the registersView object.
Definition at line 110 of file MainWindowView.cpp.
| TerminalView *const MainWindowView::getTerminalView | ( | ) |
Get the TerminalView.
Definition at line 131 of file MainWindowView.cpp.
| void MainWindowView::setModel | ( | KoMo2Model *const | val | ) |
Sets the model member variable.
| val | The pointer to set the model member variable to. |
Definition at line 152 of file MainWindowView.cpp.
1.8.11