Go to the documentation of this file.
85 name.Prepend(_T(
"FU: "));
89 for (
int i = 0; i < fu->
portCount(); i++) {
90 vector<Factory*>::const_iterator iter;
93 (*iter)->createEditPart(fu->
port(i));
94 if (portEditPart != NULL) {
98 if (editPolicy != NULL) {
105 wxString operations = _T(
"{ ");
108 operations.Append(_T(
"AS: "));
111 operations.Append(_T(
" Ops:"));
116 operations.Append(_T(
", "));
121 operations.Append(_T(
" }"));
127 if (editPolicy != NULL) {
static wxString toWxString(const std::string &source)
virtual TCEString name() const
void setSelectable(bool selectable)
void installEditPolicy(EditPolicy *editpolicy)
virtual BaseFUPort * port(const std::string &name) const
virtual AddressSpace * addressSpace() const
virtual EditPolicy * createFUPortEditPolicy()
void registerFactory(Factory *factory)
const std::string & name() const
virtual EditPolicy * createFUEditPolicy()
void setModel(TTAMachine::MachinePart *model)
virtual int operationCount() const
virtual int portCount() const
virtual EditPart * createEditPart(TTAMachine::MachinePart *component)
FUFactory(EditPolicyFactory &editPolicyFactory)
void setFigure(Figure *figure)
virtual HWOperation * operation(const std::string &name) const
void addChild(EditPart *child)
EditPolicyFactory & editPolicyFactory_
Factory which creates edit policies for edit parts.
std::vector< Factory * > factories_
Registered factories.