+ use Python's inspect module to get calling instance of addCommand

This commit is contained in:
wmayer
2015-12-16 23:07:24 +01:00
parent f958dadb69
commit 61e1a5ca2f
3 changed files with 56 additions and 2 deletions

View File

@@ -367,6 +367,24 @@ std::string Command::getUniqueObjectName(const char *BaseName) const
return getActiveGuiDocument()->getDocument()->getUniqueObjectName(BaseName);
}
void Command::setAppModuleName(const char* s)
{
#if defined (_MSC_VER)
this->sAppModule = _strdup(s);
#else
this->sAppModule = strdup(s);
#endif
}
void Command::setGroupName(const char* s)
{
#if defined (_MSC_VER)
this->sGroup = _strdup(s);
#else
this->sGroup = strdup(s);
#endif
}
//--------------------------------------------------------------------------
// UNDO REDO transaction handling