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" 36 #include "YQCustomStatusItemSelector.h" 41 #include "YQInputField.h" 42 #include "YQIntField.h" 43 #include "YQItemSelector.h" 45 #include "YQLayoutBox.h" 46 #include "YQLogView.h" 47 #include "YQMenuButton.h" 48 #include "YQMultiLineEdit.h" 49 #include "YQMultiSelectionBox.h" 50 #include "YQProgressBar.h" 51 #include "YQPushButton.h" 52 #include "YQRadioButton.h" 53 #include "YQRadioButtonGroup.h" 54 #include "YQReplacePoint.h" 55 #include "YQRichText.h" 56 #include "YQSelectionBox.h" 57 #include "YQSpacing.h" 60 #include "YQTimeField.h" 62 #include "YQBusyIndicator.h" 82 virtual YQDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
88 virtual YQLayoutBox * createLayoutBox ( YWidget * parent, YUIDimension dim );
89 virtual YQButtonBox * createButtonBox ( YWidget * parent );
95 virtual YQPushButton * createPushButton ( YWidget * parent,
const std::string & label );
96 virtual YQLabel * createLabel ( YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false );
97 virtual YQInputField * createInputField ( YWidget * parent,
const std::string & label,
bool passwordMode =
false );
98 virtual YQCheckBox * createCheckBox ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
99 virtual YQRadioButton * createRadioButton ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
100 virtual YQComboBox * createComboBox ( YWidget * parent,
const std::string & label,
bool editable =
false );
101 virtual YQSelectionBox * createSelectionBox ( YWidget * parent,
const std::string & label );
102 virtual YQTree * createTree ( YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false );
103 virtual YQTable * createTable ( YWidget * parent, YTableHeader * header,
bool multiSelection =
false );
104 virtual YQProgressBar * createProgressBar ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
105 virtual YQRichText * createRichText ( YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false );
111 virtual YQIntField * createIntField ( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal );
112 virtual YQMenuButton * createMenuButton ( YWidget * parent,
const std::string & label );
113 virtual YQMultiLineEdit * createMultiLineEdit ( YWidget * parent,
const std::string & label );
114 virtual YQImage * createImage ( YWidget * parent,
const std::string & imageFileName,
bool animated =
false );
115 virtual YQLogView * createLogView ( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 );
116 virtual YQMultiSelectionBox *createMultiSelectionBox( YWidget * parent,
const std::string & label );
117 virtual YQBusyIndicator * createBusyIndicator ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
119 virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long modeFlags = 0 );
120 virtual YWidget * createPkgSpecial ( YWidget * parent,
const std::string & name );
126 virtual YQSpacing * createSpacing ( YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 );
127 virtual YQEmpty * createEmpty ( YWidget * parent );
128 virtual YQAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
129 virtual YQSquash * createSquash ( YWidget * parent,
bool horSquash,
bool vertSquash );
135 virtual YQFrame * createFrame ( YWidget * parent,
const std::string & label );
136 virtual YQCheckBoxFrame * createCheckBoxFrame ( YWidget * parent,
const std::string & label,
bool checked );
149 virtual YQItemSelector * createItemSelector ( YWidget * parent,
bool enforceSingleSelection =
true );
150 virtual YQCustomStatusItemSelector * createCustomStatusItemSelector ( YWidget * parent,
const YItemCustomStatusVector & customStates );
172 #endif // YQWidgetFactory_h
MultiLineEdit - an input area for multi-line text.
ItemSelector widget with support for custom status values, not just 0 or 1.