Go to the documentation of this file.
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();
165 void EnableTitleCheckBox(
bool =
true );
174 EnableTitleCheckBox( !disable );
185 return !Title_CheckBox.IsNull() && Title_CheckBox->IsChecked();
200 void SetChecked(
bool checked =
true );
225 return Title_Label.IsEnabled();
238 void Enable(
bool enabled =
true )
override;
251 void SetSectionVisible(
bool visible =
true );
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 );
376 #endif // __PCL_SectionBar_h
bool HasTitleCheckBox() const
A control to manage collapsible sections of interface windows and dialogs.
A generic point in the two-dimensional space.
Client-side interface to a PixInsight vertical sizer.
Client-side interface to a PixInsight Label control.
void SetTitle(const String &title)
bool IsEnabled() const override
const Control & Section() const
void(Control::*)(SectionBar &sender, Control §ion, bool start) section_event_handler
void(Control::*)(SectionBar &sender, bool checked) check_event_handler
Client-side interface to a PixInsight horizontal sizer.
Client-side interface to a PixInsight Control object.
void DisableTitleCheckBox(bool disable=true)