35 #include <wx/statusbr.h>
84 const wxString& title,
85 const wxPoint& position,
87 wxFrame(NULL, -1, title, position, size),
92 wxBoxSizer* sizer =
new wxBoxSizer(wxHORIZONTAL);
94 sizer->Add(browser_, 1, wxGROW);
98 wxMenu* fileMenu =
new wxMenu;
102 fileMenu->AppendSeparator();
105 wxMenu* editMenu =
new wxMenu;
106 wxMenu* addSubMenu =
new wxMenu;
110 _T(
"FU Architecture From ADF..."));
113 _T(
"RF Architecture..."));
114 addSubMenu->AppendSeparator();
118 _T(
"Operation Implementation Resource..."));
121 _T(
"Operation Implementation..."));
122 addSubMenu->AppendSeparator();
126 _T(
"FU Entry Implementation..."));
129 _T(
"RF Entry Implementation..."));
131 addSubMenu->AppendSeparator();
143 addSubMenu->AppendSeparator();
146 _T(
"Cost Function Plugin..."));
147 editMenu->Append(-1, _T(
"Add"), addSubMenu);
148 editMenu->AppendSeparator();
151 _T(
"Set Cost Function Plugin"));
153 editMenu->AppendSeparator();
157 wxMenu* helpMenu =
new wxMenu;
162 wxMenuBar* menuBar =
new wxMenuBar;
163 menuBar->Append(fileMenu, _T(
"&File"));
164 menuBar->Append(editMenu, _T(
"&Edit"));
165 menuBar->Append(helpMenu, _T(
"&Help"));
171 commandRegistry_->addCommand(
new OpenHDBCmd());
191 SetSizeHints(400,300);
214 if (command == NULL) {
216 this, _T(
"No handler found for the command event!"));
235 if (command == NULL || command->
isEnabled()) {
261 wxString message = _T(
"Error opening HDB ");
263 message.Append(_T(
":\n\n"));
292 wxString message = _T(
"Error creating HDB ");
294 message.Append(_T(
":\n\n"));