VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
readOnlyWidget.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2017 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
10 
11 #include <QtWidgets/QWidget>
12 
13 class DtBehaviorUi;
14 class DtFilename;
16 class DtModelSetEntry;
17 class QHBoxLayout;
18 class QLabel;
19 class QPushButton;
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
27 {
28 
29  Q_OBJECT
30 
31 public:
32 
34  DtReadOnlyWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
35 
37  virtual ~DtReadOnlyWidget();
38 
39  virtual void setButtonTitle(const QString&);
40  virtual void setLabel(const QString&);
41 
42  virtual void setBackgroundColor(const QColor&);
43  const QColor& backgroundColor() const
44  {
45  return myBackgroundColor;
46  }
47 
48  virtual void paintEvent(QPaintEvent*);
49 
50  virtual void resetStyleSheets();
51 
52 signals:
53  void released();
54 
55 public:
56  QHBoxLayout* myReadOnlyLayout;
59 
60 protected:
62 };
63 
66 {
67 public:
70 
72  virtual ~DtReadOnlyWidgetCreator();
73 
75  static DtReadOnlyWidgetCreator& instance(makVrv::DtDe&);
76 
78  static void registerInstance(makVrv::DtDe&, DtReadOnlyWidgetCreator*);
79 
81  virtual DtReadOnlyWidget* create(QWidget* parent);
82 
83 protected:
85 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)