Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1351: partition is not done
[modules/shaper.git]
/
src
/
Config
/
Config_Prop.cpp
diff --git
a/src/Config/Config_Prop.cpp
b/src/Config/Config_Prop.cpp
index 7904021b62b22ec9bf520ecf554f51e3bea16900..91b9686700a5fff66ce0fb5b44db621294a62f6a 100644
(file)
--- a/
src/Config/Config_Prop.cpp
+++ b/
src/Config/Config_Prop.cpp
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Config_Prop.cpp
// Created: 18 Sep 2014
// Author: Mikhail PONIKAROV
// File: Config_Prop.cpp
// Created: 18 Sep 2014
// Author: Mikhail PONIKAROV
@@
-12,7
+14,14
@@
void Config_Prop::setValue(const std::string& theValue)
if (theValue != myValue) {
myValue = theValue;
static const Events_ID aChangedEvent = Events_Loop::loop()->eventByName("PreferenceChanged");
if (theValue != myValue) {
myValue = theValue;
static const Events_ID aChangedEvent = Events_Loop::loop()->eventByName("PreferenceChanged");
- Events_Loop::loop()->send(
boost
::shared_ptr<Events_Message>(
+ Events_Loop::loop()->send(
std
::shared_ptr<Events_Message>(
new Events_Message(aChangedEvent, this)));
}
}
new Events_Message(aChangedEvent, this)));
}
}
+
+void Config_Prop::setDefaultValue(const std::string& theValue)
+{
+ if (theValue != myDefaultValue) {
+ myDefaultValue = theValue;
+ }
+}