33#include <boost/format.hpp>
94 string editor =
options->editor();
108 OSEdTreeView* treeView = wxGetApp().mainFrame()->treeView();
114 OperationModule&
module = OperationContainer::module(pathName, modName);
116 if (module.hasBehaviorSource()) {
117 string code =
module.behaviorSourceModule();
118 cmd = editor +
" " + code;
121 string code =
module.propertiesModule();
122 size_t pos = code.find_last_of(
".");
134 cmd = editor +
" " + code;
156 OSEdTreeView* treeView = wxGetApp().mainFrame()->treeView();
#define assert(condition)
find Finds info of the inner loops in the false
static MachInfoCmdLineOptions options
static std::string dataDirPath(const std::string &prog)
static const std::string DIRECTORY_SEPARATOR
static void copy(const std::string &source, const std::string &target)
static bool fileIsWritable(const std::string fileName)
static bool fileExists(const std::string fileName)
wxWindow * parentWindow() const
static const wxString APPLICATION_NAME
The name of the application.
@ CMD_MODIFY_BEHAVIOR
Modify operation behavior command id.
static const std::string BEHAVIOR_TEMPLATE_FILE_NAME
Name of the behavior template file name.
virtual GUICommand * create() const
virtual std::string icon() const
virtual ~OSEdModifyBehaviorCmd()
static OSEdTextGenerator & instance()
@ TXT_ERROR_OPEN
Error when opening fails.
@ TXT_ERROR_NO_EDITOR
Error when no editor is given.
std::string pathOfModule(wxTreeItemId id)
bool isOperationSelected() const
wxTreeItemId selectedOperationId()
wxTreeItemId moduleIdOfOperation(wxTreeItemId id)
std::string moduleOfOperation(wxTreeItemId id)
virtual boost::format text(int textId)
static wxString toWxString(const std::string &source)
static std::string toString(const wxString &source)