25 #ifndef YWidgetFactory_h 26 #define YWidgetFactory_h 84 YDialog * createMainDialog ( YDialogColorMode colorMode = YDialogNormalColor );
85 YDialog * createPopupDialog ( YDialogColorMode colorMode = YDialogNormalColor );
86 virtual YDialog * createDialog (
YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor ) = 0;
94 virtual YLayoutBox * createLayoutBox (
YWidget * parent, YUIDimension dimension ) = 0;
101 virtual YPushButton * createPushButton (
YWidget * parent,
const std::string & label ) = 0;
102 virtual YLabel * createLabel (
YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false ) = 0;
103 YLabel * createHeading (
YWidget * parent,
const std::string & label );
104 virtual YInputField * createInputField (
YWidget * parent,
const std::string & label,
bool passwordMode =
false ) = 0;
105 virtual YCheckBox * createCheckBox (
YWidget * parent,
const std::string & label,
bool isChecked =
false ) = 0;
106 virtual YRadioButton * createRadioButton (
YWidget * parent,
const std::string & label,
bool isChecked =
false ) = 0;
107 virtual YComboBox * createComboBox (
YWidget * parent,
const std::string & label,
bool editable =
false ) = 0;
109 virtual YTree * createTree (
YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false ) = 0;
111 virtual YProgressBar * createProgressBar (
YWidget * parent,
const std::string & label,
int maxValue = 100 ) = 0;
112 virtual YRichText * createRichText (
YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false ) = 0;
113 virtual YBusyIndicator * createBusyIndicator (
YWidget * parent,
const std::string & label,
int timeout = 1000 ) = 0;
119 YPushButton * createIconButton (
YWidget * parent,
const std::string & iconName,
const std::string & fallbackTextLabel );
120 YLabel * createOutputField (
YWidget * parent,
const std::string & label );
121 virtual YIntField * createIntField (
YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal ) = 0;
124 virtual YMenuButton * createMenuButton (
YWidget * parent,
const std::string & label ) = 0;
126 virtual YImage * createImage (
YWidget * parent,
const std::string & imageFileName,
bool animated =
false ) = 0;
127 virtual YLogView * createLogView (
YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 ) = 0;
131 virtual YWidget * createPkgSpecial (
YWidget * parent,
const std::string & subwidgetName ) = 0;
139 YSpacing * createHSpacing (
YWidget * parent, YLayoutSize_t size = 1.0 );
140 YSpacing * createVSpacing (
YWidget * parent, YLayoutSize_t size = 1.0 );
141 virtual YSpacing * createSpacing (
YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 ) = 0;
152 YAlignment * createMarginBox (
YWidget * parent, YLayoutSize_t horMargin, YLayoutSize_t vertMargin );
154 YLayoutSize_t leftMargin, YLayoutSize_t rightMargin,
155 YLayoutSize_t topMargin, YLayoutSize_t bottomMargin );
159 YAlignment * createMinSize (
YWidget * parent, YLayoutSize_t minWidth, YLayoutSize_t minHeight );
161 virtual YAlignment * createAlignment (
YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment ) = 0;
166 virtual YSquash * createSquash (
YWidget * parent,
bool horSquash,
bool vertSquash ) = 0;
172 virtual YFrame * createFrame (
YWidget * parent,
const std::string & label ) = 0;
173 virtual YCheckBoxFrame * createCheckBoxFrame (
YWidget * parent,
const std::string & label,
bool checked ) = 0;
202 #endif // YWidgetFactory_h
Selection box: List box that displays a (scrollable) list of items from which the user can select exa...
Author: Stefan Hundhammer sh@suse.de
Input field for entering a time in "hh:mm:ss" format.
A vertical or horizontal stacking of widgets, implementing HBox and VBox.
Abstract base class of a libYUI user interface.
YDialogType
Type of dialog: Main / Popup / Wizard.
Implementation of the Label, Heading and OutputField widgets.
A placeholder that can have its contents exchanged, using ReplaceWidget.
A labeled framed container.
HSquash, VSquash HVSquash: reduce child to its preferred size.
A variant of YSelectionBox where more than one item can be selected.
A widget with zero size, useful as a placeholder.
Table: Selection list with multiple columns.
ComboBox (or "drop down box", "drop down selection"); may be editable.
A multi-line plain-text area.
Implementation of all the alignment widgets:
A frame with a check-box, may auto-disable frame contents based on the check.
HSpacing, VSpacing, HStretch, VStretch.
LogView: A scrollable (output-only) text to display a growing log, very much like the "tail -f" shell...
Indicates that something is in progress and has not frozen yet.
A simple wrapper for an insanely complex UI for installing software.
IntField: Input field for integer values.
Tree: List box that displays a (scrollable) list of hierarchical items from which the user can select...
Text formatted with simple HTML-like tags, with "links" generating events.
A window in the desktop environment.
A progress bar, showing completion of value() out of maxValue() parts.
A picture, possibly animated, loaded from a file.