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

Represents the entire disassembly window in the overall KoMo2 GUI. Contains several rows of memory values, buttons for navigation, and buttons for debugging. This class inherits from EventBox, which allows for interception of scroll events, and therefore programmer defined handling of these events. This handling of scroll events is done in the function handleScroll. More...

#include <DisassemblyView.h>

Inheritance diagram for DisassemblyView:

Public Member Functions

 DisassemblyView (MainWindowView *const parent)
 Construct a new DisassemblyView::DisassemblyView object. More...
 
void setModel (DisassemblyModel *const val)
 Sets the value of the model member. More...
 
DisassemblyModel *const getModel () const
 Gets a constant pointer to the model member. More...
 
std::vector< DisassemblyRows > *const getRows ()
 Gets a pointer to the rows of views. More...
 
MainWindowView *const getParent () const
 Return a constant pointer to the parent member. More...
 

Private Member Functions

void initDisassemblyContainer ()
 Initialises the containers & their children - packs children into containers, sets sizes and layouts, adds a CSS class.
 
void initDisassemblyRows ()
 Packs the 13 disassemblyRows into their container and gives them a pointer to the DisassemblyModel object.
 
 DisassemblyView (const DisassemblyView &)=delete
 
 DisassemblyView (const DisassemblyView &&)=delete
 
DisassemblyViewoperator= (const DisassemblyView &)=delete
 
DisassemblyViewoperator= (const DisassemblyView &&)=delete
 

Private Attributes

MainWindowView *const parent
 A pointer to the parent view.
 
DisassemblyModelmodel
 A pointer to the related model.
 
Gtk::VButtonBox disassemblyContainer
 A container for the disassembly rows.
 
std::vector< DisassemblyRowsrows {std::vector<DisassemblyRows>(13)}
 An array of row views. Each array entry represents a row of memory values within the memory window.
 

Detailed Description

Represents the entire disassembly window in the overall KoMo2 GUI. Contains several rows of memory values, buttons for navigation, and buttons for debugging. This class inherits from EventBox, which allows for interception of scroll events, and therefore programmer defined handling of these events. This handling of scroll events is done in the function handleScroll.

Definition at line 101 of file DisassemblyView.h.

Constructor & Destructor Documentation

DisassemblyView::DisassemblyView ( MainWindowView *const  parent)

Construct a new DisassemblyView::DisassemblyView object.

Parameters
parentA pointer to this views parent, set during initialisation.

Definition at line 18 of file DisassemblyView.cpp.

Member Function Documentation

DisassemblyModel *const DisassemblyView::getModel ( ) const

Gets a constant pointer to the model member.

Returns
DisassemblyModel* const A constant pointer to the model member.

Definition at line 69 of file DisassemblyView.cpp.

MainWindowView *const DisassemblyView::getParent ( ) const

Return a constant pointer to the parent member.

Returns
MainWindowView* const A constat pointer to the parent member.

Definition at line 76 of file DisassemblyView.cpp.

std::vector< DisassemblyRows > *const DisassemblyView::getRows ( )

Gets a pointer to the rows of views.

Returns
std::vector<DisassemblyRows>* const A pointer to the vector of rows.

Definition at line 55 of file DisassemblyView.cpp.

void DisassemblyView::setModel ( DisassemblyModel *const  val)

Sets the value of the model member.

Parameters
valThe value to set the model member to.

Definition at line 62 of file DisassemblyView.cpp.


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