Chrysalis - CLO3D DevTools Extension Test Coverage


integrations/clo3d/extensions/dev-tools/
File: integrations/clo3d/extensions/dev-tools/include/BaseUIExporterOptions.h
Date: 2026-08-27 18:36:32
Lines:
1/1
100.0%
Functions:
1/1
100.0%
Branches:
0/0
-%
Decisions:
0/0
-%
Calls:
18/18
100.0%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_BASEUIEXPORTEROPTIONS_H
2 #define CHRYSALIS_BASEUIEXPORTEROPTIONS_H
3
4 #include "ExtensionsManager.h"
5
6 namespace CLO3D {
7 class BaseUIExporterOptions {
8 protected:
9
18/18
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
✓ Call 14 invoked.
✓ Call 15 invoked.
✓ Call 16 invoked.
✓ Call 17 invoked.
4 virtual ~BaseUIExporterOptions() = default;
10 public:
11 struct Keys {
12 inline static const QString ROOT_FOLDER = "rootFolder";
13 inline static const QString FILE_NAME = "fileName";
14 inline static const QString OBJECT_NAME = "objectName";
15 inline static const QString CLASS_NAME = "className";
16 };
17 struct Defaults {
18 inline static const QDir ROOT_FOLDER = QDir(ROOT_EXTENSIONS_DIR);
19 inline static const QString FILE_NAME = "ui";
20 inline static const QString OBJECT_NAME = "";
21 inline static const QString CLASS_NAME = "";
22 };
23 virtual bool isEnabled();
24
25 virtual void read(const QSettings* settings);
26 virtual void write(QSettings* settings);
27
28 [[nodiscard]] QDir getRootFolder() const;
29 [[nodiscard]] QString getFileName() const;
30 [[nodiscard]] QString getObjectName() const;
31 [[nodiscard]] QString getClassName() const;
32
33 void setRootFolder(const QDir& rootFolder);
34 void setFileName(const QString& fileName);
35 void setObjectName(const QString& objectName);
36 void setClassName(const QString& className);
37 private:
38 QDir rootFolder_ = Defaults::ROOT_FOLDER;
39 QString fileName_ = Defaults::FILE_NAME;
40 QString objectName_ = Defaults::OBJECT_NAME;
41 QString className_ = Defaults::CLASS_NAME;
42 };
43 }
44
45 #endif //CHRYSALIS_BASEUIEXPORTEROPTIONS_H
46