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

This class represents the visual aspects that make up the compile & load section of the KoMo2 GUI. This means that this describes layout and visual information, but contains little or no logical information or functionality. More...

#include <CompileLoadView.h>

Inheritance diagram for CompileLoadView:

Public Member Functions

 CompileLoadView (MainWindowView *const parent)
 Construct a new CompileLoadView. More...
 
Gtk::Button *const getCompileAndLoadButton ()
 Gets the compileAndLoadButton member variable. More...
 
Gtk::Button *const getBrowseButton ()
 Gets the browseButton member variable. More...
 
Gtk::Label *const getSelectedFileLabel ()
 Gets the selectedFileLabel member variable. More...
 
void setSelectedFileLabelText (const std::string val)
 Sets the text displayed by the selectedFileLabel member variable. More...
 
void setModel (CompileLoadModel *const val)
 Set the model pointer. More...
 

Private Member Functions

void initSelectAndLoadContainer ()
 Packs children into the compileLoadView, and sets its layout and size.
 
void initBrowseButton ()
 Sets up the initial information about the browse file button.
 
void initCompileAndLoadButton ()
 Sets up the initial information about the compile & load button.
 
void initSelectedFileLabel ()
 Sets up the initial information about the selected file label.
 
 CompileLoadView (const CompileLoadView &)=delete
 
 CompileLoadView (const CompileLoadView &&)=delete
 
CompileLoadViewoperator= (const CompileLoadView &)=delete
 
CompileLoadViewoperator= (const CompileLoadView &&)=delete
 

Private Attributes

MainWindowView *const parent
 A pointer to the parent view.
 
CompileLoadModelmodel
 A pointer to the related model.
 
Gtk::Label selectedFileLabel
 A label which displays whatever file has been selected by the browse button, to be compiled & loaded.
 
Gtk::Button compileAndLoadButton
 A button which, when clicked, will read a .s file, compile it to .kmd, and the load it into Jimulator.
 
Gtk::Button browseButton
 A button which allows you to browse the file system for .s files.
 

Detailed Description

This class represents the visual aspects that make up the compile & load section of the KoMo2 GUI. This means that this describes layout and visual information, but contains little or no logical information or functionality.

Definition at line 22 of file CompileLoadView.h.

Constructor & Destructor Documentation

CompileLoadView::CompileLoadView ( MainWindowView *const  parent)

Construct a new CompileLoadView.

Parameters
parentA pointer to the parent.

Definition at line 16 of file CompileLoadView.cpp.

Member Function Documentation

Gtk::Button *const CompileLoadView::getBrowseButton ( )

Gets the browseButton member variable.

Returns
Gtk::Button* A pointer to the browseButton member variable.

Definition at line 87 of file CompileLoadView.cpp.

Gtk::Button *const CompileLoadView::getCompileAndLoadButton ( )

Gets the compileAndLoadButton member variable.

Returns
Gtk::Button* A pointer to the compileAndLoadButton member variable.

Definition at line 80 of file CompileLoadView.cpp.

Gtk::Label *const CompileLoadView::getSelectedFileLabel ( )

Gets the selectedFileLabel member variable.

Returns
Gtk::Label* A pointer to the selectedFileLabel member variable.

Definition at line 94 of file CompileLoadView.cpp.

void CompileLoadView::setModel ( CompileLoadModel *const  val)

Set the model pointer.

Parameters
valThe value to set the pointer to.

Definition at line 109 of file CompileLoadView.cpp.

void CompileLoadView::setSelectedFileLabelText ( const std::string  val)

Sets the text displayed by the selectedFileLabel member variable.

Parameters
valThe text to display in the selectedFileLabel.

Definition at line 101 of file CompileLoadView.cpp.


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