![]() |
KoMo2
1.0.0
A modern ARM emulator GUI.
|
The GUI element which encapsulates the "clear" button, the output text box, and the input text box at the bottom of the KoMo2 GUI. More...
#include <TerminalView.h>
Public Member Functions | |
| TerminalView (MainWindowView *const parent) | |
| Construct a new TerminalView::TerminalView object. More... | |
| void | setModel (TerminalModel *const val) |
| Sets the model member. More... | |
| Gtk::TextView *const | getTextView () |
| Returns a constant pointer to the output box. More... | |
| Gtk::Button *const | getClearButton () |
| Returns a constant pointer to the clear button. More... | |
| Gtk::Entry *const | getInputBox () |
| Returns a constant pointer to the input box. More... | |
Private Member Functions | |
| void | initClearButton () |
| Initialises the clear button. | |
| void | initTextView () |
| Initialises the output box. | |
| void | initInputBox () |
| Initialises the input box. | |
| void | initScrollView () |
| Initialises the scroll view. | |
| void | packChildren () |
| Pack all of the child elements together and show them. | |
| TerminalView (const TerminalView &)=delete | |
| TerminalView (const TerminalView &&)=delete | |
| TerminalView & | operator= (const TerminalView &)=delete |
| TerminalView & | operator= (const TerminalView &&)=delete |
Private Attributes | |
| Gtk::Button | clearButton |
| The button which clears the terminal when clicked. | |
| Gtk::ScrolledWindow | scroll |
A container class for the textView member, which allows the text box to be scrolled. | |
| Gtk::TextView | textView |
| A TextView which displays any output from Jimulator and KoMo2. | |
| Gtk::Entry | inputBox |
| An input box which directly pipes information into Jimulator. | |
| Gtk::HButtonBox | layout |
| A layout which allows for the inputBox and clearButton to be placed side-by-side. | |
| MainWindowView * | parent |
| A pointer to the parent view. | |
| TerminalModel * | model |
| A pointer to the related model. | |
The GUI element which encapsulates the "clear" button, the output text box, and the input text box at the bottom of the KoMo2 GUI.
Definition at line 25 of file TerminalView.h.
| TerminalView::TerminalView | ( | MainWindowView *const | parent | ) |
Construct a new TerminalView::TerminalView object.
| parent | A constant pointer to the parent view. |
Definition at line 19 of file TerminalView.cpp.
| Gtk::Button *const TerminalView::getClearButton | ( | ) |
Returns a constant pointer to the clear button.
Definition at line 100 of file TerminalView.cpp.
| Gtk::Entry *const TerminalView::getInputBox | ( | ) |
Returns a constant pointer to the input box.
Definition at line 114 of file TerminalView.cpp.
| Gtk::TextView *const TerminalView::getTextView | ( | ) |
Returns a constant pointer to the output box.
Definition at line 107 of file TerminalView.cpp.
| void TerminalView::setModel | ( | TerminalModel *const | val | ) |
Sets the model member.
| val | The value to set the model member to. |
Definition at line 93 of file TerminalView.cpp.
1.8.11