34 #include <wx/statline.h>
55 wxDialog(parent, -1, _T(
""), wxDefaultPosition),
59 SetTitle(wxT(
"Architecture Features"));
88 return wxWindow::TransferDataToWindow();
107 EndModal(wxID_CANCEL);
121 wxWindow *parent,
bool call_fit,
bool set_sizer) {
123 wxBoxSizer *root =
new wxBoxSizer(wxVERTICAL);
124 wxFlexGridSizer *machSettings =
new wxFlexGridSizer(2, 0, 0);
128 wxStaticText *endianessLabel =
new wxStaticText(parent, -1,
129 wxT(
"Endianess:"), wxDefaultPosition, wxDefaultSize, 0 );
130 machSettings->Add(endianessLabel,
131 0, wxALIGN_RIGHT|wxALL, 5);
134 wxDefaultPosition, wxDefaultSize);
138 root->Add(machSettings, 0, wxALIGN_CENTER|wxALL, 5);
141 wxStaticLine *horizLine =
new wxStaticLine(parent, wxID_ANY,
142 wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL);
143 root->Add(horizLine, 0, wxGROW|wxALL, 5);
144 wxBoxSizer *buttonBox =
new wxBoxSizer(wxHORIZONTAL);
147 new wxButton(parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition,
149 buttonBox->Add(okButton, 0, wxALIGN_CENTER|wxALL, 5);
151 wxButton *cancelButton =
152 new wxButton(parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition,
154 buttonBox->Add(cancelButton, 0, wxALIGN_CENTER|wxALL, 5);
155 root->Add(buttonBox, 0, wxALIGN_CENTER|wxALL, 5);
158 parent->SetAutoLayout(
TRUE);
159 parent->SetSizer(root);
163 root->SetSizeHints(parent);