![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2000 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: tmDisplayOptions.h,v $ $Revision: 1.30 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef TMDISPLAYOPTIONS_H 00013 #define TMDISPLAYOPTIONS_H 00014 00015 #include <QtCore/QObject> 00016 00017 #include "drawerNative/convUtils.h" 00018 #include "drawerNative/coordUtils.h" 00019 #include "archiver/archiver.h" 00020 #include "tmqt/showDialogType.h" 00021 00022 #include <QtGui/QColor> 00023 00024 class DtEntityMapperKey; 00025 class DtTMFactory; 00026 class DtUnitDisplayManager; 00027 00031 00032 #include "tmqt/tmqtDefines.h" 00033 class DT_DLL_tmqt DtTMDisplayOptions : public DtArchivableObject 00034 { 00035 00036 Q_OBJECT 00037 00038 public: 00039 00041 DtTMDisplayOptions(); 00042 00044 virtual ~DtTMDisplayOptions(); 00045 00047 DtTMDisplayOptions(const DtTMDisplayOptions& orig); 00048 00050 virtual DtTMDisplayOptions& operator=(const DtTMDisplayOptions& rhs); 00051 00053 virtual bool operator==(const DtTMDisplayOptions&) const; 00054 00055 virtual bool overlayTabLocation() const; 00056 virtual void setOverlayTabLocation(bool); 00057 00058 virtual bool displayDeleteObjectsDialog() const; 00059 virtual void setDisplayDeleteObjectsDialog(bool); 00060 00061 virtual bool displayWatermark() const; 00062 00065 virtual int displayFrameRate() const; 00066 00068 virtual int displayFrameRateAsSet() const; 00069 00070 virtual int maxDisplayFrameRate() const; 00071 virtual void setMaxDisplayFrameRate(int); 00072 00073 virtual int minDisplayFrameRate() const; 00074 virtual void setMinDisplayFrameRate(int); 00075 00076 virtual const int iconScale() const; 00077 00078 virtual const int maxIconScale() const; 00079 virtual void setMaxIconScale(int); 00080 00081 virtual const int minIconScale() const; 00082 virtual void setMinIconScale(int); 00083 00084 virtual bool continuousNavigation() const; 00085 00086 virtual bool routeArrowShown() const; 00087 00088 virtual DtShowDialogType showDialogType() const; 00089 00090 virtual int cacheSymbolOptions() const; 00091 virtual bool cacheSymbolOptionOn(int) const; 00092 00093 virtual int showIndicatorOption() const; 00094 00095 virtual bool manageFrameRates() const; 00096 00097 virtual bool freehandEdit() const; 00098 00099 virtual bool animEnable() const; 00100 00101 virtual QColor labelColor() const; 00102 00103 virtual QColor zoomboxColor() const; 00104 virtual int zoomboxLineWidth() const; 00105 00107 virtual const DtCoordSys& coordinateSystem() const; 00108 00109 virtual void setUnitDisplayManager(DtUnitDisplayManager*); 00110 virtual DtUnitDisplayManager* unitDisplayManager() const; 00111 00112 virtual bool init(const DtTMFactory*); 00113 00114 virtual bool nameLabelShown() const; 00115 virtual bool layerLabelShown() const; 00116 virtual bool labelLabelShown() const; 00117 virtual bool shadowText() const; 00118 00119 public: 00120 00122 static DtTMDisplayOptions* create(); 00123 00124 virtual DtTMDisplayOptions* clone() const; 00125 00126 signals: 00127 00128 void shadowTextChanged(bool); 00129 void displayFrameRateChanged(int); 00130 void iconScaleChanged(int); 00131 void showDialogTypeChanged(DtShowDialogType type); 00132 void labelColorChanged(const QColor&); 00133 void zoomboxColorChanged(const QColor&); 00134 void zoomboxLineWidthChanged(int); 00135 void unitDisplayChanged(const DtUnitDisplayManager*); 00136 void continuousNavigationChanged(bool); 00137 void routeArrowShownChanged(bool); 00138 void animEnableChanged(bool); 00139 void freehandEditChanged(bool); 00140 void overlayTabLocationChanged(bool); 00141 void displayDeleteObjectsDialogChanged(bool); 00142 void displayWatermarkChanged(bool); 00143 void nameLabelShownChanged(bool); 00144 void labelLabelShownChanged(bool); 00145 void layerLabelShownChanged(bool); 00146 void manageFrameRatesChanged(bool); 00147 00148 void cacheSymbolOptionsChanged(int); 00149 void showIndicatorOptionChanged(int); 00150 00151 public slots: 00152 00153 virtual void setShadowText(bool); 00154 virtual void setNameLabelShown(bool); 00155 virtual void setLabelLabelShown(bool); 00156 virtual void setLayerLabelShown(bool); 00157 virtual void setDisplayFrameRate(int); 00158 virtual void setIconScale(int); 00159 virtual void setShowDialogType(DtShowDialogType type); 00160 virtual void setLabelColor(const QColor& color); 00161 virtual void setZoomboxColor(const QColor& color); 00162 virtual void setZoomboxLineWidth(int); 00163 virtual void setRouteArrowShown(bool); 00164 virtual void setAnimEnable(bool); 00165 virtual void setFreehandEdit(bool); 00166 virtual void setDisplayWatermark(bool); 00167 virtual void setManageFrameRates(bool); 00168 00169 virtual void setCacheSymbolOptions(int); 00170 virtual void setCacheSymbolOption(int opt, bool onOff); 00171 00172 virtual void setShowIndicatorOption(int); 00173 00176 virtual void setContinuousNavigation(bool); 00177 00178 protected: 00179 virtual void read(QTextStream& ts); 00180 00181 protected: 00182 00183 static const bool theDefaultShadowText; 00184 static const bool theDefaultOverlayTabLocation; 00185 static const bool theDefaultDisplayDeleteObjectsDialog; 00186 static const bool theDefaultNameLabelShown; 00187 static const bool theDefaultLabelLabelShown; 00188 static const bool theDefaultLayerLabelShown; 00189 00190 static const int theDefaultDisplayFrameRate; 00191 static const int theDefaultMaxDisplayFrameRate; 00192 static const int theDefaultMinDisplayFrameRate; 00193 00194 static const int theDefaultIconScale; 00195 static const int theDefaultMaxIconScale; 00196 static const int theDefaultMinIconScale; 00197 00198 static const bool theDefaultAnimEnable; 00199 static const bool theDefaultFreehandEdit; 00200 00201 static const DtShowDialogType theDefaultShowType; 00202 00203 static const QColor theDefaultLabelColor; 00204 00205 static const QColor theDefaultZoomboxColor; 00206 static const int theDefaultZoomboxLineWidth; 00207 00208 static const int theDefaultContinuousNavigation; 00209 static const bool theDefaultRouteArrowShown; 00210 00211 bool myOverlayTabLocation; 00212 bool myDisplayDeleteObjectsDialog; 00213 00214 int myDisplayFrameRate; 00215 int myMaxDisplayFrameRate; 00216 int myMinDisplayFrameRate; 00217 00218 int myIconScale; 00219 int myMaxIconScale; 00220 int myMinIconScale; 00221 00222 bool myAnimEnable; 00223 00224 DtShowDialogType myShowDialogType; 00225 QColor myLabelColor; 00226 00227 QColor myZoomboxColor; 00228 int myZoomboxLineWidth; 00229 00230 DtUnitDisplayManager* myUnitDisplayManager; 00231 00232 bool myContinuousNavigation; 00233 bool myRouteArrowShown; 00234 bool myFreehandEdit; 00235 00236 bool myNameLabelShown; 00237 bool myLabelLabelShown; 00238 bool myLayerLabelShown; 00239 bool myShadowText; 00240 00242 int myCacheSymbolOptions; 00243 00245 int myShowIndicatorOption; 00246 00247 bool myDisplayWatermark; 00248 00249 bool myManageFrameRates; 00250 }; 00251 00252 #endif