Go to the documentation of this file.
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);
63 void onHelp(wxCommandEvent& event);
65 void onMinHex(wxCommandEvent& event);
67 void onMaxHex(wxCommandEvent& event);
75 void onAddId(wxCommandEvent& event);
144 DECLARE_EVENT_TABLE()
NumberControl * maxControl_
Widget for the highest address hex value.
void onAddId(wxCommandEvent &event)
void onName(wxCommandEvent &event)
void onDeleteId(wxCommandEvent &event)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
void onMinToHex(wxCommandEvent &event)
void onMaxToDec(wxCommandEvent &event)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
TTAMachine::AddressSpace * as_
Address space to modify with the dialog.
virtual bool TransferDataToWindow()
wxStaticBoxSizer * maxAddressSizer_
Boxsizer containing the max-address widget.
void onOK(wxCommandEvent &event)
void onSpinId(wxSpinEvent &event)
AddressSpaceDialog(wxWindow *parent, TTAMachine::Machine *machine, TTAMachine::AddressSpace *addressSpace)
void onMaxToHex(wxCommandEvent &event)
void onMinAddress(wxCommandEvent &event)
wxString name_
Name of the address space.
NumberControl * minControl_
Widget for the lowest address hex value.
void onBitWidthText(wxCommandEvent &event)
void onIdListSelection(wxListEvent &event)
wxSpinCtrl * bitWidthSpinCtrl_
SpinCtrl containing the bit width of the max-address.
void onMaxHex(wxCommandEvent &event)
TTAMachine::Machine * machine_
Machine containing all the address spaces.
wxStaticBoxSizer * widthSizer_
Boxsizer containing the width widget.
bool isFreeId(unsigned id) const
std::set< unsigned > idNumbers_
Container for unique id numbers.
wxString minAddress_
The lowest address in the address space.
wxString maxAddress_
The highest address in the address space.
int width_
The bit width of the minimum addressable word.
wxStaticBoxSizer * nameSizer_
Boxsizer containing the name widget.
wxSpinCtrl * idSpinCtrl_
SpinCtrl containing an address space id.
wxListCtrl * idListCtrl_
List control containing the address space ids.
void onHelp(wxCommandEvent &event)
void onMinHex(wxCommandEvent &event)
wxStaticBoxSizer * minAddressSizer_
Boxsizer containing the min-address widget.
wxStaticBoxSizer * idSizer_
Boxsizer containing the address space id widget.
void onMaxAddress(wxCommandEvent &event)
void onBitWidth(wxSpinEvent &event)
void onMinToDec(wxCommandEvent &event)