VR-Forces 4.1.1 Class Documentation
DtSymbolDecorationSettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtGui/QWidget>
15 
16 class QFrame;
17 class QLabel;
18 class QSlider;
19 class QCheckBox;
20 class QPushButton;
21 class QListWidget;
22 class QListWidgetItem;
23 
24 namespace makVrv
25 {
26 
30  : public QWidget
32  { Q_OBJECT;
33  public:
34 
37  Qt::WindowFlags f = Qt::Widget );
38 
41 
43  virtual void clearDecorations();
44 
47  virtual int addDecoration( const std::string& decorationName );
48 
50  virtual void setDecorationState( unsigned int index, bool enabled );
51 
53  virtual void setShowListOnly( bool visible );
54 
56  virtual void setShadowText( bool enabled );
57 
59  virtual void setForegroundColor( float r, float g, float b );
60 
62  virtual void setBackgroundColor( float r, float g, float b );
63 
65  virtual void setBackgroundOpacity( float a );
66 
67  protected:
68 
71  void setupGui();
72 
75  void connectToSignals();
76 
77  protected slots:
78 
81  virtual void onItemChanged( QListWidgetItem *item );
82 
84  virtual void onChangeShadowText( bool enabled );
85 
87  virtual void onChangeForegroundColor();
88 
90  virtual void onChangeBackgroundColor();
91 
93  virtual void onChangeOpacity( int val );
94 
95  protected:
96 
97  typedef std::map<unsigned int, QListWidgetItem*> ItemMap;
99 
100  QListWidget* myList;
110  QSlider* myOpacitySlider;
111 
112  unsigned int myNextItemId;
113 
114  };
115 
116 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)