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

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>

Inheritance diagram for TerminalView:

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
 
TerminalViewoperator= (const TerminalView &)=delete
 
TerminalViewoperator= (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.
 
MainWindowViewparent
 A pointer to the parent view.
 
TerminalModelmodel
 A pointer to the related model.
 

Detailed Description

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.

Constructor & Destructor Documentation

TerminalView::TerminalView ( MainWindowView *const  parent)

Construct a new TerminalView::TerminalView object.

Parameters
parentA constant pointer to the parent view.

Definition at line 19 of file TerminalView.cpp.

Member Function Documentation

Gtk::Button *const TerminalView::getClearButton ( )

Returns a constant pointer to the clear button.

Returns
Gtk::Button* const 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.

Returns
Gtk::Entry* const 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.

Returns
Gtk::TextView* const 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.

Parameters
valThe value to set the model member to.

Definition at line 93 of file TerminalView.cpp.


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