added changed event handler.
This commit is contained in:
1 parent
7eb2417456
commit
10df4a6a99
4 files changed
+6
-1
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ namespace coreutils {
|
|||||||
write(*this);
|
write(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void changed(ZString key, ZString value) overide;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -217,4 +217,6 @@ namespace coreutils {
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JString::changed(ZString key, ZString value) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -69,6 +69,7 @@ namespace coreutils {
|
|||||||
|
|
||||||
Proxy& operator=(coreutils::MString value) {
|
Proxy& operator=(coreutils::MString value) {
|
||||||
jstring.set(key, value);
|
jstring.set(key, value);
|
||||||
|
jstring.changed(key, value);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,6 +86,8 @@ namespace coreutils {
|
|||||||
|
|
||||||
MString pretty();
|
MString pretty();
|
||||||
|
|
||||||
|
virtual void changed(ZString key, ZString value);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void removeWhitespace();
|
void removeWhitespace();
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user