31 scroll.set_size_request(948, 150);
32 scroll.get_accessible()->set_name(
"Terminal output");
41 clearButton.get_style_context()->add_class(
"compButtons");
44 "Clears the terminal of any logged information.");
45 clearButton.set_tooltip_text(
"Clear the terminal output pane");
53 textView.get_style_context()->add_class(
"terminalDisplay");
54 textView.set_wrap_mode(Gtk::WRAP_WORD_CHAR);
57 textView.get_accessible()->set_name(
"Terminal output window");
58 textView.set_tooltip_text(
"Emulator output is logged here");
66 inputBox.get_style_context()->add_class(
"terminalInput");
67 inputBox.get_accessible()->set_name(
"Terminal input window");
68 inputBox.set_tooltip_text(
"Text input here is sent to the emulator");
78 pack_start(
scroll,
true,
true);
79 pack_start(
layout,
true,
true);
void initScrollView()
Initialises the scroll view.
void packChildren()
Pack all of the child elements together and show them.
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::Entry *const getInputBox()
Returns a constant pointer to the input box.
Represents any data or functions related to the information, or manipulation of the information...
TerminalView(MainWindowView *const parent)
Construct a new TerminalView::TerminalView object.
Gtk::TextView textView
A TextView which displays any output from Jimulator and KoMo2.
void initClearButton()
Initialises the clear button.
Gtk::Button *const getClearButton()
Returns a constant pointer to the clear button.
void setModel(TerminalModel *const val)
Sets the model member.
void initInputBox()
Initialises the input box.
Gtk::Entry inputBox
An input box which directly pipes information into Jimulator.
Gtk::TextView *const getTextView()
Returns a constant pointer to the output box.
The class definition of the main window of the program. This main window is the mater view of the pro...
Gtk::HButtonBox layout
A layout which allows for the inputBox and clearButton to be placed side-by-side. ...
Declares the TerminalView class, which is an element of the KoMo2 GUI which represents the input & ou...
void initTextView()
Initialises the output box.
TerminalModel * model
A pointer to the related model.