/// \return Current Editing mode
bool isEditingMode() const { return myIsEditing; }
- /// Returns true if the action can be processed. The default implementation is empty, returns false.
+ /// Returns true if the action can be processed. By default it is empty and returns false.
/// \param theActionType an action type
/// \param isActionEnabled if true, the enable state of the action
virtual bool canProcessAction(ModuleBase_ActionType theActionType, bool& isActionEnabled);
myWorkshop->updateCommandStatus();
#ifdef DEBUG_UNDO_REDO
- printHistoryInfo(QString("processAction %1").arg(theActionType == ActionUndo ? "Undo" : "Redo"),
- myCurrentHistoryIndex, mySelectedHistoryValues);
+ printHistoryInfo(QString("processAction %1").arg(theActionType == ActionUndo ? "Undo"
+ : "Redo"), myCurrentHistoryIndex, mySelectedHistoryValues);
#endif
return true;
}
#include <AppElements_Workbench.h>
#endif
+#include <Config_XMLReader.h>
+
#include <ModelAPI_AttributeDocRef.h>
#include <ModelAPI_AttributeIntArray.h>
#include <ModelAPI_AttributeDouble.h>
Config_PropManager::registerProp("Plugins", "default_path", "Default Path",
Config_Prop::Directory, "");
- std::string aDir = getenv(QString("%1Resources").arg(
- ModuleBase_Preferences::resourceMgr()->appName()).toLatin1());
+ std::string aDir = Config_XMLReader::resourcesConfigFile();
Config_PropManager::registerProp("Plugins", "import_initial_path", "Import initial directory",
Config_Prop::Directory, aDir);