25 #ifndef YQWidgetFactory_h 26 #define YQWidgetFactory_h 29 #include <yui/YWidgetFactory.h> 31 #include "YQAlignment.h" 32 #include "YQButtonBox.h" 33 #include "YQCheckBox.h" 34 #include "YQCheckBoxFrame.h" 35 #include "YQComboBox.h" 40 #include "YQInputField.h" 41 #include "YQIntField.h" 43 #include "YQLayoutBox.h" 44 #include "YQLogView.h" 45 #include "YQMenuButton.h" 46 #include "YQMultiLineEdit.h" 47 #include "YQMultiSelectionBox.h" 48 #include "YQProgressBar.h" 49 #include "YQPushButton.h" 50 #include "YQRadioButton.h" 51 #include "YQRadioButtonGroup.h" 52 #include "YQReplacePoint.h" 53 #include "YQRichText.h" 54 #include "YQSelectionBox.h" 55 #include "YQSpacing.h" 58 #include "YQTimeField.h" 60 #include "YQBusyIndicator.h" 80 virtual YQDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
86 virtual YQLayoutBox * createLayoutBox ( YWidget * parent, YUIDimension dim );
87 virtual YQButtonBox * createButtonBox ( YWidget * parent );
93 virtual YQPushButton * createPushButton ( YWidget * parent,
const std::string & label );
94 virtual YQLabel * createLabel ( YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false );
95 virtual YQInputField * createInputField ( YWidget * parent,
const std::string & label,
bool passwordMode =
false );
96 virtual YQCheckBox * createCheckBox ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
97 virtual YQRadioButton * createRadioButton ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
98 virtual YQComboBox * createComboBox ( YWidget * parent,
const std::string & label,
bool editable =
false );
99 virtual YQSelectionBox * createSelectionBox ( YWidget * parent,
const std::string & label );
100 virtual YQTree * createTree ( YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false );
101 virtual YQTable * createTable ( YWidget * parent, YTableHeader * header,
bool multiSelection =
false );
102 virtual YQProgressBar * createProgressBar ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
103 virtual YQRichText * createRichText ( YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false );
109 virtual YQIntField * createIntField ( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal );
110 virtual YQMenuButton * createMenuButton ( YWidget * parent,
const std::string & label );
111 virtual YQMultiLineEdit * createMultiLineEdit ( YWidget * parent,
const std::string & label );
112 virtual YQImage * createImage ( YWidget * parent,
const std::string & imageFileName,
bool animated =
false );
113 virtual YQLogView * createLogView ( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 );
114 virtual YQMultiSelectionBox *createMultiSelectionBox( YWidget * parent,
const std::string & label );
115 virtual YQBusyIndicator * createBusyIndicator ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
117 virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long modeFlags = 0 );
118 virtual YWidget * createPkgSpecial ( YWidget * parent,
const std::string & name );
124 virtual YQSpacing * createSpacing ( YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 );
125 virtual YQEmpty * createEmpty ( YWidget * parent );
126 virtual YQAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
127 virtual YQSquash * createSquash ( YWidget * parent,
bool horSquash,
bool vertSquash );
133 virtual YQFrame * createFrame ( YWidget * parent,
const std::string & label );
134 virtual YQCheckBoxFrame * createCheckBoxFrame ( YWidget * parent,
const std::string & label,
bool checked );
163 #endif // YQWidgetFactory_h
MultiLineEdit - an input area for multi-line text.