2 #pragma warning(disable : 4251) 19 struct CodeExtendedInfoType;
26 struct CodeProtectionFlags;
95 facet_options_visualization = 0,
96 facet_options_precise = 1,
97 facet_options_expert = 2,
112 void registerSettings();
113 void unregisterSettings();
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);
121 ShapeCreationMode getDefaultIFCShapeCreationMode()
const;
122 void setDefaultIFCShapeCreationMode(ShapeCreationMode m);
124 void saveString(
const QString& regKey,
const QString& text);
125 void loadString(
const QString& regKey, QString& text);
127 void saveDialogGeometry(QWidget* dialog);
128 bool loadDialogGeometry(QWidget* dialog);
130 void saveTreeWidgetSettings(QTreeWidget* tree);
131 bool loadTreeWidgetSettings(QTreeWidget* tree);
133 void saveSplitterSettings(QSplitter* splitter);
134 bool loadSplitterSettings(QSplitter* splitter);
136 void savePieceListDialogSettings(
const QByteArray& tableState);
137 void loadPieceListDialogSettings(QByteArray& tableState);
139 void saveIfcVersionDialogSettings(
const QByteArray& data);
140 void loadIfcVersionDialogSettings(QByteArray& data);
142 void saveProxyAuthentication(
const QByteArray& data);
143 void loadProxyAuthentication(QByteArray& data);
145 void saveLoadMaterialDlgSettings(
const QByteArray& tableState);
146 bool loadLoadMaterialDlgSettings(QByteArray& tableState);
148 void saveExtrudedAreaDlgSettings(
int profileIndex,
const QString& parameter1,
const QString& parameter2);
149 void loadExtrudedAreaDlgSettings(
int& profileIndex, QString& parameter1, QString& parameter2);
151 void saveVisibilityDialogSettings(
const QByteArray& geometryState,
const QByteArray& splitterState);
152 bool loadVisibilityDialogSettings(QByteArray& geometryState, QByteArray& splitterState);
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;
159 void saveScreenRecorderActive(
bool onoff);
160 bool loadScreenRecorderActive();
162 void saveScreenRecorderQualityProfile(
int qualityProfile);
163 int loadScreenRecorderQualityProfile();
165 void saveScreenRecorderWindowSize(
const QSize& size);
166 QSize loadScreenRecorderWindowSize();
168 void saveCameraAnimationViewerSize(
const QSize& size);
169 QSize loadCameraAnimationViewerSize();
171 void saveScreenRecorderAskForVideoFileName(
bool onoff);
172 int loadScreenRecorderAskForVideoFileName();
180 void saveScreenRecorderOversize(
bool onoff);
181 bool loadScreenRecorderOversize();
182 void saveScreenRecorderOversizeSize(
const QSize& size);
183 QSize loadScreenRecorderOversizeSize();
185 void saveScreenRecorderShowMenu(
bool onoff);
186 bool loadScreenRecorderShowMenu();
188 void saveScreenRecorderShowKeysAndMouse(
bool onoff);
189 bool loadScreenRecorderShowKeysAndMouse();
191 void saveScreenRecorderRecordSound(
bool recordSound);
192 bool loadScreenRecorderRecordSound();
194 void saveScreenRecorderShowRedRectangle(
bool show);
195 bool loadScreenRecorderShowRedRectangle();
197 void saveScreenRecorderRecordEvents(
bool recordEvents);
198 bool loadScreenRecorderRecordEvents();
200 void saveScreenRecorderPlayEvents(
bool playEvents);
201 bool loadScreenRecorderPlayEvents();
203 void saveWelcomeScreenVisible(
bool onoff);
204 bool loadWelcomeScreenVisible();
206 bool isUserDebugWindowVisible();
207 void setUserDebugWindowVisible(
bool visible);
209 void saveFonts(
const QStringList& fonts);
210 QStringList loadFonts();
212 void saveUserSettings(
int cameraAnimationTime,
int importMaxPoints);
213 void loadUserSettings(
int& cameraAnimationTime,
int& importMaxPoints);
215 void setLastImportedFilePath(QString path);
218 void setCurrentScriptFilePath(
const QString& path);
224 void setCurrentScriptInsertionPoint(
const Geom::Pnt& aInsertionPnt,
bool isDragAndDropped,
Core::DocObject* aDroppedOnObject);
227 void setBuildingBlocksDir(std::string dir);
228 std::string getBuildingBlocksDir();
229 void setMaterialDir(std::string dir);
230 std::string getMaterialDir();
232 void setIconsDir(std::string dir);
233 std::string getIconsDir();
235 static void saveLanguage(CTranslator::Language language);
236 static CTranslator::Language loadLanguage();
238 void enable_polgonoffset(
bool onoff);
239 bool is_polgonoffset_enabled();
241 double getRayPickRadius();
242 void setRayPickRadius(
double r);
244 CatalogType getCatalogType();
245 void setCatalogType(CatalogType);
247 void setShowLocalAxisCross(
bool onoff);
248 bool showLocalAxisCross();
250 void setShowWorldAxisCross(
bool onoff);
251 bool showWorldAxisCross();
256 void setTest(
bool onoff);
259 bool developer()
const;
261 void setMacroRecorderActive(
bool onoff);
262 bool macroRecorderActive();
267 void setRotationStepForPropertyView(
double value);
268 double getRotationStepForPropertyView();
270 void saveRecentFiles(
const QStringList& list);
271 bool loadRecentFiles(QStringList& list);
273 unsigned int getMaxRecentFiles();
274 void setMaxRecentFiles(
unsigned int value);
276 QString getUserCatalogDirInCadworkCat();
277 QString getUserCatalogDir(
bool ignoreStandalone =
false);
278 void setUserCatalogDir(
const QString& dir);
280 QString getBackupDir(
bool ignoreStandalone =
false);
283 int getNumberOfBackupFiles();
284 int getStandaloneNumberOfBackupFiles();
285 void setNumberOfBackupFiles(
int count);
287 int getIntervalOfBackupFiles();
288 int getStandaloneIntervalOfBackupFiles();
289 void setIntervalOfBackupFiles(
int value);
291 void loadCodeProtectionFlags(
bool forceReload =
true);
293 std::vector<int> codeProtectionTest(
const std::vector<int>& requiredCodes)
const;
295 const std::vector<bool>& getDisabledCodes()
const;
296 void setDisabledCodes(
const std::vector<bool>& disabledCodes);
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);
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);
323 bool isCadwork3dInstalled()
const;
325 QString getPath2TestDocuments()
const;
327 QColor getBackgroundColor();
328 void setBackgroundColor(
const QColor& color);
330 QColor getGroundPlateColor();
331 void setGroundPlateColor(
const QColor& color);
333 void setOpenFileDir(QString dir);
334 QString getOpenFileDir();
336 void setTextureOpenFileDir(QString dir);
337 QString getTextureOpenFileDir();
345 void setCutOptions(CutOptions options);
346 CutOptions getCutOptions();
348 CodeExtendedInfoType* getExtendedCodeInfo();
349 const QString& getClientNr();
350 QLocale::Country getClientCountry()
const;
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());
360 void setViewAnimation(
bool onoff);
361 bool getViewAnimation()
const;
363 void setShowScaleHandles(
bool onoff);
364 bool getShowScaleHandles()
const;
366 void setEnableZBufferPDFHack(
bool onoff);
367 bool getEnableZBufferPDFHack()
const;
369 void setTexturesAllFaces(
bool onoff);
370 bool getTexturesAllFaces()
const;
372 void setShowConsole(
bool on);
373 bool getShowConsole();
375 void setWithDebugger(
bool on);
376 bool getWithDebugger();
378 void setStyleSheetName(
const QString&
name);
379 QString getStyleSheetName();
380 QString loadStyleSheet(
const QStringList& list);
382 QString getOpenLxVersionString()
const;
383 void setOpenLxVersionString(
const QString& aVersion);
389 void setForceWoodUser(
bool onoff);
390 bool getForceWoodUser()
const;
393 void setOpenBuiltUser(
bool onoff);
394 bool getOpenBuiltUser();
396 void setIfcUser(
bool onoff,
bool persistent =
false);
399 void setIfcViewerFile(QString a);
400 QString getIfcViewerFile();
405 void setDebugUser(
bool onoff,
bool persistent =
false);
406 bool getDebugUser(
bool persistent =
false);
408 bool getBaubitUser();
409 void setBaubitUser(
bool onoff);
411 bool isConceptionUserByDefault();
412 bool isConceptionUser();
413 void setConceptionUser(
bool onoff);
415 void setDownloadPdbFiles(
bool onoff);
416 bool getDownloadPdbFiles();
418 void setUpdateToUnstable(
bool onoff);
419 bool getUpdateToUnstable();
421 void setAcisPartEnabled(
bool on);
422 bool getAcisPartEnabled();
424 void setLODEnabled(
bool onoff);
425 bool getLODEnabled()
const;
427 void saveIntegratedL2DLayoutState(
const QByteArray& state);
428 bool loadIntegratedL2DLayoutState(QByteArray& state);
430 void setShowTextures(
bool onoff);
431 bool getShowTextures()
const;
433 void setShowComponentTypeTextures(
bool onoff);
434 bool getShowComponentTypeTextures()
const;
436 void set_HPK_UseRain(
bool yesno);
437 bool get_HPK_UseRain()
const;
439 void setCalculateViewprovider(
bool onoff);
440 bool getCalculateViewprovider()
const;
443 void setAlternativeLookupPath(
const Base::String& path);
451 bool getAcisVersion(
int& major,
int& minor,
int& point);
452 void setAcisVersion(
int major,
int minor,
int point);
454 void setRenderWireframe(
bool onoff);
455 bool getRenderWireframe()
const;
456 void setRenderFacets(
bool onoff);
457 bool getRenderFacets()
const;
459 SnapMode getSnapMode()
const;
460 void setSnapMode(SnapMode);
462 void setUngroupMode(
bool onoff);
463 bool getUngroupMode()
const;
465 void setMultiGeoUngroupMode(
bool onoff);
466 bool getMultiGeoUngroupMode()
const;
468 void setMultisampling(
bool onoff);
469 bool getMultisampling()
const;
471 void setAllowMultiViewOnStart(
bool onoff);
472 bool getAllowMultiViewOnStart()
const;
474 int getDebugMessageCounter();
475 void resetDebugMessageCounter();
476 void incrementDebugMessageCounter();
478 void setAcisSaveEntityTextMode(
bool on,
bool persistent =
false);
479 bool getAcisSaveEntityTextMode()
const;
484 void set3dzExportCutOpenings(
bool on,
bool persistent =
false);
485 bool get3dzExportCutOpenings()
const;
487 void setShowLayerNumber(
bool onoff);
488 bool getShowLayerNumber()
const;
493 void setShowComponentTypeNumber(
bool onoff);
494 bool getShowComponentTypeNumber()
const;
496 void setBeamBothEndsSame(
bool onoff);
497 bool getBeamBothEndsSame();
499 void setCadworkStyle(
bool onoff);
500 bool getCadworkStyle()
const;
502 void setOSGMode(
bool on,
bool persistent =
false);
503 bool getOSGMode()
const;
505 void setCombinedAcisSaveMode(
bool on,
bool persistent =
false);
506 bool getCombinedAcisSaveMode()
const;
508 void setIFCFastMode(
bool on,
bool persistent =
false);
509 bool getIFCFastMode()
const;
511 void setGlobalSecondViewerWireframeDrawStyle(
bool onoff);
512 bool getGlobalSecondViewerWireframeDrawStyle()
const;
514 void setUseThreads(
bool on,
bool persistent =
false);
515 bool getUseThreads()
const;
517 void setIVExportSelectedFilter(QString filter);
518 QString getIVExportSelectedFilter()
const;
520 void setRunningFromLexocad(
bool on);
521 bool getRunningFromLexocad()
const;
523 void setFastRenderMode(
bool on,
bool persistent =
false);
524 bool getFastRenderMode()
const;
526 bool getCheckShapesOnRecompute(
int& checkLevel)
const;
527 void setCheckShapesOnRecompute(
bool on,
int checkLevel);
529 bool getCheckSliverFacesOnRecompute()
const;
530 void setCheckSliverFacesOnRecompute(
bool on);
532 bool getCheckFacetedBrepOnRecompute()
const;
533 void setCheckFacetedBrepOnRecompute(
bool on);
535 bool getPointCloudMode()
const;
536 void setPointCloudMode(
bool on);
538 bool getPointCloudPointPicking()
const;
539 bool setPointCloudPointPicking(
bool on);
541 bool getPointCloudPointSelection()
const;
542 void setPointCloudPointSelection(
bool on);
544 bool getPointCloudDynamicPointSize()
const;
545 void setPointCloudDynamicPointSize(
bool on,
bool persistent =
false);
547 bool getPointCloudChunkSelectionEnabled()
const;
548 void setPointCloudChunkSelectionEnabled(
bool on);
550 bool getPointCoarseLOD()
const;
551 void setPointCoarseLOD(
bool on);
553 void setCreateMiniDumpOnCrash(
bool on);
554 bool getCreateMiniDumpOnCrash();
556 void setSoSeparatorCachingEnabled(
bool on);
557 bool getSoSeparatorCachingEnabled()
const;
559 void setSoSeparatorCachingEnabledSpecial(
bool on);
560 bool getSoSeparatorCachingEnabledSpecial()
const;
562 bool getPointCloudLODenabled()
const;
563 void setPointCloudLODenabled(
bool on);
565 bool getShowPointCloudInSecondViewer()
const;
566 void setShowPointCloudInSecondViewer(
bool on);
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);
572 void setLexocadCode(
bool on);
573 bool getLexocadCode()
const;
575 bool getStandalone()
const;
576 void setStandalone(
bool onoff);
577 QString getStandaloneAppDataPath()
const;
579 bool getShowMeshOrientation()
const;
580 void setShowMeshOrientation(
bool onoff);
582 void setDefaultDoorPreset(QString preset);
583 QString getDefaultDoorPreset()
const;
585 void setDefaultWindowPreset(QString preset);
586 QString getDefaultWindowPreset()
const;
588 void setDefaultFrenchWindowPreset(QString preset);
589 QString getDefaultFrenchWindowPreset()
const;
591 void setDefaultGarageDoorPreset(QString preset);
592 QString getDefaultGarageDoorPreset()
const;
594 bool getNewZooming()
const;
595 void setNewZooming(
bool onoff);
597 bool getCoinShaderMode()
const;
598 void setCoinShaderMode(
bool onoff,
bool persistent =
true);
600 bool getProfiling()
const;
601 void setProfiling(
bool onoff);
603 bool getMeshCaching()
const;
604 void setMeshCaching(
bool onoff);
606 bool getAcisMeshMultiThreating()
const;
607 void setAcisMeshMultiThreating(
bool onoff);
609 int getFastRenderBatchMaxVertexCount()
const;
610 void setFastRenderBatchMaxVertexCount(
int);
612 bool getFastRenderEnableEdges()
const;
613 void setFastRenderEnableEdges(
bool);
615 bool getIfcImport_ImportAsInventor()
const;
616 void setIfcImport_ImportAsInventor(
bool onoff,
bool persistance =
true);
618 bool get_Arch_WallAxisSystem()
const;
619 void set_Arch_WallAxisSystem(
bool onoff);
621 bool getSaveRestoreIfcModelWithDocument()
const;
622 void setSaveRestoreIfcModelWithDocument(
bool onoff);
624 bool getMaterialViewSmallIcons()
const;
625 void setMaterialViewSmallIcons(
bool onoff);
627 bool getOpenMaterialDlgSmallIcons()
const;
628 void setOpenMaterialDlgSmallIcons(
bool onoff);
630 uint64_t getLODMinimalPointCount()
const;
631 void setLODMinimalPointCount(uint64_t t);
633 void setAcisMeshShapeEnabled(
bool);
634 bool getAcisMeshShapeEnabled()
const;
636 void setLazyFacetedBrepShapeForIfcImport(
bool v);
637 bool getLazyFacetedBrepShapeForIfcImport()
const;
639 void setNewSoIndexedFaceSet(
bool v);
640 bool getNewSoIndexedFaceSet()
const;
642 void setShowPreviewSurfaceForVerticalView(
bool onoff);
643 bool getShowPreviewSurfaceForVerticalView();
645 void setIFCFastMode_ExtrudedAreaSolid(
bool on,
bool persistent );
646 bool getIFCFastMode_ExtrudedAreaSolid()
const;
648 void setDeepDebug(
bool on);
649 bool getDeepDebug()
const;
651 void setAllowMemoryIsLowMsg(
bool on);
652 bool getAllowMemoryIsLowMsg()
const;
654 QString getCadwork3DDir()
const;
656 void setComponentTypeDialogOldLook(
bool onoff);
657 bool getComponentTypeDialogOldLook()
const;
659 void setWallSolveWarning(
int status);
660 int getWallSolveWarning()
const;
662 void enableElementCollector(
bool);
663 bool isElementCollectorEnabled()
const;
665 bool isVulkanRenderingEnabled()
const;
666 bool isFearerRenderingEnabled()
const;
671 void setNewViewProviderUpdate(
bool on);
672 bool getNewViewProviderUpdate()
const;
674 void setVisibilityIconHas3States(
bool on);
675 bool getVisibilityIconHas3States()
const;
677 void setSaveDialogGeometryInRegistry(
bool on);
678 bool getSaveDialogGeometryInRegistry()
const;
680 uint64_t getMetalShapeSelectionFlags()
const;
681 void setMetalShapeSelectionFlags(uint64_t flags);
683 bool isWoodConstructionUser();
685 bool isInternalCadworkUser();
687 std::pair<int, int> getMinimalModernOpenGLVersion()
const;
689 void setObjExportUnprotected(
bool unprotected);
690 bool isObjExportUnprotected()
const;
692 bool getRealLineThicknessMode()
const;
693 void setRealLineThicknessMode(
bool on);
694 const Geom::Trsf& getRealLineThicknessModeTrsf()
const;
695 void setRealLineThicknessModeTrsf(
const Geom::Trsf& trsf);
701 bool checkResultFromPolyToAcisConverter()
const;
702 void setCheckResultFromPolyToAcisConverter(
bool v);
705 bool allowQuadroCard()
const;
707 bool getUpdateInfos(QString& appName, QString& updateDir);
708 bool getUpdateSetting(QString& organization, QString& application);
714 Core::SettingsP* _pimpl =
nullptr;
Definition: Settings.h:29
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: Settings.h:62
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: Settings.h:72
Definition: GlobalId.h:32
QString httpDir
Definition: Settings.h:34
QString httpPassword
Definition: Settings.h:33
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