FLImaging 6.9.12.2
GUIPropertyItemFile.h
1#pragma once
2
3#include "GUIPropertyItemBase.h"
4
5
6namespace FLImaging
7{
8 namespace GUI
9 {
10 class FL_EXPORT CGUIPropertyItemFile : public CGUIPropertyItemBase
11 {
12 public:
13 CGUIPropertyItemFile();
14 virtual ~CGUIPropertyItemFile();
15
16 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
17
18 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
19 virtual bool SetBufferValue(Base::CFLString<wchar_t> strValue) override;
20
21 virtual Base::CFLString<wchar_t> GetValue() const override;
22 virtual Base::CFLString<wchar_t> GetBufferValue() const override;
23
24 // 파일 열기 대화 상자 모드입니다. true 지정 시 파일 열기 모드, false 지정 시 파일 저장 모드로 설정할 수 있습니다.
25 virtual void SetOpenFileDialogMode(bool bOpen);
26 virtual bool IsOpenFileDialogMode() const;
27
28 // true 지정 시 폴더 열기 모드, false 지정 시 파일 열기 모드가 됩니다.
29 virtual void SetFolderDialogMode(bool bSet);
30 virtual bool GetFolderDialogMode() const;
31
32 // 절대 경로 모드를 설정합니다.
33 virtual const CResult EnableAbsolutePath(bool bEnable);
34
35 // 절대 경로 모드로 설정되어 있는지 얻어옵니다.
36 virtual bool IsAbsolutePathEnabled() const;
37
38 // 하나 이상의 파일 이름 확장명 문자열입니다.
39 // 예시 : L"*.flif;*.bmp;"
40 virtual void SetFileExtention(Base::CFLString<wchar_t> flstrDefExt);
41 virtual Base::CFLString<wchar_t> GetFileExtention() const;
42
43 // 하나 이상의 파일 필터 문자열입니다.
44 // 예시 : L"All Supporting Files (*.flif;*.bmp)|*.flif;*.bmp|FLImaging Image Files (*.flif)|*.flif|Bitmap Files (*.bmp)|*.bmp|All Files (*.*)|*.*||")
45 virtual void SetFileFilter(Base::CFLString<wchar_t> flstrFilter);
46 virtual Base::CFLString<wchar_t> GetFileFilter() const;
47
48 // 대화 상자 플래그입니다. 기본값은 OFN_HIDEREADONLY와 OFN_OVERWRITEPROMPT의 비트 조합(OR)입니다. 여러 파일 선택 플래그는 OFN_ALLOWMULTISELECT 입니다.
49 virtual void SetFlags(unsigned long dwFileOpenFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT);
50 virtual unsigned long GetFlags() const;
51
52 // 여러 파일을 로드한 경우 각 파일의 경로를 배열에 넣어 반환합니다.
53 virtual Base::CFLArray<Base::CFLString<wchar_t>> GetMultiSelectFilePath() const;
54
55 // 상대 경로에서 절대 경로로 변환하지 않은 원본 값
56 virtual Base::CFLString<wchar_t> GetOrignalValue() const;
57
58 protected:
59 bool m_bFolder;
60 bool m_bOpenFileDialog;
61 unsigned long m_dwFileOpenFlags;
62 Base::CFLString<wchar_t> m_strDefExt;
63 Base::CFLString<wchar_t> m_strFilter;
64
65 bool m_bAbsolutePath;
66
67 protected:
68 friend class CGUIPropertyGridPropertyFile;
69 };
70 }
71}
72
프로퍼티 아이템 베이스 클래스
Definition GUIPropertyItemBase.h:38
Definition D2DObject.h:12