libt3widget
|
Public Member Functions | |
virtual void | center_over (window_component_t *center) |
Set the position and anchoring for this dialog such that it is centered over a window_component_t. More... | |
virtual void | force_redraw (void) |
Request that this window_component_t be completely redrawn. More... | |
virtual void | hide (void) |
Hide the window_component_t. More... | |
virtual void | set_focus (focus_t focus) |
Set whether this window_component_t has the input focus. More... | |
virtual void | set_position (optint top, optint left) |
Move the window_component_t to a specified position. More... | |
virtual bool | set_size (optint height, optint width) |
Set the size of this window_component_t. More... | |
virtual void | show (void) |
Display the window_component_t. More... | |
virtual void | update_contents (void) |
Update the contents of the window. More... | |
virtual | ~dialog_base_t () |
Destroy this dialog. More... | |
![]() | |
virtual t3_window_t * | get_base_window (void) |
Retrieve the t3_window_t for this window_component_t. More... | |
virtual bool | process_key (key_t key)=0 |
Handle a key press by the user. More... | |
window_component_t (void) | |
Base constructor. More... | |
virtual | ~window_component_t (void) |
Base destructor. More... | |
Static Public Member Functions | |
static void | force_redraw_all (void) |
Call force_redraw on all dialogs. More... | |
Protected Member Functions | |
dialog_base_t (int height, int width, bool has_shadow) | |
Create a new dialog with height and width , and with title _title . More... | |
void | focus_next (void) |
Focus the previous widget, wrapping around if necessary. More... | |
void | focus_previous (void) |
Focus the next widget, wrapping around if necessary. More... | |
virtual bool | is_child (window_component_t *widget) |
Determine whether a window_compnent_t is a child of the container_t. More... | |
void | push_back (widget_t *widget) |
Add a widget to this dialog. More... | |
virtual void | set_child_focus (window_component_t *target) |
Set the focus to a specific window component. More... | |
![]() | |
virtual bool | set_widget_parent (window_component_t *widget) |
Make widget a child window of this container_t, by setting its parent window. More... | |
virtual void | unset_widget_parent (window_component_t *widget) |
Unset the parent window for a widget . More... | |
Protected Attributes | |
widgets_t::iterator | current_widget |
Iterator indicating the widget that has the input focus. More... | |
bool | redraw |
Boolean indicating whether redrawing is necessary. More... | |
cleanup_t3_window_ptr | shadow_window |
t3_window_t used to draw the shadow under a dialog. More... | |
widgets_t | widgets |
List of widgets on this dialog. More... | |
![]() | |
cleanup_t3_window_ptr | window |
The t3_window_t used for presenting this item on screen (see libt3window). More... | |
Friends | |
class | dialog_t |
Additional Inherited Members | |
![]() | |
enum | focus_t { FOCUS_OUT, FOCUS_SET, FOCUS_IN_FWD, FOCUS_IN_BCK, FOCUS_REVERT } |
|
protected |
Create a new dialog with height
and width
, and with title _title
.
|
virtual |
Destroy this dialog.
Any widgets on the dialog are deleted as well.
|
virtual |
Set the position and anchoring for this dialog such that it is centered over a window_component_t.
|
protected |
Focus the previous widget, wrapping around if necessary.
|
protected |
Focus the next widget, wrapping around if necessary.
|
virtual |
Request that this window_component_t be completely redrawn.
Implements t3_widget::window_component_t.
|
static |
Call force_redraw on all dialogs.
|
virtual |
Hide the window_component_t.
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::text_field_t::drop_down_list_t, t3_widget::dialog_t, and t3_widget::popup_t.
|
protectedvirtual |
Determine whether a window_compnent_t is a child of the container_t.
Implements t3_widget::container_t.
Reimplemented in t3_widget::dialog_t, and t3_widget::menu_panel_t.
|
protected |
Add a widget to this dialog.
If a widget is not added through push_back, it will not be displayed, or receive input.
|
protectedvirtual |
Set the focus to a specific window component.
Implements t3_widget::container_t.
Reimplemented in t3_widget::dialog_t.
|
virtual |
Set whether this window_component_t has the input focus.
Note that this merely notifies the window_component_t that it should change it's appearance to indicate the user that this window_component_t has the input focus. Which window_component_t actually receives the input events is handled outside of the window_component_t.
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::text_field_t::drop_down_list_t.
Move the window_component_t to a specified position.
Note that the position is relative to the anchor point.
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::edit_window_t::autocomplete_panel_t, t3_widget::text_field_t::drop_down_list_t, t3_widget::file_pane_t::search_panel_t, t3_widget::menu_panel_t, and t3_widget::main_window_base_t.
Set the size of this window_component_t.
height | The new height of the window_component_t in cells, or None if it should remain unchanged. |
width | The new width of the window_component_t in cells, or None if it should remain unchanged. |
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::edit_window_t::autocomplete_panel_t, t3_widget::text_field_t::drop_down_list_t, t3_widget::file_pane_t::search_panel_t, t3_widget::open_file_dialog_t, t3_widget::file_dialog_t, t3_widget::find_dialog_t, t3_widget::menu_panel_t, t3_widget::main_window_base_t, t3_widget::input_selection_dialog_t, t3_widget::goto_dialog_t, and t3_widget::insert_char_dialog_t.
|
virtual |
Display the window_component_t.
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::text_field_t::drop_down_list_t, t3_widget::file_pane_t::search_panel_t, t3_widget::dialog_t, t3_widget::attribute_picker_dialog_t, t3_widget::main_window_base_t, t3_widget::input_selection_dialog_t, and t3_widget::popup_t.
|
virtual |
Update the contents of the window.
Implements t3_widget::window_component_t.
Reimplemented in t3_widget::text_field_t::drop_down_list_t, t3_widget::file_pane_t::search_panel_t, t3_widget::dialog_t, t3_widget::main_window_base_t, and t3_widget::popup_t.
|
protected |
Iterator indicating the widget that has the input focus.
|
protected |
Boolean indicating whether redrawing is necessary.
|
protected |
t3_window_t used to draw the shadow under a dialog.
|
protected |
List of widgets on this dialog.
This list should only be filled using push_back.