ASPiK SDK
uicolorscontroller.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 #ifndef __uicolorscontroller__
6 #define __uicolorscontroller__
7 
8 #include "../uidescription.h"
9 
10 #if VSTGUI_LIVE_EDITING
11 
12 #include "../delegationcontroller.h"
13 #include "uiselection.h"
14 #include "uiundomanager.h"
15 #include "iaction.h"
16 
17 namespace VSTGUI {
18 class UIColorsDataSource;
19 class UIColor;
20 
21 //----------------------------------------------------------------------------------------------------
22 class UIColorsController : public CBaseObject, public DelegationController
23 {
24 public:
25  UIColorsController (IController* baseController, UIDescription* description, IActionPerformer* actionPerformer);
26  ~UIColorsController () override;
27 
28 protected:
29  CView* createView (const UIAttributes& attributes, const IUIDescription* description) override;
30  CView* verifyView (CView* view, const UIAttributes& attributes, const IUIDescription* description) override;
31  IControlListener* getControlListener (UTF8StringPtr name) override;
32  void valueChanged (CControl* pControl) override;
33  IController* createSubController (IdStringPtr name, const IUIDescription* description) override;
34 
35  SharedPointer<UIDescription> editDescription;
36  IActionPerformer* actionPerformer;
37  UIColorsDataSource* dataSource;
38  SharedPointer<UIColor> color;
39 
40  enum {
41  kAddTag = 0,
42  kRemoveTag,
43  kSearchTag
44  };
45 };
46 
47 } // namespace
48 
49 #endif // VSTGUI_LIVE_EDITING
50 
51 #endif // __uicolorscontroller__
Definition: customcontrols.cpp:8