![]() |
KoMo2
1.0.0
A modern ARM emulator GUI.
|
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>
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 | |
| DisassemblyView & | operator= (const DisassemblyView &)=delete |
| DisassemblyView & | operator= (const DisassemblyView &&)=delete |
Private Attributes | |
| MainWindowView *const | parent |
| A pointer to the parent view. | |
| DisassemblyModel * | model |
| A pointer to the related model. | |
| Gtk::VButtonBox | disassemblyContainer |
| A container for the disassembly rows. | |
| std::vector< DisassemblyRows > | rows {std::vector<DisassemblyRows>(13)} |
| An array of row views. Each array entry represents a row of memory values within the memory window. | |
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.
| DisassemblyView::DisassemblyView | ( | MainWindowView *const | parent | ) |
Construct a new DisassemblyView::DisassemblyView object.
| parent | A pointer to this views parent, set during initialisation. |
Definition at line 18 of file DisassemblyView.cpp.
| DisassemblyModel *const DisassemblyView::getModel | ( | ) | const |
Gets 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.
Definition at line 76 of file DisassemblyView.cpp.
| std::vector< DisassemblyRows > *const DisassemblyView::getRows | ( | ) |
Gets a pointer to the rows of views.
Definition at line 55 of file DisassemblyView.cpp.
| void DisassemblyView::setModel | ( | DisassemblyModel *const | val | ) |
Sets the value of the model member.
| val | The value to set the model member to. |
Definition at line 62 of file DisassemblyView.cpp.
1.8.11