FLImaging 7.9.7.9
GUIManagerResource.h
1#pragma once
2#include "DefinitionsGUIResource.h"
3#include "DefinitionsGUI.h"
4
5namespace FLImaging
6{
7 namespace GUI
8 {
9 class FL_EXPORT CGUIManagerResource : public Base::CFLBase
10 {
11 public:
12 CGUIManagerResource();
13 virtual ~CGUIManagerResource();
14
15 static CGUIManagerResource* GetInstance();
16
17 static bool Initialize();
18 static bool IsInitialized();
19 static bool Terminate();
20 static CBitmap* GetBmpResource(EResourceIdBitmap eResourceID);
21 static HCURSOR* GetCursorResource(UINT nIDResource);
22
23 static bool SetFontDefaultTree(const CWnd* pWndTree);
24 static bool SetFontDefaultLog(const CWnd* pWndLog);
25 static bool SetFontDefaultCode(const CWnd* pWndCode);
26
27 static CFont* GetFontDefaultTree();
28 static CFont* GetFontDefaultLog();
29 static CFont* GetFontDefaultCode();
30 static CFont* GetFontDefaultPropertyGridCtrl();
31 static CFont* GetFontDefaultPropertyPaneControls();
32
33 static CFont* GetFontMenuPane();
34 static CFont* GetFontPropertyGridCtrl();
35 static CFont* GetFontPropertyPaneControls();
36 static CFont* GetFontLogPane();
37 static CFont* GetFontCodePane();
38 static CFont* GetFontExampleSNAPPane();
39 static CFont* GetFontLayerObject();
40 static CFont* GetFontLayerObject(int32_t i32FontSize, EGUIViewImageFontWeight eFontWeight,BOOL bItalic, const Base::CFLString<wchar_t>& strFontName);
41 static CFont* GetFontDefaultMediumSize();
42 static CFont* GetFontDefaultSmallSize();
43 static CFont* GetFontDefaultSmallSize8();
44 static CFont* GetFontControls();
45 static CFont* GetFontDialogButton();
46 static CFont* GetFontPixelValue();
47
48 static bool SetFontMenuPane(LOGFONT* pLf, bool bWrite = true);
49 static bool SetFontExampleSNAPPane(LOGFONT* pLf, bool bWrite = true);
50 static bool SetFontPropertyPane(LOGFONT* pLfPropertyGridCtrl, LOGFONT* pLfPropertyControls, bool bWrite = true);
51 static bool SetFontPropertyGridCtrl(LOGFONT* pLfPropertyGridCtrl, bool bWrite = true);
52 static bool SetFontPropertyPaneControls(LOGFONT* pLfPropertyControls, bool bWrite = true);
53 static bool SetFontLogPane(LOGFONT* pLf, bool bWrite = true);
54 static bool SetFontCodePane(LOGFONT* pLf, bool bWrite = true);
55 static bool SetFontLayerObject();
56 static bool SetFontLayerObject(int32_t i32FontSize, EGUIViewImageFontWeight eFontWeight, BOOL bItalic, const Base::CFLString<wchar_t>& strFontName);
57 static bool SetFontDefault();
58 static bool HasFontLayerObject(CFont* pFont);
59
60 static Gdiplus::Bitmap* LoadPngFromResource(HINSTANCE hInstance, LPCWSTR lpName, LPCWSTR lpType);
61
62 virtual void OnReceiveBroadcast(const Base::CBroadcastMessage* pMessage) override;
63
64 DeclareGetClassType();
65
66 private:
67 static CBitmap* GetBmpResource(UINT nIDResource);
68 static bool GetLogFontFromWnd(const CWnd* pWnd, LOGFONT& lf);
69
70 protected:
71 volatile bool m_bInitialized;
72 };
73 }
74}
75
Definition D2DObject.h:12