Canola  0.8.D001
Public Types | Public Member Functions | Private Member Functions | Private Attributes
debugger_gnome Class Reference

#include <gnome.h>

Inheritance diagram for debugger_gnome:
debugger

List of all members.

Public Types

typedef sigc::signal1< void,
int, sigc::nil > 
address_value_changed_signal_t

Public Member Functions

virtual ~debugger_gnome ()
 debugger_gnome ()
address_value_changed_signal_taddress_value_changed_signal (void)

Private Member Functions

void display_x_register (const number &value)
void display_y_register (const number &value)
void display_memory (int n, const number &value)
void display_address (int addr)
void display_opcode (opcode_t op)
void display_location (const location::pointer &where)
void display_mstate (const char *text)
void on_address_value_changed (void)
 debugger_gnome (const debugger_gnome &rhs)
debugger_gnomeoperator= (const debugger_gnome &rhs)

Private Attributes

Gtk::Table left_panel
Gtk::Label x_reg_name
Gtk::TextView x_reg_value
Gtk::Label y_reg_name
Gtk::TextView y_reg_value
Gtk::Label memory_name [14]
Gtk::TextView memory_value [14]
Gtk::Label address_name
Gtk::SpinButton address_value
bool address_value_changed_signal_enable
address_value_changed_signal_t address_value_changed_signal_instance
Gtk::Label opcode_name
Gtk::TextView opcode_value
Gtk::Label mstate_name
Gtk::TextView mstate_value
Gtk::Frame source_code_frame
Gtk::ScrolledWindow source_code_scroller
Gtk::TextView source_code
std::string filename

Detailed Description

The debugger_gnome class is used to represent the processing required to display debugging information in a Gtk window.

Definition at line 30 of file gnome.h.


Member Typedef Documentation

typedef sigc::signal1<void, int, sigc::nil> debugger_gnome::address_value_changed_signal_t

Definition at line 45 of file gnome.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 26 of file gnome.cc.

The default constructor.

Definition at line 47 of file gnome.cc.

debugger_gnome::debugger_gnome ( const debugger_gnome rhs) [private]

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

The address_value_changed_signal method is used to obtain a reference to the signal that will be emitted whenever the user changes the address.

Definition at line 196 of file gnome.cc.

void debugger_gnome::display_address ( int  addr) [private, virtual]

The display_address method is used to update the displayed value of the address of the next opcode to be executed.

Implements debugger.

Definition at line 174 of file gnome.cc.

void debugger_gnome::display_location ( const location::pointer where) [private, virtual]

The display_location method is used to update the displayed value of the source code text, highlighting the section that is the token for the next opcode to be executed.

Implements debugger.

Definition at line 224 of file gnome.cc.

void debugger_gnome::display_memory ( int  n,
const number value 
) [private, virtual]

The display_memory method is used to update the displayed value of the memory specified.

Parameters:
nwhich memory is being updated (1..14)
valuethe value of the specified memory location

Implements debugger.

Definition at line 162 of file gnome.cc.

void debugger_gnome::display_mstate ( const char *  text) [private, virtual]

Implements debugger.

Definition at line 276 of file gnome.cc.

void debugger_gnome::display_opcode ( opcode_t  op) [private, virtual]

The display_opcode method is used to update the displayed value of the next opcode to be executed.

Implements debugger.

Definition at line 203 of file gnome.cc.

void debugger_gnome::display_x_register ( const number value) [private, virtual]

The display_x_register method is used to update the displayed value of the X register.

Implements debugger.

Definition at line 148 of file gnome.cc.

void debugger_gnome::display_y_register ( const number value) [private, virtual]

The display_y_register method is used to update the displayed value of the Y register.

Implements debugger.

Definition at line 155 of file gnome.cc.

void debugger_gnome::on_address_value_changed ( void  ) [private]

The on_address_value_changed method is a signal handler for the value-changed signal of the address_value widget. It emits the following signal, when enabled.

Definition at line 185 of file gnome.cc.

debugger_gnome& debugger_gnome::operator= ( const debugger_gnome rhs) [private]

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.

Member Data Documentation

Gtk::Label debugger_gnome::address_name [private]

Definition at line 92 of file gnome.h.

Gtk::SpinButton debugger_gnome::address_value [private]

The address_value instance variable is used to remember and display the address of the calculator. It can be changed by the user, to direct execution as desired.

Definition at line 99 of file gnome.h.

The address_value_changed_signal_enable instance variable is used to remember whether or not to emit a signal when the address_value changes. This has two causes: when the display_address method is called, and when the user changes it. We want to emit signals for the second, but not the first.

Definition at line 108 of file gnome.h.

The address_value_changed_signal_instance instance variable is used to remember the slots connected to this signal. The emit method will be called by on_address_value_changed when enabled.

Definition at line 122 of file gnome.h.

std::string debugger_gnome::filename [private]

The filename instance variable is used to remember the name of the file currently being displayed in the file text pane.

Definition at line 142 of file gnome.h.

Gtk::Table debugger_gnome::left_panel [private]

Definition at line 78 of file gnome.h.

Gtk::Label debugger_gnome::memory_name[14] [private]

Definition at line 88 of file gnome.h.

Gtk::TextView debugger_gnome::memory_value[14] [private]

Definition at line 90 of file gnome.h.

Gtk::Label debugger_gnome::mstate_name [private]

Definition at line 128 of file gnome.h.

Gtk::TextView debugger_gnome::mstate_value [private]

Definition at line 130 of file gnome.h.

Gtk::Label debugger_gnome::opcode_name [private]

Definition at line 124 of file gnome.h.

Gtk::TextView debugger_gnome::opcode_value [private]

Definition at line 126 of file gnome.h.

Gtk::TextView debugger_gnome::source_code [private]

Definition at line 136 of file gnome.h.

Gtk::Frame debugger_gnome::source_code_frame [private]

Definition at line 132 of file gnome.h.

Gtk::ScrolledWindow debugger_gnome::source_code_scroller [private]

Definition at line 134 of file gnome.h.

Gtk::Label debugger_gnome::x_reg_name [private]

Definition at line 80 of file gnome.h.

Gtk::TextView debugger_gnome::x_reg_value [private]

Definition at line 82 of file gnome.h.

Gtk::Label debugger_gnome::y_reg_name [private]

Definition at line 84 of file gnome.h.

Gtk::TextView debugger_gnome::y_reg_value [private]

Definition at line 86 of file gnome.h.


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