52 #ifndef __PCL_TabBox_h
53 #define __PCL_TabBox_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
103 using tab_position = TabPosition::value_type;
138 SetCurrentPageIndex( index );
184 InsertPage( NumberOfPages(), page, label, icon );
235 EnablePage( index, !disable );
250 SetPageLabel( idx,
String() );
280 SetPageToolTip( idx,
String() );
299 SetControls( w, RightControl() );
306 SetControls( LeftControl(), w );
372 EventHandlers() =
default;
373 EventHandlers(
const EventHandlers& ) =
default;
374 EventHandlers& operator =(
const EventHandlers& ) =
default;
379 friend class TabBoxEventDispatcher;
Client-side interface to a PixInsight Bitmap object.
Client-side interface to a PixInsight Control object.
Client-side interface to a PixInsight TabBox control.
void ClearPageIcon(int idx)
String PageLabel(int idx) const
String PageToolTip(int idx) const
void SetPageIcon(int idx, const Bitmap &)
Control & CurrentPageControl() const
void EnablePage(int index, bool enable=true)
Bitmap PageIcon(int idx) const
Control & PageControlByIndex(int index) const
void AddPage(Control &page, const String &label, const Bitmap &icon=Bitmap::Null())
void SetPageToolTip(int idx, const String &)
void SetTabPosition(tab_position pos)
void ClearPageLabel(int idx)
Control & RightControl() const
int NumberOfPages() const
int CurrentPageIndex() const
TabBox(Control &parent=Control::Null())
void SelectPage(int index)
void SetCurrentPageIndex(int index)
Control & LeftControl() const
bool IsPageEnabled(int index) const
void SetControls(Control &left, Control &right)
void ClearPageToolTip(int idx)
tab_position TabPosition() const
void SetRightControl(Control &w)
void SetLeftControl(Control &w)
void SetPageLabel(int idx, const String &)
void DisablePage(int index, bool disable=true)
void InsertPage(int index, Control &page, const String &label, const Bitmap &icon=Bitmap::Null())
void OnPageSelected(page_event_handler handler, Control &receiver)
void(Control::*)(TabBox &sender, int pageIndex) page_event_handler