Go to the documentation of this file.
33 #include <wx/docview.h>
34 #include <boost/format.hpp>
92 if (contents->
name() == Socket::OSNAME_SOCKET) {
105 _T(
"The socket cannot be pasted to this machine.\n\n");
113 }
else if (contents->
name() == FunctionUnit::OSNAME_FU) {
118 std::string fuName = copiedFU->
name();
124 *navigator.
item(fuName);
131 }
else if (contents->
name() == ImmediateUnit::OSNAME_IMMEDIATE_UNIT) {
137 }
else if (contents->
name() == RegisterFile::OSNAME_REGISTER_FILE) {
143 }
else if (contents->
name() == Bus::OSNAME_BUS) {
163 for (
int i = 0; i < original.
guardCount(); ++i) {
171 }
else if (contents->
name() == ControlUnit::OSNAME_CONTROL_UNIT) {
179 string title = fmt.str();
251 wxDocManager* manager = wxGetApp().docManager();
252 MDFView* mdfView =
dynamic_cast<MDFView*
>(manager->GetCurrentView());
253 if (mdfView == NULL) {
static wxString toWxString(const std::string &source)
virtual TCEString name() const
virtual bool hasAddressSpace() const
TTAMachine::Machine * machine
the architecture definition of the estimated processor
static const std::string CMD_ICON_PASTE
Icon location for the "Paste" command.
virtual std::string icon() const
virtual void loadState(const ObjectState *state)
virtual AddressSpace * addressSpace() const
virtual boost::format text(int textId)
void paste(TTAMachine::Machine &machine, TTAMachine::Component *component, ComponentNavigator &navigator)
void notifyObservers(bool modified=true)
#define assert(condition)
virtual void copyTo(Bus &parentBus) const =0
virtual ControlUnit * controlUnit() const
virtual ImmediateUnitNavigator immediateUnitNavigator() const
bool hasItem(const std::string &name) const
const TTAMachine::Machine * sourceMachine()
virtual FunctionUnitNavigator functionUnitNavigator() const
virtual void setAddressSpace(AddressSpace *as)
void popFromStack(bool modified=false)
virtual SocketNavigator socketNavigator() const
virtual PasteComponentCmd * create() const
Guard * guard(int index) const
std::string errorMessage() const
static ProDeTextGenerator * instance()
virtual RegisterFileNavigator registerFileNavigator() const
virtual void setMachine(Machine &mach)
virtual BusNavigator busNavigator() const
@ MSG_ERROR_ONE_GCU
Error: Multiple control units.
ObjectState * copyContents()
ComponentType * item(int index) const
wxWindow * parentWindow() const
void setAttribute(const std::string &name, const std::string &value)
TTAMachine::Machine * getMachine()
static ProDeClipboard * instance()