33#include <boost/format.hpp>
97 OSEdTreeView* treeView = wxGetApp().mainFrame()->treeView();
108 if (dialog.ShowModal() == wxID_YES) {
113 if (module.hasBehaviorSource()) {
122 if (confirm.ShowModal() == wxID_YES) {
127 if (module.definesBehavior()) {
146 OSEdTreeView* treeView = wxGetApp().mainFrame()->treeView();
#define assert(condition)
static bool removeFileOrDirectory(const std::string &path)
static std::string fileOfPath(const std::string pathName)
static bool fileIsWritable(const std::string fileName)
wxWindow * parentWindow() const
@ CMD_REMOVE_MODULE
Remove module command id.
void moduleView(const std::string &name)
virtual std::string icon() const
virtual GUICommand * create() const
virtual ~OSEdRemoveModuleCmd()
static OSEdTextGenerator & instance()
@ TXT_QUESTION_REMOVE_MODULE
Remove module question.
@ TXT_QUESTION_REMOVE_BEHAVIOR_FILE
Remove behavior question.
bool isModuleSelected() const
wxTreeItemId selectedModuleId()
std::string pathOfModule(wxTreeItemId id)
OSEdInfoView * infoView() const
void removeItem(wxTreeItemId id)
std::string selectedModule()
static OperationIndex & operationIndex()
void removeModule(const std::string &path, const std::string &modName)
virtual boost::format text(int textId)
static wxString toWxString(const std::string &source)