VR-Forces 4.1.1 Class Documentation
tmDisplayOptions.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: tmDisplayOptions.h,v $ $Revision: 1.30 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef TMDISPLAYOPTIONS_H
13 #define TMDISPLAYOPTIONS_H
14 
15 #include <QtCore/QObject>
16 
17 #include "drawerNative/convUtils.h"
19 #include "archiver/archiver.h"
20 #include "tmqt/showDialogType.h"
21 
22 #include <QtGui/QColor>
23 
24 class DtEntityMapperKey;
25 class DtTMFactory;
27 
31 
32 #include "tmqt/tmqtDefines.h"
34 {
35 
36  Q_OBJECT
37 
38 public:
39 
42 
44  virtual ~DtTMDisplayOptions();
45 
48 
50  virtual DtTMDisplayOptions& operator=(const DtTMDisplayOptions& rhs);
51 
53  virtual bool operator==(const DtTMDisplayOptions&) const;
54 
55  virtual bool overlayTabLocation() const;
56  virtual void setOverlayTabLocation(bool);
57 
58  virtual bool displayDeleteObjectsDialog() const;
59  virtual void setDisplayDeleteObjectsDialog(bool);
60 
61  virtual bool displayWatermark() const;
62 
65  virtual int displayFrameRate() const;
66 
68  virtual int displayFrameRateAsSet() const;
69 
70  virtual int maxDisplayFrameRate() const;
71  virtual void setMaxDisplayFrameRate(int);
72 
73  virtual int minDisplayFrameRate() const;
74  virtual void setMinDisplayFrameRate(int);
75 
76  virtual const int iconScale() const;
77 
78  virtual const int maxIconScale() const;
79  virtual void setMaxIconScale(int);
80 
81  virtual const int minIconScale() const;
82  virtual void setMinIconScale(int);
83 
84  virtual bool continuousNavigation() const;
85 
86  virtual bool routeArrowShown() const;
87 
88  virtual DtShowDialogType showDialogType() const;
89 
90  virtual int cacheSymbolOptions() const;
91  virtual bool cacheSymbolOptionOn(int) const;
92 
93  virtual int showIndicatorOption() const;
94 
95  virtual bool manageFrameRates() const;
96 
97  virtual bool freehandEdit() const;
98 
99  virtual bool animEnable() const;
100 
101  virtual QColor labelColor() const;
102 
103  virtual QColor zoomboxColor() const;
104  virtual int zoomboxLineWidth() const;
105 
107  virtual const DtCoordSys& coordinateSystem() const;
108 
109  virtual void setUnitDisplayManager(DtUnitDisplayManager*);
110  virtual DtUnitDisplayManager* unitDisplayManager() const;
111 
112  virtual bool init(const DtTMFactory*);
113 
114  virtual bool nameLabelShown() const;
115  virtual bool layerLabelShown() const;
116  virtual bool labelLabelShown() const;
117  virtual bool shadowText() const;
118 
119 public:
120 
122  static DtTMDisplayOptions* create();
123 
124  virtual DtTMDisplayOptions* clone() const;
125 
126 signals:
127 
128  void shadowTextChanged(bool);
129  void displayFrameRateChanged(int);
130  void iconScaleChanged(int);
131  void showDialogTypeChanged(DtShowDialogType type);
132  void labelColorChanged(const QColor&);
133  void zoomboxColorChanged(const QColor&);
134  void zoomboxLineWidthChanged(int);
135  void unitDisplayChanged(const DtUnitDisplayManager*);
136  void continuousNavigationChanged(bool);
137  void routeArrowShownChanged(bool);
138  void animEnableChanged(bool);
139  void freehandEditChanged(bool);
140  void overlayTabLocationChanged(bool);
141  void displayDeleteObjectsDialogChanged(bool);
142  void displayWatermarkChanged(bool);
143  void nameLabelShownChanged(bool);
144  void labelLabelShownChanged(bool);
145  void layerLabelShownChanged(bool);
146  void manageFrameRatesChanged(bool);
147 
148  void cacheSymbolOptionsChanged(int);
149  void showIndicatorOptionChanged(int);
150 
151 public slots:
152 
153  virtual void setShadowText(bool);
154  virtual void setNameLabelShown(bool);
155  virtual void setLabelLabelShown(bool);
156  virtual void setLayerLabelShown(bool);
157  virtual void setDisplayFrameRate(int);
158  virtual void setIconScale(int);
159  virtual void setShowDialogType(DtShowDialogType type);
160  virtual void setLabelColor(const QColor& color);
161  virtual void setZoomboxColor(const QColor& color);
162  virtual void setZoomboxLineWidth(int);
163  virtual void setRouteArrowShown(bool);
164  virtual void setAnimEnable(bool);
165  virtual void setFreehandEdit(bool);
166  virtual void setDisplayWatermark(bool);
167  virtual void setManageFrameRates(bool);
168 
169  virtual void setCacheSymbolOptions(int);
170  virtual void setCacheSymbolOption(int opt, bool onOff);
171 
172  virtual void setShowIndicatorOption(int);
173 
176  virtual void setContinuousNavigation(bool);
177 
178 protected:
179  virtual void read(QTextStream& ts);
180 
181 protected:
182 
183  static const bool theDefaultShadowText;
184  static const bool theDefaultOverlayTabLocation;
186  static const bool theDefaultNameLabelShown;
187  static const bool theDefaultLabelLabelShown;
188  static const bool theDefaultLayerLabelShown;
189 
190  static const int theDefaultDisplayFrameRate;
193 
194  static const int theDefaultIconScale;
195  static const int theDefaultMaxIconScale;
196  static const int theDefaultMinIconScale;
197 
198  static const bool theDefaultAnimEnable;
199  static const bool theDefaultFreehandEdit;
200 
202 
203  static const QColor theDefaultLabelColor;
204 
205  static const QColor theDefaultZoomboxColor;
206  static const int theDefaultZoomboxLineWidth;
207 
209  static const bool theDefaultRouteArrowShown;
210 
213 
217 
221 
223 
225  QColor myLabelColor;
226 
229 
231 
235 
240 
243 
246 
248 
250 };
251 
252 #endif

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)