ASPiK SDK
testmodel.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "vstgui/standalone/include/iuidescwindow.h"
8 #include "vstgui/standalone/include/helpers/valuelistener.h"
9 
10 //------------------------------------------------------------------------
11 namespace MyApp {
12 
15 
16 //------------------------------------------------------------------------
17 class TestModel : public IModelBinding,
18  public ValueListenerAdapter,
19  public std::enable_shared_from_this<TestModel>
20 {
21 public:
22  using ValuePtr = VSTGUI::Standalone::ValuePtr;
24 
25  TestModel ();
26 
27  const ValueList& getValues () const override { return values; }
28 
29  void onEndEdit (IValue& value) override;
30 
31 private:
32  void addValue (ValuePtr&& value);
33  ValueList values;
34 };
35 
36 //------------------------------------------------------------------------
37 } // MyApp
void onEndEdit(IValue &value) override
Definition: testmodel.cpp:38
Definition: valuelistener.h:18
Definition: iuidescwindow.h:26
Definition: testabout.cpp:13
Definition: ivalue.h:20
Definition: testmodel.h:17