OpenLexocad  27.0
Settings.h
Go to the documentation of this file.
1 #pragma once
2 #pragma warning(disable : 4251)
3 
4 #include <Base/GlobalId.h>
5 #include <Base/String.h>
6 #include <Base/Translator.h>
7 #include <Core/Log.h>
8 #include <Core/ViewerType.h>
9 #include <Core/core_defines2.h>
10 #include <stdint.h>
11 
12 #include <memory>
13 #include <vector>
14 
15 class QDialog;
16 class QTreeWidget;
17 class QSplitter;
18 
19 struct CodeExtendedInfoType;
20 
21 namespace Core
22 {
23 class SettingsP;
24 class CoreDocument;
25 class DocObject;
26 struct CodeProtectionFlags;
27 typedef std::shared_ptr<Core::CodeProtectionFlags> pCodeProtectionFlags;
28 
30 {
31  QString httpServer;
32  QString httpLogin;
33  QString httpPassword;
34  QString httpDir;
35  QString updateDir;
36 
41 };
42 
43 
44 
45 //
46 // BEWARE !!
47 //
48 // This class is PLATFORM-DEPENDENT !
49 //
50 // The reason is that the location in the system registry for file extension
51 // association is VALID ONLY FOR WINDOWS.
52 //
53 
54 
56 {
57 public:
59  {
63  INTERNAL
64  };
65 
66 
67 
68 
69 
71  {
74  ASK
75  };
76 
77  enum SnapMode
78  {
79  OLD_MODE = 0,
80  NEW_MODE = 1
81 
82  };
83 
85  {
86  coarse = 0, // .004 * (diagonal of bounding box )
87  medium_coarse = 1, // .002 * (diagonal of bounding box )
88  medium_fine = 2, // .001 * (diagonal of bounding box )
89  fine = 3, // .0005 * (diagonal of bounding box )
90  ownImpl = 4
91  };
92 
94  {
95  facet_options_visualization = 0,
96  facet_options_precise = 1,
97  facet_options_expert = 2,
98  facet_global = 3
99  };
100 
101  enum class ShapeCreationMode
102  {
103  Acis,
104  Mesh,
105  MeshOnlyForMultiGeo
106  };
107 
108 
109  Settings(int argc, char** argv);
110  ~Settings(void);
111 
112  void registerSettings();
113  void unregisterSettings();
114 
115  void saveWindowSettings(int mainWinDimensionX, int mainWinDimensionY, int mainWinPositionX, int mainWinPositionY, bool isMainWinMaximized);
116  void loadWindowSettings(int& mainWinDimensionX, int& mainWinDimensionY, int& mainWinPositionX, int& mainWinPositionY, bool& isMainWinMaximized);
117 
118  // void saveLexocadLayoutState(const QByteArray &state);
119  // bool loadLexocadLayoutState(QByteArray &state);
120 
121  ShapeCreationMode getDefaultIFCShapeCreationMode() const;
122  void setDefaultIFCShapeCreationMode(ShapeCreationMode m);
123 
124  void saveString(const QString& regKey, const QString& text);
125  void loadString(const QString& regKey, QString& text);
126 
127  void saveDialogGeometry(QWidget* dialog);
128  bool loadDialogGeometry(QWidget* dialog);
129 
130  void saveTreeWidgetSettings(QTreeWidget* tree);
131  bool loadTreeWidgetSettings(QTreeWidget* tree);
132 
133  void saveSplitterSettings(QSplitter* splitter);
134  bool loadSplitterSettings(QSplitter* splitter);
135 
136  void savePieceListDialogSettings(const QByteArray& tableState);
137  void loadPieceListDialogSettings(QByteArray& tableState);
138 
139  void saveIfcVersionDialogSettings(const QByteArray& data);
140  void loadIfcVersionDialogSettings(QByteArray& data);
141 
142  void saveProxyAuthentication(const QByteArray& data);
143  void loadProxyAuthentication(QByteArray& data);
144 
145  void saveLoadMaterialDlgSettings(const QByteArray& tableState);
146  bool loadLoadMaterialDlgSettings(QByteArray& tableState);
147 
148  void saveExtrudedAreaDlgSettings(int profileIndex, const QString& parameter1, const QString& parameter2);
149  void loadExtrudedAreaDlgSettings(int& profileIndex, QString& parameter1, QString& parameter2);
150 
151  void saveVisibilityDialogSettings(const QByteArray& geometryState, const QByteArray& splitterState);
152  bool loadVisibilityDialogSettings(QByteArray& geometryState, QByteArray& splitterState);
153 
154  const std::vector<int>& getUserDefFKeys();
155  void saveFKey(int fIdx, const QString& alternateActionName);
156  void loadFKeys(QStringList& actions);
157  QString loadFKey(const uint& functionKeyNumber) const;
158 
159  void saveScreenRecorderActive(bool onoff);
160  bool loadScreenRecorderActive();
161 
162  void saveScreenRecorderQualityProfile(int qualityProfile);
163  int loadScreenRecorderQualityProfile();
164 
165  void saveScreenRecorderWindowSize(const QSize& size);
166  QSize loadScreenRecorderWindowSize();
167 
168  void saveCameraAnimationViewerSize(const QSize& size);
169  QSize loadCameraAnimationViewerSize();
170 
171  void saveScreenRecorderAskForVideoFileName(bool onoff);
172  int loadScreenRecorderAskForVideoFileName();
173 
174  // void saveScreenRecorderQuality(int quality); //Target quantizer
175  // int loadScreenRecorderQuality();
176 
177  // void saveScreenRecorderFps(int fps);
178  // int loadScreenRecorderFps();
179 
180  void saveScreenRecorderOversize(bool onoff);
181  bool loadScreenRecorderOversize();
182  void saveScreenRecorderOversizeSize(const QSize& size);
183  QSize loadScreenRecorderOversizeSize();
184 
185  void saveScreenRecorderShowMenu(bool onoff);
186  bool loadScreenRecorderShowMenu();
187 
188  void saveScreenRecorderShowKeysAndMouse(bool onoff);
189  bool loadScreenRecorderShowKeysAndMouse();
190 
191  void saveScreenRecorderRecordSound(bool recordSound);
192  bool loadScreenRecorderRecordSound();
193 
194  void saveScreenRecorderShowRedRectangle(bool show);
195  bool loadScreenRecorderShowRedRectangle();
196 
197  void saveScreenRecorderRecordEvents(bool recordEvents);
198  bool loadScreenRecorderRecordEvents();
199 
200  void saveScreenRecorderPlayEvents(bool playEvents);
201  bool loadScreenRecorderPlayEvents();
202 
203  void saveWelcomeScreenVisible(bool onoff);
204  bool loadWelcomeScreenVisible();
205 
206  bool isUserDebugWindowVisible();
207  void setUserDebugWindowVisible(bool visible);
208 
209  void saveFonts(const QStringList& fonts);
210  QStringList loadFonts();
211 
212  void saveUserSettings(int cameraAnimationTime, int importMaxPoints);
213  void loadUserSettings(int& cameraAnimationTime, int& importMaxPoints);
214 
215  void setLastImportedFilePath(QString path);
216  QString getLastImportedFilePath();
217 
218  void setCurrentScriptFilePath(const QString& path);
219  QString getCurrentScriptFilePath() const;
220 
221  void setCurrentScriptId(const Base::GlobalId& aScriptId);
223 
224  void setCurrentScriptInsertionPoint(const Geom::Pnt& aInsertionPnt, bool isDragAndDropped, Core::DocObject* aDroppedOnObject);
225  Geom::Pnt getCurrentScriptInsertionPoint(bool& isDragAndDropped, Core::DocObject*& aDroppedOnObject) const;
226 
227  void setBuildingBlocksDir(std::string dir);
228  std::string getBuildingBlocksDir();
229  void setMaterialDir(std::string dir);
230  std::string getMaterialDir();
231 
232  void setIconsDir(std::string dir);
233  std::string getIconsDir();
234 
235  static void saveLanguage(CTranslator::Language language);
236  static CTranslator::Language loadLanguage();
237 
238  void enable_polgonoffset(bool onoff);
239  bool is_polgonoffset_enabled();
240 
241  double getRayPickRadius();
242  void setRayPickRadius(double r);
243 
244  CatalogType getCatalogType();
245  void setCatalogType(CatalogType);
246 
247  void setShowLocalAxisCross(bool onoff);
248  bool showLocalAxisCross();
249 
250  void setShowWorldAxisCross(bool onoff);
251  bool showWorldAxisCross();
252 
253  // void saveUseSaveReminder(bool onoff);
254  // bool loadUseSaveReminder();
255 
256  void setTest(bool onoff);
257  bool test() const;
258 
259  bool developer() const;
260 
261  void setMacroRecorderActive(bool onoff);
262  bool macroRecorderActive();
263 
264  // void setTranslationStepForPropertyView(double value);
265  // double getTranslationStepForPropertyView();
266 
267  void setRotationStepForPropertyView(double value);
268  double getRotationStepForPropertyView();
269 
270  void saveRecentFiles(const QStringList& list);
271  bool loadRecentFiles(QStringList& list);
272 
273  unsigned int getMaxRecentFiles();
274  void setMaxRecentFiles(unsigned int value);
275 
276  QString getUserCatalogDirInCadworkCat();
277  QString getUserCatalogDir(bool ignoreStandalone = false);
278  void setUserCatalogDir(const QString& dir);
279 
280  QString getBackupDir(bool ignoreStandalone = false);
281  // void setBackupDir(const QString &dir);
282 
283  int getNumberOfBackupFiles();
284  int getStandaloneNumberOfBackupFiles();
285  void setNumberOfBackupFiles(int count);
286 
287  int getIntervalOfBackupFiles();
288  int getStandaloneIntervalOfBackupFiles();
289  void setIntervalOfBackupFiles(int value);
290 
291  void loadCodeProtectionFlags(bool forceReload = true);
292  pCodeProtectionFlags getCodeProtectionFlags() const;
293  std::vector<int> codeProtectionTest(const std::vector<int>& requiredCodes) const;
294 
295  const std::vector<bool>& getDisabledCodes() const;
296  void setDisabledCodes(const std::vector<bool>& disabledCodes);
297 
298  static Core::Settings* getInstance();
299 
300  void setSubProductID_Standard();
301  void setSubProductID_IfcUser();
302  void setSubProductID_Plugin();
303  bool isSubProductID_Standard();
304  bool isSubProductID_IfcUser();
305  bool isSubProductID_Plugin();
306  std::string getSubProductIDAsString();
307  QString getPluginDir();
308  void setPluginDir(const QString& dir);
309 
310  QString getCadworkDir() const;
311  QString getCadworkPCLIBDir() const;
312  QString getCadworkCat() const;
313  QString getCadworkExeDir() const;
314  int getPCLIB_Version();
315  QString getCadworkUserprofile(bool ignoreStandalone = false) const;
316  QString getCadworkUserprofileWithVersion() const;
317  QString getCadworkClipboard() const;
318  int getCadworkNumberOfBackupFiles() const;
319  void setCadworkNumberOfBackupFiles(int value);
320  int getCadworkIntervalOfBackupFiles() const;
321  void setCadworkIntervalOfBackupFiles(int value);
322 
323  bool isCadwork3dInstalled() const;
324 
325  QString getPath2TestDocuments() const;
326 
327  QColor getBackgroundColor();
328  void setBackgroundColor(const QColor& color);
329 
330  QColor getGroundPlateColor();
331  void setGroundPlateColor(const QColor& color);
332 
333  void setOpenFileDir(QString dir);
334  QString getOpenFileDir();
335 
336  void setTextureOpenFileDir(QString dir);
337  QString getTextureOpenFileDir();
338 
339  // SubProductID getSubProductID();
340  // void setSubProductID(SubProductID id);
341 
342  // SubProductInfo getSubProductInfo(SubProductID id);
343  // void setSubProductInfo( SubProductID id, SubProductInfo i);
344 
345  void setCutOptions(CutOptions options);
346  CutOptions getCutOptions();
347 
348  CodeExtendedInfoType* getExtendedCodeInfo();
349  const QString& getClientNr();
350  QLocale::Country getClientCountry() const;
351 
352 
355  void setModulePreference(const QString& moduleName, const QString& key, const QString& value);
358  QString getModulePreference(const QString& moduleName, const QString& key, const QString& defaultValue = QString());
359 
360  void setViewAnimation(bool onoff);
361  bool getViewAnimation() const;
362 
363  void setShowScaleHandles(bool onoff);
364  bool getShowScaleHandles() const;
365 
366  void setEnableZBufferPDFHack(bool onoff);
367  bool getEnableZBufferPDFHack() const;
368 
369  void setTexturesAllFaces(bool onoff);
370  bool getTexturesAllFaces() const;
371 
372  void setShowConsole(bool on);
373  bool getShowConsole();
374 
375  void setWithDebugger(bool on);
376  bool getWithDebugger();
377 
378  void setStyleSheetName(const QString& name);
379  QString getStyleSheetName();
380  QString loadStyleSheet(const QStringList& list);
381 
382  QString getOpenLxVersionString() const;
383  void setOpenLxVersionString(const QString& aVersion);
384 
385  bool canUseAcis();
386 
387  // void setWoodUser(bool onoff);
388 
389  void setForceWoodUser(bool onoff);
390  bool getForceWoodUser() const;
391  bool getWoodUser();
392 
393  void setOpenBuiltUser(bool onoff);
394  bool getOpenBuiltUser();
395 
396  void setIfcUser(bool onoff, bool persistent = false);
397  bool getIfcUser();
398 
399  void setIfcViewerFile(QString a);
400  QString getIfcViewerFile();
401 
402  // void setIfcSettings(bool onoff, bool persistent = false);
403  // bool getIfcSettings();
404 
405  void setDebugUser(bool onoff, bool persistent = false);
406  bool getDebugUser(bool persistent = false);
407 
408  bool getBaubitUser();
409  void setBaubitUser(bool onoff);
410 
411  bool isConceptionUserByDefault();
412  bool isConceptionUser();
413  void setConceptionUser(bool onoff);
414 
415  void setDownloadPdbFiles(bool onoff);
416  bool getDownloadPdbFiles();
417 
418  void setUpdateToUnstable(bool onoff);
419  bool getUpdateToUnstable();
420 
421  void setAcisPartEnabled(bool on);
422  bool getAcisPartEnabled();
423 
424  void setLODEnabled(bool onoff);
425  bool getLODEnabled() const;
426 
427  void saveIntegratedL2DLayoutState(const QByteArray& state);
428  bool loadIntegratedL2DLayoutState(QByteArray& state);
429 
430  void setShowTextures(bool onoff);
431  bool getShowTextures() const;
432 
433  void setShowComponentTypeTextures(bool onoff);
434  bool getShowComponentTypeTextures() const;
435 
436  void set_HPK_UseRain(bool yesno);
437  bool get_HPK_UseRain() const;
438 
439  void setCalculateViewprovider(bool onoff);
440  bool getCalculateViewprovider() const;
441 
443  void setAlternativeLookupPath(const Base::String& path);
445  Base::String getAlternativeLookupPath() const;
446 
447  Base::String getLexo2DName();
448  void setLogLevel(Core::LOGLEVEL, bool persistent = false);
450 
451  bool getAcisVersion(int& major, int& minor, int& point);
452  void setAcisVersion(int major, int minor, int point);
453 
454  void setRenderWireframe(bool onoff);
455  bool getRenderWireframe() const;
456  void setRenderFacets(bool onoff);
457  bool getRenderFacets() const;
458 
459  SnapMode getSnapMode() const;
460  void setSnapMode(SnapMode);
461 
462  void setUngroupMode(bool onoff);
463  bool getUngroupMode() const;
464 
465  void setMultiGeoUngroupMode(bool onoff);
466  bool getMultiGeoUngroupMode() const;
467 
468  void setMultisampling(bool onoff);
469  bool getMultisampling() const;
470 
471  void setAllowMultiViewOnStart(bool onoff);
472  bool getAllowMultiViewOnStart() const;
473 
474  int getDebugMessageCounter();
475  void resetDebugMessageCounter();
476  void incrementDebugMessageCounter();
477 
478  void setAcisSaveEntityTextMode(bool on, bool persistent = false);
479  bool getAcisSaveEntityTextMode() const;
480 
481  void setShapeTessellationQuality(Core::Settings::ShapeTessellationQuality quality);
482  Core::Settings::ShapeTessellationQuality getShapeTessellationQuality();
483 
484  void set3dzExportCutOpenings(bool on, bool persistent = false);
485  bool get3dzExportCutOpenings() const;
486 
487  void setShowLayerNumber(bool onoff);
488  bool getShowLayerNumber() const;
489 
490  // void setShowLayerZValue(bool onoff);
491  // bool getShowLayerZValue() const;
492 
493  void setShowComponentTypeNumber(bool onoff);
494  bool getShowComponentTypeNumber() const;
495 
496  void setBeamBothEndsSame(bool onoff);
497  bool getBeamBothEndsSame();
498 
499  void setCadworkStyle(bool onoff);
500  bool getCadworkStyle() const;
501 
502  void setOSGMode(bool on, bool persistent = false);
503  bool getOSGMode() const;
504 
505  void setCombinedAcisSaveMode(bool on, bool persistent = false);
506  bool getCombinedAcisSaveMode() const;
507 
508  void setIFCFastMode(bool on, bool persistent = false);
509  bool getIFCFastMode() const;
510 
511  void setGlobalSecondViewerWireframeDrawStyle(bool onoff);
512  bool getGlobalSecondViewerWireframeDrawStyle() const;
513 
514  void setUseThreads(bool on, bool persistent = false);
515  bool getUseThreads() const;
516 
517  void setIVExportSelectedFilter(QString filter);
518  QString getIVExportSelectedFilter() const;
519 
520  void setRunningFromLexocad(bool on);
521  bool getRunningFromLexocad() const;
522 
523  void setFastRenderMode(bool on, bool persistent = false);
524  bool getFastRenderMode() const;
525 
526  bool getCheckShapesOnRecompute(int& checkLevel) const;
527  void setCheckShapesOnRecompute(bool on, int checkLevel);
528 
529  bool getCheckSliverFacesOnRecompute() const;
530  void setCheckSliverFacesOnRecompute(bool on);
531 
532  bool getCheckFacetedBrepOnRecompute() const;
533  void setCheckFacetedBrepOnRecompute(bool on);
534 
535  bool getPointCloudMode() const;
536  void setPointCloudMode(bool on);
537 
538  bool getPointCloudPointPicking() const;
539  bool setPointCloudPointPicking(bool on);
540 
541  bool getPointCloudPointSelection() const;
542  void setPointCloudPointSelection(bool on);
543 
544  bool getPointCloudDynamicPointSize() const;
545  void setPointCloudDynamicPointSize(bool on, bool persistent = false);
546 
547  bool getPointCloudChunkSelectionEnabled() const;
548  void setPointCloudChunkSelectionEnabled(bool on);
549 
550  bool getPointCoarseLOD() const;
551  void setPointCoarseLOD(bool on);
552 
553  void setCreateMiniDumpOnCrash(bool on);
554  bool getCreateMiniDumpOnCrash();
555 
556  void setSoSeparatorCachingEnabled(bool on);
557  bool getSoSeparatorCachingEnabled() const;
558 
559  void setSoSeparatorCachingEnabledSpecial(bool on);
560  bool getSoSeparatorCachingEnabledSpecial() const;
561 
562  bool getPointCloudLODenabled() const;
563  void setPointCloudLODenabled(bool on);
564 
565  bool getShowPointCloudInSecondViewer() const;
566  void setShowPointCloudInSecondViewer(bool on);
567 
568 
569  void setViewerGeo(Core::ViewerType viewerType, const QSize& size, const QPoint& pos, bool maximized);
570  void getViewerGeo(Core::ViewerType viewerType, QSize& size, QPoint& pos, bool& maximized);
571 
572  void setLexocadCode(bool on);
573  bool getLexocadCode() const;
574 
575  bool getStandalone() const;
576  void setStandalone(bool onoff);
577  QString getStandaloneAppDataPath() const;
578 
579  bool getShowMeshOrientation() const;
580  void setShowMeshOrientation(bool onoff);
581 
582  void setDefaultDoorPreset(QString preset);
583  QString getDefaultDoorPreset() const;
584 
585  void setDefaultWindowPreset(QString preset);
586  QString getDefaultWindowPreset() const;
587 
588  void setDefaultFrenchWindowPreset(QString preset);
589  QString getDefaultFrenchWindowPreset() const;
590 
591  void setDefaultGarageDoorPreset(QString preset);
592  QString getDefaultGarageDoorPreset() const;
593 
594  bool getNewZooming() const;
595  void setNewZooming(bool onoff);
596 
597  bool getCoinShaderMode() const;
598  void setCoinShaderMode(bool onoff, bool persistent = true);
599 
600  bool getProfiling() const;
601  void setProfiling(bool onoff);
602 
603  bool getMeshCaching() const;
604  void setMeshCaching(bool onoff);
605 
606  bool getAcisMeshMultiThreating() const;
607  void setAcisMeshMultiThreating(bool onoff);
608 
609  int getFastRenderBatchMaxVertexCount() const;
610  void setFastRenderBatchMaxVertexCount(int);
611 
612  bool getFastRenderEnableEdges() const;
613  void setFastRenderEnableEdges(bool);
614 
615  bool getIfcImport_ImportAsInventor() const;
616  void setIfcImport_ImportAsInventor(bool onoff, bool persistance = true);
617 
618  bool get_Arch_WallAxisSystem() const;
619  void set_Arch_WallAxisSystem(bool onoff);
620 
621  bool getSaveRestoreIfcModelWithDocument() const;
622  void setSaveRestoreIfcModelWithDocument(bool onoff);
623 
624  bool getMaterialViewSmallIcons() const;
625  void setMaterialViewSmallIcons(bool onoff);
626 
627  bool getOpenMaterialDlgSmallIcons() const;
628  void setOpenMaterialDlgSmallIcons(bool onoff);
629 
630  uint64_t getLODMinimalPointCount() const;
631  void setLODMinimalPointCount(uint64_t t);
632 
633  void setAcisMeshShapeEnabled(bool);
634  bool getAcisMeshShapeEnabled() const;
635 
636  void setLazyFacetedBrepShapeForIfcImport(bool v);
637  bool getLazyFacetedBrepShapeForIfcImport() const;
638 
639  void setNewSoIndexedFaceSet(bool v);
640  bool getNewSoIndexedFaceSet() const;
641 
642  void setShowPreviewSurfaceForVerticalView(bool onoff);
643  bool getShowPreviewSurfaceForVerticalView();
644 
645  void setIFCFastMode_ExtrudedAreaSolid(bool on, bool persistent /*=false*/);
646  bool getIFCFastMode_ExtrudedAreaSolid() const;
647 
648  void setDeepDebug(bool on);
649  bool getDeepDebug() const;
650 
651  void setAllowMemoryIsLowMsg(bool on);
652  bool getAllowMemoryIsLowMsg() const;
653 
654  QString getCadwork3DDir() const;
655 
656  void setComponentTypeDialogOldLook(bool onoff);
657  bool getComponentTypeDialogOldLook() const;
658 
659  void setWallSolveWarning(int status); // 0=do not show, 1=show once, 2=show always
660  int getWallSolveWarning() const;
661 
662  void enableElementCollector(bool);
663  bool isElementCollectorEnabled() const;
664 
665  bool isVulkanRenderingEnabled() const;
666  bool isFearerRenderingEnabled() const;
667 
668  // void setAutoClippingBoxMode(bool on);
669  // bool getAutoClippingBoxMode() const;
670 
671  void setNewViewProviderUpdate(bool on);
672  bool getNewViewProviderUpdate() const;
673 
674  void setVisibilityIconHas3States(bool on);
675  bool getVisibilityIconHas3States() const;
676 
677  void setSaveDialogGeometryInRegistry(bool on);
678  bool getSaveDialogGeometryInRegistry() const;
679 
680  uint64_t getMetalShapeSelectionFlags() const;
681  void setMetalShapeSelectionFlags(uint64_t flags);
682 
683  bool isWoodConstructionUser();
684 
685  bool isInternalCadworkUser();
686 
687  std::pair<int, int> getMinimalModernOpenGLVersion() const;
688 
689  void setObjExportUnprotected(bool unprotected);
690  bool isObjExportUnprotected() const;
691 
692  bool getRealLineThicknessMode() const;
693  void setRealLineThicknessMode(bool on);
694  const Geom::Trsf& getRealLineThicknessModeTrsf() const;
695  void setRealLineThicknessModeTrsf(const Geom::Trsf& trsf);
696 
697  Base::String getLxElementTypeIdentifier() const;
698 
699  Base::String getDisplayName();
700 
701  bool checkResultFromPolyToAcisConverter() const;
702  void setCheckResultFromPolyToAcisConverter(bool v);
703 
704 
705  bool allowQuadroCard() const;
706  Core::UpdateInfo getUpdateInfo();
707  bool getUpdateInfos(QString& appName, QString& updateDir);
708  bool getUpdateSetting(QString& organization, QString& application);
709 
710 
711 private:
712 
713  Settings(){};
714  Core::SettingsP* _pimpl = nullptr;
715  static Core::Settings* _instance;
716 };
717 
718 } // namespace Core
Definition: Settings.h:29
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: Settings.h:62
CoreDocument()
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:42
ShapeTessellationMode
Definition: Settings.h:93
CatalogType
Definition: Settings.h:58
QString httpServer_unstable
Definition: Settings.h:37
ShapeCreationMode
Definition: Settings.h:101
Core::PropertyText name
Definition: CoreDocument.h:143
Definition: Settings.h:73
QString httpServer
Definition: Settings.h:31
CORE_EXPORT void setLogLevel(LOGLEVEL)
Definition: Settings.h:61
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
CutOptions
Definition: Settings.h:70
QString httpLogin_unstable
Definition: Settings.h:38
Definition: Trsf.h:58
Definition: Settings.h:72
Definition: GlobalId.h:32
QString httpDir
Definition: Settings.h:34
QString httpPassword
Definition: Settings.h:33
Definition: Base.h:19
QString httpPassword_unstable
Definition: Settings.h:39
std::shared_ptr< Core::CodeProtectionFlags > pCodeProtectionFlags
Definition: Settings.h:26
Definition: Settings.h:55
LOGLEVEL
Definition: Log.h:19
CORE_EXPORT Base::String getCurrentScriptFilePath()
ShapeTessellationQuality
Definition: Settings.h:84
QString httpLogin
Definition: Settings.h:32
SnapMode
Definition: Settings.h:77
QString updateDir
Definition: Settings.h:35
QString httpDir_unstable
Definition: Settings.h:40
CORE_EXPORT Base::String getLastImportedFilePath()
General.
CORE_EXPORT LOGLEVEL getLogLevel()
CORE_EXPORT Base::GlobalId getCurrentScriptId()
Definition: Settings.h:60
ViewerType
Definition: ViewerType.h:6
Definition: DocObject.h:28