#include <YContainerWidget.h>
Inheritance diagram for YContainerWidget:
Public Member Functions | |
YContainerWidget (const YWidgetOpt &opt) | |
virtual | ~YContainerWidget () |
virtual char * | widgetClass () |
bool | hasChildren () const |
int | numChildren () const |
YWidget * | child (int i) const |
long | nicesize (YUIDimension dim) |
bool | stretchable (YUIDimension dim) const |
void | setSize (long newwidth, long newheight) |
virtual void | addChild (YWidget *child) |
void | removeChildren () |
YWidget * | findWidget (const YCPValue &id) const |
bool | isContainer () const |
virtual void | childDeleted (YWidget *child) |
void | dumpWidgetTree (int indentationLevel=0) |
void | dumpDialogWidgetTree () |
virtual std::string | debugLabel () |
virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
virtual void | collectUserInput (YCPList &fieldContents) |
Protected Member Functions | |
virtual void | childAdded (YWidget *child) |
virtual void | childRemoved (YWidget *child) |
void | dumpWidget (YWidget *w, int indentationLevel) |
string | formatDebugLabel (YWidget *widget, const string &debLabel) |
Protected Attributes | |
vector< YWidget * > | children |
YWidget * | _debugLabelWidget |
A Container is a widget that has child widgets. Examples are YSplit, YReplacePoint, YAlignment. This class generically handles the houskeeping of child widgets, looks for children with certain IDs and provides default implementations for nicesize, stretchable and weight for container widgets with exactly one child.
|
Constructor |
|
Cleans up: Deletes all child widgets. |
|
Adds a new child widget. The YContainerwidget assumes ownership and takes care of deleting the child. |
|
Returns one of the child widgets. |
|
Call back function that reports to the ui specific widget that a child has been added. The default implementation does nothing. |
|
Child deletion notification. See YWidget.h for details. Reimplemented from YWidget. |
|
Call back function that reports to the ui specific widget that a child has been removed. The default implementation does nothing. |
|
(Recursively) collect the content of all input fields or other interactive widgets in this container and its children and add them to 'fieldContents'. |
|
Returns a (possibly translated) text describing this dialog for debugging. Reimplemented from YWidget. Reimplemented in YDialog. |
|
Debugging function: Dump the widget tree from this widget's dialog parent. If there is no such dialog parent, dump the widget tree from here on. |
|
Helper function for dumpWidgetTree(): Dump one widget to the log file. |
|
Debugging function: Dump the widget tree from here on to the log file. |
|
Looks for a child widget with a certain ID. Searches recursively.
|
|
Format a debug label. Reimplemented in YDialog. |
|
Returns 'true' if there are any child widgets. |
|
Returns true, since this is a container widget. Reimplemented from YWidget. |
|
Default implementation, assuming exactly one child. Returns the nicesize of the child.
Implements YWidget. Reimplemented in YAlignment, and YSplit. |
|
Returns the number of child widgets. |
|
Removes and deletes all child widgets. Calls childRemoved() for each child just before it is being removed in order to inform the derived ui specific widget. |
|
Recursively save the user input of all child widgets to a macro recorder: All child widgets that could contain data entered by the user are requested to send their contents to the macro recorder, e.g. input fields, check boxes etc. Reimplemented from YWidget. |
|
Default implementation, that assumes exactly one child. Sets the size of the child. Reimplemented from YWidget. Reimplemented in YAlignment, and YSplit. |
|
Default implementation, that assumes exactly one child. Returns, whether the child is stretchable
Reimplemented from YWidget. Reimplemented in YAlignment, YSplit, and YSquash. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. Reimplemented in YAlignment, YDialog, YDumbTab, YFrame, YRadioButtonGroup, YReplacePoint, YSplit, YSquash, and YWizard. |
|
|
|
|