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