VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
colorEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vrfutil/rwColor.h>
16 
17 class QLabel;
18 class QHBoxLayout;
19 class QColorDialog;
20 
21 namespace makVrv
22 {
23  class DtColorPushButton;
24 }
25 
26 namespace makVrf
27 {
30  {
31  Q_OBJECT
32 
33  public:
34  DtColorEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
35 
36  //DTOR
37  virtual ~DtColorEntryWidget();
38 
40  virtual void setLabel(const std::string&);
41 
43  virtual void setRange(double bottom, double top);
44 
46  virtual void setDefaultValue(const std::string&);
47 
49  virtual void setVariableData(const std::string&);
50 
52  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
53 
55  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
56 
58  virtual void setColor(const DtRwColor&);
59  virtual DtRwColor color() const;
60 
61  static makVrv::DtUnicode codeVariableType()
62  {
63  return makVrv::DtUnicode::tr("Color: rgba");
64  }
65 
68  virtual void setBlackIsOne(bool);
69  virtual bool blackIsOne() const;
70 
72  boost::signal<void ()> signal_changed;
73 
74  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(QWidget* parent, const Qt::WindowFlags& flags = 0) const;
75 
77  virtual void setShowColorWidget(bool);
78 
80  virtual void setShowAlphaChannel(bool);
81 
82  protected slots:
83  virtual void onColorChanged();
84 
85  public:
88  QHBoxLayout* myContentLayout;
89  QColorDialog* myColorDialog;
90 
91  protected:
94  };
95 
97 
100  {
101  public:
102  DtColorVariableWidgetExtension(makVrv::DtDe&, QWidget* w, const Qt::WindowFlags& f = 0);
104  };
105 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)