25 #define YUILogComponent "qt-ui" 26 #include <yui/YUILog.h> 28 #include "YQWidgetFactory.h" 29 #include "YQApplication.h" 30 #include <yui/YUIException.h> 31 #include "YQPackageSelectorPluginStub.h" 32 #include "YQMainWinDock.h" 59 YQWidgetFactory::createDialog( YDialogType dialogType, YDialogColorMode colorMode )
62 YUI_CHECK_NEW( dialog );
74 YQWidgetFactory::createLayoutBox( YWidget * parent, YUIDimension dim )
77 YUI_CHECK_NEW( layoutBox );
84 YQWidgetFactory::createButtonBox( YWidget * parent )
87 YUI_CHECK_NEW( buttonBox );
99 YQWidgetFactory::createPushButton( YWidget * parent,
const string & label )
102 YUI_CHECK_NEW( pushButton );
109 YQWidgetFactory::createLabel( YWidget * parent,
114 YQLabel * label =
new YQLabel( parent, text, isHeading, isOutputField );
115 YUI_CHECK_NEW( label );
122 YQWidgetFactory::createInputField( YWidget * parent,
const string & label,
bool passwordMode )
125 YUI_CHECK_NEW( inputField );
132 YQWidgetFactory::createCheckBox( YWidget * parent,
const string & label,
bool isChecked )
135 YUI_CHECK_NEW( checkBox );
142 YQWidgetFactory::createRadioButton( YWidget * parent,
const string & label,
bool isChecked )
145 YUI_CHECK_NEW( radioButton );
151 if ( radioButton->buttonGroup() )
152 radioButton->buttonGroup()->addRadioButton( radioButton );
159 YQWidgetFactory::createComboBox( YWidget * parent,
const string & label,
bool editable )
162 YUI_CHECK_NEW( comboBox );
169 YQWidgetFactory::createSelectionBox( YWidget * parent,
const string & label )
172 YUI_CHECK_NEW( selectionBox );
179 YQWidgetFactory::createTree( YWidget * parent,
const string & label,
bool multiselection,
bool recursiveselection )
181 YQTree * tree =
new YQTree( parent, label, multiselection, recursiveselection );
182 YUI_CHECK_NEW( tree );
189 YQWidgetFactory::createTable( YWidget * parent, YTableHeader * header,
bool multiSelection )
192 YUI_CHECK_NEW( table );
199 YQWidgetFactory::createProgressBar( YWidget * parent,
const string & label,
int maxValue )
202 YUI_CHECK_NEW( progressBar );
209 YQWidgetFactory::createRichText( YWidget * parent,
const string & text,
bool plainTextMode )
212 YUI_CHECK_NEW( richText );
219 YQWidgetFactory::createBusyIndicator( YWidget * parent,
const string & label,
int maxValue )
222 YUI_CHECK_NEW( busyIndicator );
224 return busyIndicator;
235 YQWidgetFactory::createIntField( YWidget * parent,
const string & label,
int minVal,
int maxVal,
int initialVal )
238 YUI_CHECK_NEW( intField );
245 YQWidgetFactory::createMenuButton( YWidget * parent,
const string & label )
248 YUI_CHECK_NEW( menuButton );
255 YQWidgetFactory::createMultiLineEdit( YWidget * parent,
const string & label )
258 YUI_CHECK_NEW( multiLineEdit );
260 return multiLineEdit;
265 YQWidgetFactory::createImage( YWidget * parent,
const string & imageFileName,
bool animated )
268 YUI_CHECK_NEW( image );
274 YQWidgetFactory::createLogView( YWidget * parent,
const string & label,
int visibleLines,
int storedLines )
277 YUI_CHECK_NEW( logView );
284 YQWidgetFactory::createMultiSelectionBox( YWidget * parent,
const string & label )
287 YUI_CHECK_NEW( multiSelectionBox );
289 return multiSelectionBox;
294 YQWidgetFactory::createPackageSelector(YWidget* parent,
long modeFlags)
297 YUI_CHECK_PTR( plugin );
301 YUI_CHECK_NEW( pkgSel );
307 YQWidgetFactory::createPkgSpecial( YWidget * ,
const string & )
309 YUI_THROW( YUIUnsupportedWidgetException(
"YQPkgSpecial" ) );
319 YQWidgetFactory::createSpacing( YWidget * parent, YUIDimension dim,
bool stretchable, YLayoutSize_t size )
322 YUI_CHECK_NEW( spacing );
329 YQWidgetFactory::createEmpty( YWidget * parent )
332 YUI_CHECK_NEW( empty );
339 YQWidgetFactory::createAlignment( YWidget * parent,
340 YAlignmentType horAlignment,
341 YAlignmentType vertAlignment )
344 YUI_CHECK_NEW( alignment );
351 YQWidgetFactory::createSquash( YWidget * parent,
bool horSquash,
bool vertSquash )
354 YUI_CHECK_NEW( squash );
361 YQWidgetFactory::createFrame( YWidget * parent,
const string & label )
364 YUI_CHECK_NEW( frame );
371 YQWidgetFactory::createCheckBoxFrame( YWidget * parent,
const string & label,
bool checked )
374 YUI_CHECK_NEW( checkBoxFrame );
376 return checkBoxFrame;
382 YQWidgetFactory::createRadioButtonGroup( YWidget * parent )
385 YUI_CHECK_NEW( radioButtonGroup );
387 return radioButtonGroup;
392 YQWidgetFactory::createReplacePoint( YWidget * parent )
395 YUI_CHECK_NEW( replacePoint );
402 YQWidgetFactory::createItemSelector( YWidget * parent,
bool enforceSingleSelection )
405 YUI_CHECK_NEW( selector );
412 YQWidgetFactory::createCustomStatusItemSelector( YWidget * parent,
413 const YItemCustomStatusVector & customStates )
416 YUI_CHECK_NEW( selector );
MultiLineEdit - an input area for multi-line text.
ItemSelector widget with support for custom status values, not just 0 or 1.
virtual YPackageSelector * createPackageSelector(YWidget *parent, long modeFlags)
Create a package selector.
static YQPackageSelectorPluginStub * packageSelectorPlugin()
Return the package selector plugin singleton or creates it (including loading the plugin lib) if it d...