FLImaging 6.10.23.2
GUIPropertyItemRadioButton.h
1
7#pragma once
8#include "GUIPropertyItemBase.h"
9
11namespace FLImaging
12{
14 namespace GUI
15 {
16 class CGUIPropertyGridPropertyRadioButton;
18
41 class FL_EXPORT CGUIPropertyItemRadioButton : public CGUIPropertyItemBase
42 {
43 friend class CGUIPropertyItemRadioButtonGroup;
44
45 public:
54
64 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
65
76 virtual void SetRadioButtonOnRight(bool bSet);
77
87 virtual bool IsRadioButtonOnRight() const;
88
98 virtual Base::CFLString<wchar_t> GetValue() const override;
99
109 virtual bool IsSelected() const;
110
128 [[deprecated("Cannot set a callback on an individual radio button. "
129 "Set the callback on CGUIPropertyItemRadioButtonGroup.")]]
130 virtual bool SetPropertyCallback(CPropertyCallback* pFunc, bool bAutoDestroy = true) override;
131
143 [[deprecated("Individual radio buttons do not have callbacks; this always returns nullptr. "
144 "Use the group's callback.")]]
145 virtual CPropertyCallback* GetPropertyCallback() const override;
146
147 protected:
148 CGUIPropertyItemRadioButton();
149
150 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback = true) override;
151 virtual bool SetValue(Base::CFLString<wchar_t> strValue, bool bInvokeCallback, bool bRedraw);
152 virtual bool SetBufferValue(Base::CFLString<wchar_t> strValue) override;
153 virtual bool SetOrigValue(const Base::CFLString<wchar_t>& strValue) override;
154 virtual void SetDefaultValue(const Base::CFLString<wchar_t>& strDefaultValue) override;
155
156 virtual bool Load(const Base::CFLString<wchar_t>& strFilePath = L"") override;
157 virtual bool Load(const Base::CFLArray<Base::CFLString<wchar_t>>& flaData) override;
158 virtual bool Save(const Base::CFLString<wchar_t>& strFilePath = L"") const override;
159 virtual bool Save(Base::CFLArray<Base::CFLString<wchar_t>>& flaData) const override;
160
161 virtual void Select(bool bSelect);
162
163 protected:
164 bool m_bIsRadioButtonOnRight;
165 bool m_bInProcSetValue;
166 CGUIPropertyItemRadioButtonGroup* m_pParentGroup;
167
168 friend class CGUIPropertyGridPropertyRadioButton;
169 };
170 }
171}
172
Template type 의 배열 클래스.
Definition FLArray.h:53
Template type 의 문자열 클래스
Definition FLString.h:34
프로퍼티 그리드에서 상호 배타적인 라디오 버튼 그룹을 표현하는 프로퍼티 아이템입니다.
Definition GUIPropertyItemRadioButtonGroup.h:33
virtual CMFCPropertyGridProperty * CreateGridProperty() override
이 라디오 아이템에 대한 MFC 그리드 노드를 생성합니다.
virtual bool SetPropertyCallback(CPropertyCallback *pFunc, bool bAutoDestroy=true) override
virtual bool Save(const Base::CFLString< wchar_t > &strFilePath=L"") const override
ini 파일에 this의 값을 저장합니다.
virtual bool IsSelected() const
현재 이 라디오 아이템이 선택되어 있는지 확인합니다.
virtual bool IsRadioButtonOnRight() const
라디오 버튼이 오른쪽 "Value" 칸에 배치되어 있는지 확인합니다.
virtual bool Load(const Base::CFLArray< Base::CFLString< wchar_t > > &flaData) override
문자열 배열로부터 this의 값을 로드합니다.
virtual CPropertyCallback * GetPropertyCallback() const override
virtual bool SetValue(Base::CFLString< wchar_t > strValue, bool bInvokeCallback=true) override
this에 값을 설정합니다.
virtual bool SetBufferValue(Base::CFLString< wchar_t > strValue) override
this의 버퍼 값을 설정합니다.
virtual ~CGUIPropertyItemRadioButton()
가상 소멸자입니다.
virtual Base::CFLString< wchar_t > GetValue() const override
이 라디오 아이템에 연결된 문자열 값을 반환합니다.
virtual void SetRadioButtonOnRight(bool bSet)
라디오 버튼을 오른쪽 "Value" 칸에 배치할지, 왼쪽 "Name" 칸에 배치할지 설정합니다.
virtual bool SetOrigValue(const Base::CFLString< wchar_t > &strValue) override
this의 원래 값을 설정합니다.
virtual bool Save(Base::CFLArray< Base::CFLString< wchar_t > > &flaData) const override
INI 데이터 배열에 this의 값을 기록하는 함수
virtual bool Load(const Base::CFLString< wchar_t > &strFilePath=L"") override
ini 파일로부터 this의 값을 로드합니다.
virtual void SetDefaultValue(const Base::CFLString< wchar_t > &strDefaultValue) override
this의 기본값을 설정합니다.
Definition D2DObject.h:12
std::function< void(CGUIPropertyItemBase *, Base::CFLString< wchar_t > &, const Base::CFLString< wchar_t > &)> CPropertyCallback
SetValue() 내부에서 호출되는 값 변경 콜백입니다.
Definition GUIPropertyItemBase.h:191