32#ifndef TTA_ADDRESS_SPACE_DIALOG_HH
33#define TTA_ADDRESS_SPACE_DIALOG_HH
36#include <wx/spinctrl.h>
37#include <wx/listctrl.h>
59 wxSizer*
createContents(wxWindow* parent,
bool call_fit,
bool set_sizer);
61 void onName(wxCommandEvent& event);
62 void onOK(wxCommandEvent& event);
75 void onAddId(wxCommandEvent& event);
144 DECLARE_EVENT_TABLE()
TTAMachine::Machine * machine
the architecture definition of the estimated processor
wxString name_
Name of the address space.
void onName(wxCommandEvent &event)
void onOK(wxCommandEvent &event)
wxStaticBoxSizer * maxAddressSizer_
Boxsizer containing the max-address widget.
void onMaxAddress(wxCommandEvent &event)
void onMinToHex(wxCommandEvent &event)
void onSpinId(wxSpinEvent &event)
wxString minAddress_
The lowest address in the address space.
void onAddId(wxCommandEvent &event)
wxSpinCtrl * bitWidthSpinCtrl_
SpinCtrl containing the bit width of the max-address.
NumberControl * maxControl_
Widget for the highest address hex value.
void onMaxToDec(wxCommandEvent &event)
TTAMachine::Machine * machine_
Machine containing all the address spaces.
void onDeleteId(wxCommandEvent &event)
wxListCtrl * idListCtrl_
List control containing the address space ids.
void onMinAddress(wxCommandEvent &event)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
void onMinHex(wxCommandEvent &event)
void onIdListSelection(wxListEvent &event)
wxStaticBoxSizer * idSizer_
Boxsizer containing the address space id widget.
bool isFreeId(unsigned id) const
virtual bool TransferDataToWindow()
void onBitWidth(wxSpinEvent &event)
wxStaticBoxSizer * nameSizer_
Boxsizer containing the name widget.
wxSpinCtrl * idSpinCtrl_
SpinCtrl containing an address space id.
TTAMachine::AddressSpace * as_
Address space to modify with the dialog.
wxStaticBoxSizer * minAddressSizer_
Boxsizer containing the min-address widget.
wxString maxAddress_
The highest address in the address space.
void onMinToDec(wxCommandEvent &event)
NumberControl * minControl_
Widget for the lowest address hex value.
void onBitWidthText(wxCommandEvent &event)
wxStaticBoxSizer * widthSizer_
Boxsizer containing the width widget.
std::set< unsigned > idNumbers_
Container for unique id numbers.
void onHelp(wxCommandEvent &event)
void onMaxToHex(wxCommandEvent &event)
int width_
The bit width of the minimum addressable word.
void onMaxHex(wxCommandEvent &event)