virtual void SetData(const Value& v) { SetText(AsString(v)); } virtual Value GetData() const { return GetText(); }
Quote: |
Not quite sure it is completely right: ProgressIndicator is kind of static value - user cannot change it. So far the policy was that only widgets that are editable have Value. The reason is that if you want to store all user supplied values in the dialog, you can simply go through all widgets and store the value if it is not Value::Void - that indicates that the widget does not have associated value. |