BIMHome v1.0.0
BIMHome接口文档说明
Preferences.h
浏览该文件的文档.
1/************************************************************************
2* @file Preferences.h
3*
4* @brief Preferences类
5*
6* @details Preferences类
7*
8* @author zhaojuan
9*
10* @version 版本号 V0.1
11*
12* @date 2023-2-9
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17#ifndef TECHDRAW_APP_PREFERENCES_H
18#define TECHDRAW_APP_PREFERENCES_H
19
20
21#include "BHGlobal.h"
22#include <string>
23#include "TechDrawConfig.h"
24#include "Base/Meterial/Color.h"
25class QString;
26
27namespace Base
28{
29 class Color;
30}
31
32namespace TechDraw
33{
34
35 //getters for parameters used in multiple places.
36 class TechDrawExport Preferences {
37
38 public:
39 static std::string labelFont();
40 static QString labelFontQString();
41 static double labelFontSizeMM();
42 static double dimFontSizeMM();
43
44 static Base::Color normalColor();
45 static Base::Color selectColor();
46 static Base::Color preselectColor();
47 static Base::Color vertexColor();
48 static double vertexScale();
49
50 static bool useGlobalDecimals();
51 static bool keepPagesUpToDate();
52
53 static int projectionAngle();
54 static int lineGroup();
55
56 static double dimArrowSize();
57 static int dimArrowStyle();
58
59 static int balloonArrow();
60
61 static QString defaultTemplate(std::string&templateType);
62 static QString defaultTemplateDir();
63 static std::string lineGroupFile();
64
65 static const double DefaultFontSizeInMM;
66
67 static std::string formatSpec();
68 static int altDecimals();
69
70 static int mattingStyle();
71
72 static std::string svgFile();
73 static std::string patFile();
75 };
76
77} //end namespace TechDraw
78#endif //TECHDRAW_APP_PREFERENCES_H
static QString labelFontQString()
static double labelFontSizeMM()
static std::string patFile()
static TechDraw::TechDrawConfig * config
Definition Preferences.h:74
static Base::Color selectColor()
static int balloonArrow()
static std::string labelFont()
static int dimArrowStyle()
static Base::Color vertexColor()
static bool keepPagesUpToDate()
static int mattingStyle()
static const double DefaultFontSizeInMM
Definition Preferences.h:65
static QString defaultTemplateDir()
static int altDecimals()
static QString defaultTemplate(std::string &templateType)
static double dimArrowSize()
static std::string lineGroupFile()
static std::string formatSpec()
static bool useGlobalDecimals()
static int projectionAngle()
static std::string svgFile()
static int lineGroup()
static Base::Color preselectColor()
static double vertexScale()
static double dimFontSizeMM()
static Base::Color normalColor()
Definition Preferences.h:36
Definition TechDrawConfig.h:239
Definition BaseFigureFactory.h:24
Definition ArrowPropEnum.h:26