OpenASIP  2.0
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FUPortDialog Class Reference

#include <FUPortDialog.hh>

Inheritance diagram for FUPortDialog:
Inheritance graph
Collaboration diagram for FUPortDialog:
Collaboration graph

Public Member Functions

 FUPortDialog (wxWindow *parent, TTAMachine::FUPort *port)
 
 ~FUPortDialog ()
 

Protected Member Functions

virtual bool TransferDataToWindow ()
 

Private Types

enum  {
  ID_NAME =10000, ID_WIDTH, ID_INPUT_SOCKET, ID_OUTPUT_SOCKET,
  ID_TRIGGERS, ID_HELP, ID_LABEL_NAME, ID_LABEL_WIDTH,
  ID_LABEL_INPUT_SOCKET, ID_LABEL_OUTPUT_SOCKET, ID_LINE
}
 

Private Member Functions

wxSizer * createContents (wxWindow *parent, bool call_fit, bool set_sizer)
 
void updateSockets ()
 
void onOK (wxCommandEvent &event)
 
void onCancel (wxCommandEvent &event)
 
void onSocketChoice (wxCommandEvent &event)
 
void onHelp (wxCommandEvent &event)
 
void onName (wxCommandEvent &event)
 
void setTexts ()
 

Private Attributes

TTAMachine::FUPortport_
 Function unit port to modify. More...
 
wxString name_
 Name of the port. More...
 
int width_
 Width of the port. More...
 
bool triggers_
 Trigger attribute of the port. More...
 
wxChoice * inputSocketChoice_
 Input socket choice control. More...
 
wxChoice * outputSocketChoice_
 Output socket choice control. More...
 
TTAMachine::SocketoldInput_
 Original input socket of the port. More...
 
TTAMachine::SocketoldOutput_
 Original output socket of the port. More...
 

Detailed Description

Dialog for querying port parameters from the user.

Definition at line 44 of file FUPortDialog.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ID_NAME 
ID_WIDTH 
ID_INPUT_SOCKET 
ID_OUTPUT_SOCKET 
ID_TRIGGERS 
ID_HELP 
ID_LABEL_NAME 
ID_LABEL_WIDTH 
ID_LABEL_INPUT_SOCKET 
ID_LABEL_OUTPUT_SOCKET 
ID_LINE 

Definition at line 81 of file FUPortDialog.hh.

81  {
82  ID_NAME=10000,
83  ID_WIDTH,
87  ID_HELP,
92  ID_LINE
93  };

Constructor & Destructor Documentation

◆ FUPortDialog()

FUPortDialog::FUPortDialog ( wxWindow *  parent,
TTAMachine::FUPort port 
)

The Constructor.

Parameters
parentParent window of the dialog.
portPort to modify.

Definition at line 76 of file FUPortDialog.cc.

78  :
79  wxDialog(parent, -1, _T(""), wxDefaultPosition),
80  port_(port),
81  name_(_T("")),
83  triggers_(false),
84  inputSocketChoice_(NULL),
85  outputSocketChoice_(NULL) {
86 
89 
90  createContents(this, true, true);
91 
92  inputSocketChoice_ = dynamic_cast<wxChoice*>(FindWindow(ID_INPUT_SOCKET));
93  outputSocketChoice_ = dynamic_cast<wxChoice*>(FindWindow(ID_OUTPUT_SOCKET));
94  FindWindow(ID_NAME)->SetValidator(wxTextValidator(wxFILTER_ASCII, &name_));
95  FindWindow(ID_TRIGGERS)->SetValidator(wxGenericValidator(&triggers_));
96  FindWindow(ID_WIDTH)->SetValidator(wxGenericValidator(&width_));
97 
98  FindWindow(wxID_OK)->Disable();
99 
100  // set texts to widgets
101  setTexts();
102 
104 }

◆ ~FUPortDialog()

FUPortDialog::~FUPortDialog ( )

The Destructor.

Definition at line 109 of file FUPortDialog.cc.

109  {
110 }

Member Function Documentation

◆ createContents()

wxSizer * FUPortDialog::createContents ( wxWindow *  parent,
bool  call_fit,
bool  set_sizer 
)
private

Creates contents of the dialog window. Initially generated with wxDesigner, the code will be cleaned up later.

Parameters
parentParent dialog of the contents.
call_fitIf true, fits sizer in dialog window.
set_sizerIf true, sets sizer as dialog's sizer.
Returns
Top level sizer of the contents.

Definition at line 377 of file FUPortDialog.cc.

378  {
379 
380  wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
381 
382  wxFlexGridSizer *item1 = new wxFlexGridSizer( 2, 0, 0 );
383 
384  wxStaticText *item2 = new wxStaticText( parent, ID_LABEL_NAME, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
385  item1->Add( item2, 0, wxALIGN_RIGHT|wxALL, 5 );
386 
387  wxTextCtrl *item3 = new wxTextCtrl( parent, ID_NAME, wxT(""), wxDefaultPosition, wxSize(200,-1), 0 );
388  item1->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
389 
390  wxStaticText *item4 = new wxStaticText( parent, ID_LABEL_WIDTH, wxT("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
391  item1->Add( item4, 0, wxALIGN_RIGHT|wxALL, 5 );
392 
393  wxSpinCtrl *item5 = new wxSpinCtrl( parent, ID_WIDTH, wxT("1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 10000, 1 );
394  item1->Add( item5, 0, wxALIGN_CENTER|wxALL, 5 );
395 
396  wxStaticText *item6 = new wxStaticText( parent, ID_LABEL_INPUT_SOCKET, wxT("Input Socket:"), wxDefaultPosition, wxDefaultSize, 0 );
397  item1->Add( item6, 0, wxALIGN_RIGHT|wxALL, 5 );
398 
399  wxString strs7[] =
400  {
401  wxT("NONE")
402  };
403  wxChoice *item7 = new wxChoice( parent, ID_INPUT_SOCKET, wxDefaultPosition, wxSize(200,-1), 1, strs7, 0 );
404  item1->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
405 
406  wxStaticText *item8 = new wxStaticText( parent, ID_LABEL_OUTPUT_SOCKET, wxT("Output Socket:"), wxDefaultPosition, wxDefaultSize, 0 );
407  item1->Add( item8, 0, wxALIGN_RIGHT|wxALL, 5 );
408 
409  wxString strs9[] =
410  {
411  wxT("NONE")
412  };
413  wxChoice *item9 = new wxChoice( parent, ID_OUTPUT_SOCKET, wxDefaultPosition, wxSize(200,-1), 1, strs9, 0 );
414  item1->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
415 
416  item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
417 
418  wxBoxSizer *item10 = new wxBoxSizer( wxHORIZONTAL );
419 
420  wxCheckBox *item11 = new wxCheckBox( parent, ID_TRIGGERS, wxT("Triggers"), wxDefaultPosition, wxDefaultSize, 0 );
421  item10->Add( item11, 0, wxALIGN_CENTER|wxALL, 5 );
422 
423  item0->Add( item10, 0, wxALL, 5 );
424 
425  wxStaticLine *item12 = new wxStaticLine( parent, ID_LINE, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
426  item0->Add( item12, 0, wxGROW|wxALL, 5 );
427 
428  wxBoxSizer *item13 = new wxBoxSizer( wxHORIZONTAL );
429 
430  wxButton *item14 = new wxButton( parent, ID_HELP, wxT("&Help"), wxDefaultPosition, wxDefaultSize, 0 );
431  item13->Add( item14, 0, wxALIGN_CENTER|wxALL, 5 );
432 
433  wxButton *item15 = new wxButton( parent, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
434  item13->Add( item15, 0, wxALIGN_CENTER|wxALL, 5 );
435 
436  wxButton *item16 = new wxButton( parent, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
437  item13->Add( item16, 0, wxALIGN_CENTER|wxALL, 5 );
438 
439  item0->Add( item13, 0, wxALIGN_CENTER|wxALL, 5 );
440 
441  if (set_sizer)
442  {
443  parent->SetSizer( item0 );
444  if (call_fit)
445  item0->SetSizeHints( parent );
446  }
447 
448  return item0;
449 }

◆ onCancel()

void FUPortDialog::onCancel ( wxCommandEvent &  event)
private

Resets the original input and output sockets for the port and closes the dialog.

Definition at line 249 of file FUPortDialog.cc.

249  {
251  if (oldInput_ != NULL) {
253  }
254  if (oldOutput_ != NULL) {
256  }
257  EndModal(wxID_CANCEL);
258 }

◆ onHelp()

void FUPortDialog::onHelp ( wxCommandEvent &  event)
private

◆ onName()

void FUPortDialog::onName ( wxCommandEvent &  event)
private

Disables OK-button if the name field is empty.

Definition at line 354 of file FUPortDialog.cc.

354  {
355  if (!TransferDataFromWindow()) {
356  assert(false);
357  }
358  wxString trimmedName = name_.Trim(false).Trim(true);
359  if (trimmedName == _T("")) {
360  FindWindow(wxID_OK)->Disable();
361  } else {
362  FindWindow(wxID_OK)->Enable();
363  }
364 }

References assert.

◆ onOK()

void FUPortDialog::onOK ( wxCommandEvent &  event)
private

Validates input in the controls, and updates the port object.

Definition at line 265 of file FUPortDialog.cc.

265  {
266 
267  if (!Validate()) {
268  return;
269  }
270 
271  if (!TransferDataFromWindow()) {
272  return;
273  }
274 
275  // check whether FU already has a port of tht name.
276 
277  string trimmedName =
278  WxConversion::toString(name_.Trim(false).Trim(true));
279 
280  // Check the name validity.
281  if (!MachineTester::isValidComponentName(trimmedName)) {
283  format message =
285  InformationDialog warning(
286  this, WxConversion::toWxString(message.str()));
287  warning.ShowModal();
288  return;
289  }
290 
291  if (port_->name() != trimmedName) {
292  FunctionUnit* fu = port_->parentUnit();
293  for (int i = 0; i < fu->portCount(); i++) {
294  string name = fu->port(i)->name();
295  if (name == WxConversion::toString(name_)) {
296  ProDeTextGenerator* prodeTexts =
298  format message =
300  format a_port =
302  format machine =
304  format port =
305  prodeTexts->text(ProDeTextGenerator::COMP_PORT);
306  message % trimmedName % a_port.str() % machine.str() %
307  port.str();
308  WarningDialog warning(
309  this, WxConversion::toWxString(message.str()));
310  warning.ShowModal();
311  return;
312  }
313  }
314  }
315 
316  // update attributes
317  port_->setName(trimmedName);
320 
321  EndModal(wxID_OK);
322 }

References ProDeTextGenerator::COMP_A_PORT, ProDeTextGenerator::COMP_FUNCTION_UNIT, ProDeTextGenerator::COMP_PORT, ProDeTextGenerator::instance(), MachineTester::isValidComponentName(), machine, ProDeTextGenerator::MSG_ERROR_ILLEGAL_NAME, ProDeTextGenerator::MSG_ERROR_SAME_NAME, TTAMachine::Port::name(), TTAMachine::FunctionUnit::port(), TTAMachine::Unit::portCount(), Texts::TextGenerator::text(), WxConversion::toString(), and WxConversion::toWxString().

Here is the call graph for this function:

◆ onSocketChoice()

void FUPortDialog::onSocketChoice ( wxCommandEvent &  event)
private

Updates the port object when user changes input/output socket selection.

Definition at line 328 of file FUPortDialog.cc.

328  {
330  Machine::SocketNavigator navigator =
332 
333  // set input socket
334  string inputSocketName =
335  WxConversion::toString(inputSocketChoice_->GetStringSelection());
336  if (inputSocketName != WxConversion::toString(ProDeConstants::NONE)) {
337  port_->attachSocket(*(navigator.item(inputSocketName)));
338  }
339 
340  // set output socket
341  string outputSocketName =
342  WxConversion::toString(outputSocketChoice_->GetStringSelection());
343  if (outputSocketName != WxConversion::toString(ProDeConstants::NONE)) {
344  port_->attachSocket(*(navigator.item(outputSocketName)));
345  }
346  updateSockets();
347 }

References TTAMachine::Machine::Navigator< ComponentType >::item(), ProDeConstants::NONE, and WxConversion::toString().

Here is the call graph for this function:

◆ setTexts()

void FUPortDialog::setTexts ( )
private

Sets texts for widgets.

Definition at line 117 of file FUPortDialog.cc.

References GUITextGenerator::instance(), ProDeTextGenerator::instance(), WidgetTools::setLabel(), Texts::TextGenerator::text(), WxConversion::toWxString(), GUITextGenerator::TXT_BUTTON_CANCEL, GUITextGenerator::TXT_BUTTON_HELP, GUITextGenerator::TXT_BUTTON_OK, ProDeTextGenerator::TXT_FU_PORT_DIALOG_TITLE, ProDeTextGenerator::TXT_LABEL_INPUT_SOCKET, ProDeTextGenerator::TXT_LABEL_NAME, ProDeTextGenerator::TXT_LABEL_OUTPUT_SOCKET, ProDeTextGenerator::TXT_LABEL_TRIGGERS, and ProDeTextGenerator::TXT_LABEL_WIDTH.

Here is the call graph for this function:

◆ TransferDataToWindow()

bool FUPortDialog::TransferDataToWindow ( )
protectedvirtual

Transfers data from the port object to the dialog widgets.

Returns
False, if an error occured in the transfer.

Definition at line 160 of file FUPortDialog.cc.

160  {
162  width_ = port_->width();
164  updateSockets();
165 
166  // wxWidgets GTK1 version seems to bug with spincontrol and
167  // checkbox validators. The widget value has to be set manually.
168  dynamic_cast<wxSpinCtrl*>(FindWindow(ID_WIDTH))->SetValue(width_);
169  dynamic_cast<wxCheckBox*>(FindWindow(ID_TRIGGERS))->SetValue(triggers_);
170 
171  return wxWindow::TransferDataToWindow();
172 }

References WxConversion::toWxString().

Here is the call graph for this function:

◆ updateSockets()

void FUPortDialog::updateSockets ( )
private

Updates input and output socket choicers.

Definition at line 179 of file FUPortDialog.cc.

179  {
180 
181  inputSocketChoice_->Clear();
183  outputSocketChoice_->Clear();
185 
186  MachineTester tester(*(port_->parentUnit()->machine()));
187 
188  // Add ports to the choicers
189  Machine::SocketNavigator navigator =
191 
192  for (int i = 0; i < navigator.count(); i++) {
193  Socket* socket = navigator.item(i);
194  wxString socketName = WxConversion::toWxString(socket->name());
195 
196  // Add available input sockets.
197  Socket* input = port_->inputSocket();
198  if (input != NULL) {
199  port_->detachSocket(*input);
200  }
201  bool legal = tester.canConnect(*socket, *port_);
202  if (legal && socket->direction() == Socket::INPUT) {
203  inputSocketChoice_->Append(socketName);
204  }
205  if (input != NULL) {
206  port_->attachSocket(*input);
207  }
208 
209  // Add available output sockets.
210  Socket* output = port_->outputSocket();
211  if (output != NULL) {
212  port_->detachSocket(*output);
213  }
214  legal = tester.canConnect(*socket, *port_);
215  if (legal && socket->direction() == Socket::OUTPUT) {
216  outputSocketChoice_->Append(socketName);
217  }
218  if (output != NULL) {
219  port_->attachSocket(*output);
220  }
221  // ignore sockets with unknown direction
222  }
223 
224  // set input socket choice
225  if (port_->inputSocket() == NULL) {
226  inputSocketChoice_->SetStringSelection(ProDeConstants::NONE);
227  } else {
228  wxString socketName =
230  inputSocketChoice_->SetStringSelection(socketName);
231  }
232 
233  // set output socket choice
234  if (port_->outputSocket() == NULL) {
235  outputSocketChoice_->SetStringSelection(ProDeConstants::NONE);
236  } else {
237  wxString socketName =
239  outputSocketChoice_->SetStringSelection(socketName);
240  }
241 }

References MachineTester::canConnect(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Socket::direction(), TTAMachine::Socket::INPUT, TTAMachine::Machine::Navigator< ComponentType >::item(), TTAMachine::Component::name(), ProDeConstants::NONE, TTAMachine::Socket::OUTPUT, and WxConversion::toWxString().

Here is the call graph for this function:

Member Data Documentation

◆ inputSocketChoice_

wxChoice* FUPortDialog::inputSocketChoice_
private

Input socket choice control.

Definition at line 72 of file FUPortDialog.hh.

◆ name_

wxString FUPortDialog::name_
private

Name of the port.

Definition at line 66 of file FUPortDialog.hh.

◆ oldInput_

TTAMachine::Socket* FUPortDialog::oldInput_
private

Original input socket of the port.

Definition at line 77 of file FUPortDialog.hh.

◆ oldOutput_

TTAMachine::Socket* FUPortDialog::oldOutput_
private

Original output socket of the port.

Definition at line 79 of file FUPortDialog.hh.

◆ outputSocketChoice_

wxChoice* FUPortDialog::outputSocketChoice_
private

Output socket choice control.

Definition at line 74 of file FUPortDialog.hh.

◆ port_

TTAMachine::FUPort* FUPortDialog::port_
private

Function unit port to modify.

Definition at line 64 of file FUPortDialog.hh.

◆ triggers_

bool FUPortDialog::triggers_
private

Trigger attribute of the port.

Definition at line 70 of file FUPortDialog.hh.

◆ width_

int FUPortDialog::width_
private

Width of the port.

Definition at line 68 of file FUPortDialog.hh.


The documentation for this class was generated from the following files:
FUPortDialog::outputSocketChoice_
wxChoice * outputSocketChoice_
Output socket choice control.
Definition: FUPortDialog.hh:74
FUPortDialog::oldOutput_
TTAMachine::Socket * oldOutput_
Original output socket of the port.
Definition: FUPortDialog.hh:79
WarningDialog
Definition: WarningDialog.hh:42
ProDeTextGenerator::TXT_FU_PORT_DIALOG_TITLE
@ TXT_FU_PORT_DIALOG_TITLE
Function unit port dialog title.
Definition: ProDeTextGenerator.hh:192
FUPortDialog::updateSockets
void updateSockets()
Definition: FUPortDialog.cc:179
TTAMachine::Port::inputSocket
virtual Socket * inputSocket() const
Definition: Port.cc:261
WxConversion::toWxString
static wxString toWxString(const std::string &source)
TTAMachine::Component::name
virtual TCEString name() const
Definition: MachinePart.cc:125
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
FUPortDialog::name_
wxString name_
Name of the port.
Definition: FUPortDialog.hh:66
TTAMachine::BaseFUPort::parentUnit
FunctionUnit * parentUnit() const
Definition: BaseFUPort.cc:96
FUPortDialog::triggers_
bool triggers_
Trigger attribute of the port.
Definition: FUPortDialog.hh:70
WidgetTools::setLabel
static void setLabel(Texts::TextGenerator *generator, wxWindow *widget, int textID)
Definition: WidgetTools.cc:92
GUITextGenerator::instance
static GUITextGenerator * instance()
Definition: GUITextGenerator.cc:67
FUPortDialog::port_
TTAMachine::FUPort * port_
Function unit port to modify.
Definition: FUPortDialog.hh:64
FUPortDialog::ID_LABEL_OUTPUT_SOCKET
@ ID_LABEL_OUTPUT_SOCKET
Definition: FUPortDialog.hh:91
ProDeTextGenerator::TXT_LABEL_INPUT_SOCKET
@ TXT_LABEL_INPUT_SOCKET
Label for input socket selector.
Definition: ProDeTextGenerator.hh:61
GUITextGenerator
Definition: GUITextGenerator.hh:46
GUITextGenerator::TXT_BUTTON_HELP
@ TXT_BUTTON_HELP
Label for help button.
Definition: GUITextGenerator.hh:60
FUPortDialog::ID_LABEL_NAME
@ ID_LABEL_NAME
Definition: FUPortDialog.hh:88
TTAMachine::FunctionUnit::port
virtual BaseFUPort * port(const std::string &name) const
Definition: FunctionUnit.cc:145
FindWindow
Definition: FindWindow.hh:49
FUPortDialog::ID_INPUT_SOCKET
@ ID_INPUT_SOCKET
Definition: FUPortDialog.hh:84
TTAMachine::Machine::Navigator::count
int count() const
Texts::TextGenerator::text
virtual boost::format text(int textId)
Definition: TextGenerator.cc:94
TTAMachine::Socket::direction
Direction direction() const
TTAMachine::FUPort::isTriggering
virtual bool isTriggering() const
Definition: FUPort.cc:182
ProDeTextGenerator
Definition: ProDeTextGenerator.hh:49
ProDeTextGenerator::MSG_ERROR_ILLEGAL_NAME
@ MSG_ERROR_ILLEGAL_NAME
Error: Illegal component name.
Definition: ProDeTextGenerator.hh:223
ProDeTextGenerator::MSG_ERROR_SAME_NAME
@ MSG_ERROR_SAME_NAME
Error: Same name exists.
Definition: ProDeTextGenerator.hh:229
TTAMachine::Port::setName
virtual void setName(const std::string &name)
Definition: Port.cc:155
ProDeTextGenerator::COMP_FUNCTION_UNIT
@ COMP_FUNCTION_UNIT
Name for FU (w/o article).
Definition: ProDeTextGenerator.hh:263
assert
#define assert(condition)
Definition: Application.hh:86
FUPortDialog::ID_WIDTH
@ ID_WIDTH
Definition: FUPortDialog.hh:83
TTAMachine::FunctionUnit
Definition: FunctionUnit.hh:55
FUPortDialog::ID_LABEL_WIDTH
@ ID_LABEL_WIDTH
Definition: FUPortDialog.hh:89
TTAMachine::Port::attachSocket
virtual void attachSocket(Socket &socket)
Definition: Port.cc:191
FUPortDialog::TransferDataToWindow
virtual bool TransferDataToWindow()
Definition: FUPortDialog.cc:160
GUITextGenerator::TXT_BUTTON_CANCEL
@ TXT_BUTTON_CANCEL
Label for cancel button.
Definition: GUITextGenerator.hh:55
ModelConstants::DEFAULT_WIDTH
static const int DEFAULT_WIDTH
Default bit width.
Definition: ModelConstants.hh:46
ProDeTextGenerator::COMP_A_PORT
@ COMP_A_PORT
Name for port (w/ article).
Definition: ProDeTextGenerator.hh:270
FUPortDialog::ID_HELP
@ ID_HELP
Definition: FUPortDialog.hh:87
TTAMachine::Socket
Definition: Socket.hh:53
TTAMachine::Port::detachSocket
virtual void detachSocket(Socket &socket)
Definition: Port.cc:237
ProDeTextGenerator::TXT_LABEL_NAME
@ TXT_LABEL_NAME
Label for component name widget.
Definition: ProDeTextGenerator.hh:56
TTAMachine::BaseFUPort::setWidth
void setWidth(int width)
Definition: BaseFUPort.cc:121
FUPortDialog::oldInput_
TTAMachine::Socket * oldInput_
Original input socket of the port.
Definition: FUPortDialog.hh:77
MachineTester::isValidComponentName
static bool isValidComponentName(const std::string &name)
Definition: MachineTester.cc:312
TTAMachine::Machine::socketNavigator
virtual SocketNavigator socketNavigator() const
Definition: Machine.cc:368
TTAMachine::Unit::portCount
virtual int portCount() const
Definition: Unit.cc:135
FUPortDialog::width_
int width_
Width of the port.
Definition: FUPortDialog.hh:68
ProDeTextGenerator::instance
static ProDeTextGenerator * instance()
Definition: ProDeTextGenerator.cc:382
FUPortDialog::ID_LINE
@ ID_LINE
Definition: FUPortDialog.hh:92
TTAMachine::Component::machine
virtual Machine * machine() const
FUPortDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition: FUPortDialog.cc:377
TTAMachine::Port::name
virtual std::string name() const
Definition: Port.cc:141
TTAMachine::FUPort::setTriggering
void setTriggering(bool triggers)
Definition: FUPort.cc:212
TTAMachine::Port::outputSocket
virtual Socket * outputSocket() const
Definition: Port.cc:281
ProDeTextGenerator::TXT_LABEL_OUTPUT_SOCKET
@ TXT_LABEL_OUTPUT_SOCKET
Label for output socket selector.
Definition: ProDeTextGenerator.hh:62
FUPortDialog::ID_OUTPUT_SOCKET
@ ID_OUTPUT_SOCKET
Definition: FUPortDialog.hh:85
TTAMachine::Machine::Navigator::item
ComponentType * item(int index) const
InformationDialog
Definition: InformationDialog.hh:42
FUPortDialog::ID_TRIGGERS
@ ID_TRIGGERS
Definition: FUPortDialog.hh:86
ProDeTextGenerator::COMP_PORT
@ COMP_PORT
Name for port (w/o article).
Definition: ProDeTextGenerator.hh:271
FUPortDialog::setTexts
void setTexts()
Definition: FUPortDialog.cc:117
FUPortDialog::inputSocketChoice_
wxChoice * inputSocketChoice_
Input socket choice control.
Definition: FUPortDialog.hh:72
ProDeConstants::NONE
static const wxString NONE
Constant for "None".
Definition: ProDeConstants.hh:56
MachineTester
Definition: MachineTester.hh:46
ProDeTextGenerator::TXT_LABEL_WIDTH
@ TXT_LABEL_WIDTH
Label for bit width widget.
Definition: ProDeTextGenerator.hh:57
WxConversion::toString
static std::string toString(const wxString &source)
TTAMachine::Port::detachAllSockets
virtual void detachAllSockets()
Definition: Port.cc:536
FUPortDialog::ID_LABEL_INPUT_SOCKET
@ ID_LABEL_INPUT_SOCKET
Definition: FUPortDialog.hh:90
TTAMachine::Machine::Navigator
Definition: Machine.hh:186
TTAMachine::BaseFUPort::width
virtual int width() const
Definition: BaseFUPort.cc:109
ProDeTextGenerator::TXT_LABEL_TRIGGERS
@ TXT_LABEL_TRIGGERS
Label for 'triggers' checkbox.
Definition: ProDeTextGenerator.hh:78
FUPortDialog::ID_NAME
@ ID_NAME
Definition: FUPortDialog.hh:82
GUITextGenerator::TXT_BUTTON_OK
@ TXT_BUTTON_OK
Label for OK button.
Definition: GUITextGenerator.hh:59