PCL
|
A control to manage collapsible sections of interface windows and dialogs. More...
#include <SectionBar.h>
Public Types | |
using | check_event_handler = void(Control::*)(SectionBar &sender, bool checked) |
using | section_event_handler = void(Control::*)(SectionBar &sender, Control §ion, bool start) |
Public Types inherited from pcl::Control | |
using | child_event_handler = void(Control::*)(Control &sender, Control &child) |
using | close_event_handler = void(Control::*)(Control &sender, bool &allowClose) |
using | event_handler = void(Control::*)(Control &sender) |
using | file_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers, bool &wantsFiles) |
using | file_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers) |
using | keyboard_event_handler = void(Control::*)(Control &sender, int key, unsigned modifiers, bool &wantsKey) |
using | mouse_button_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int button, unsigned buttons, unsigned modifiers) |
using | mouse_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, unsigned buttons, unsigned modifiers) |
using | mouse_wheel_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int delta, unsigned buttons, unsigned modifiers) |
using | move_event_handler = void(Control::*)(Control &sender, const pcl::Point &newPos, const pcl::Point &oldPos) |
using | paint_event_handler = void(Control::*)(Control &sender, const pcl::Rect &updateRect) |
using | resize_event_handler = void(Control::*)(Control &sender, int newWidth, int newHeight, int oldWidth, int oldHeight) |
using | view_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers, bool &wantsView) |
using | view_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers) |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::Control | |
static void | HideToolTip () |
static Control & | Null () |
static void | ShowToolTip (const Point &pos, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static void | ShowToolTip (int x, int y, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static String | ToolTipText () |
Static Public Member Functions inherited from pcl::UIObject | |
static UIObject & | Null () |
Protected Member Functions inherited from pcl::UIObject | |
UIObject ()=default | |
UIObject (const UIObject &x) | |
UIObject (UIObject &&x) | |
UIObject & | operator= (const UIObject &x) |
UIObject & | operator= (UIObject &&x) |
SectionBar manages collapsible/extensible sections on processing interfaces and dialogs. It includes a section title label and an icon that represents the current collapsed/extended state.
When a SectionBar control is clicked, it toggles visibility of a section control and adjusts the height of the top-level parent window to fit to its new contents. SectionBar is useful to organize complex user interfaces and is extensively used by most standard process interfaces in PixInsight.
Definition at line 87 of file SectionBar.h.
Constructs a SectionBar as a child control of parent.
|
override |
Destroys a SectionBar object.
|
inline |
A convenient synonym for SetChecked( true ).
Definition at line 205 of file SectionBar.h.
|
inline |
Removes (or creates) the check box in this SectionBar.
Definition at line 172 of file SectionBar.h.
|
overridevirtual |
Enables (or disables) this SectionBar object.
When a SectionBar object is disabled, its section control is also disabled, and in case it has a title checkbox, it is also disabled. However, the collapse/extend functionality of SectionBar is unaffected by its enabled/disabled state.
Reimplemented from pcl::Control.
void pcl::SectionBar::EnableTitleCheckBox | ( | bool | = true | ) |
Creates (or removes) a check box in this SectionBar.
|
inline |
Returns true iff this SectionBar is checkable.
Definition at line 155 of file SectionBar.h.
|
inline |
A convenient synonym for SetSectionVisible( false ).
Definition at line 264 of file SectionBar.h.
|
inline |
Returns true iff there is a check box in this SectionBar and it is currently checked.
Definition at line 183 of file SectionBar.h.
|
inlineoverridevirtual |
Returns true iff this SectionBar object is enabled.
Reimplemented from pcl::Control.
Definition at line 223 of file SectionBar.h.
|
inline |
Returns a reference to the section control managed by this SectionBar.
Definition at line 118 of file SectionBar.h.
References pcl::Control::Null().
|
inline |
Returns a reference to the immutable section control managed by this SectionBar.
Definition at line 107 of file SectionBar.h.
References pcl::Control::Null().
void pcl::SectionBar::SetChecked | ( | bool | checked = true | ) |
Checks or unchecks the check box in this SectionBar.
The enabled state of the section control (if there is one) will be automatically toggled according to the state of the check box: the section control will be enabled if the check box is checked; it will be disabled otherwise.
void pcl::SectionBar::SetSection | ( | Control & | ) |
Sets the section control managed by this SectionBar.
void pcl::SectionBar::SetSectionVisible | ( | bool | visible = true | ) |
Shows or hides the section control managed by this SectionBar.
In general, this function should be used instead of simply calling Control::SetVisible() (or Control::Show()/ControlHide()). This function ensures that the parent control (typically a process interface) regenerates its layout correctly after changing visibility of the section control.
|
inline |
|
inline |
A convenient synonym for SetSectionVisible( true ).
Definition at line 256 of file SectionBar.h.
|
inline |
Returns the title of this SectionBar.
Definition at line 135 of file SectionBar.h.
|
inline |
A convenient synonym for SetChecked( false ).
Definition at line 213 of file SectionBar.h.