52 #ifndef __PCL_SectionBar_h
53 #define __PCL_SectionBar_h
109 return (m_section !=
nullptr) ? *m_section :
Control::Null();
120 return (m_section !=
nullptr) ? *m_section :
Control::Null();
137 return Title_Label.Text();
147 Title_Label.SetText( title );
157 return !Title_CheckBox.IsNull();
174 EnableTitleCheckBox( !disable );
185 return !Title_CheckBox.IsNull() && Title_CheckBox->IsChecked();
225 return Title_Label.IsEnabled();
238 void Enable(
bool enabled =
true )
override;
258 SetSectionVisible(
true );
266 SetSectionVisible(
false );
347 Control* onToggleSectionReceiver =
nullptr;
350 Control* onCheckReceiver =
nullptr;
352 EventHandlers() =
default;
353 EventHandlers(
const EventHandlers& ) =
default;
354 EventHandlers& operator =(
const EventHandlers& ) =
default;
366 void ButtonClick(
Button&,
bool );
Client-side interface to a PixInsight Control object.
A generic point in the two-dimensional space.
Client-side interface to a PixInsight horizontal sizer.
Client-side interface to a PixInsight Label control.
A control to manage collapsible sections of interface windows and dialogs.
void EnableTitleCheckBox(bool=true)
SectionBar(Control &parent=Null())
const Control & Section() const
void DisableTitleCheckBox(bool disable=true)
void SetTitle(const String &title)
bool HasTitleCheckBox() const
void SetChecked(bool checked=true)
bool IsEnabled() const override
void Enable(bool enabled=true) override
void SetSection(Control &)
void SetSectionVisible(bool visible=true)
Client-side interface to a PixInsight vertical sizer.
void OnToggleSection(section_event_handler handler, Control &receiver)
void OnCheck(check_event_handler handler, Control &receiver)
void(Control::*)(SectionBar &sender, Control §ion, bool start) section_event_handler
void(Control::*)(SectionBar &sender, bool checked) check_event_handler