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 std::string & label )
102 YUI_CHECK_NEW( pushButton );
110 YQWidgetFactory::createLabel( YWidget * parent,
111 const std::string & text,
115 YQLabel * label =
new YQLabel( parent, text, isHeading, isOutputField );
116 YUI_CHECK_NEW( label );
124 YQWidgetFactory::createInputField( YWidget * parent,
const std::string & label,
bool passwordMode )
127 YUI_CHECK_NEW( inputField );
135 YQWidgetFactory::createCheckBox( YWidget * parent,
const std::string & label,
bool isChecked )
138 YUI_CHECK_NEW( checkBox );
146 YQWidgetFactory::createRadioButton( YWidget * parent,
const std::string & label,
bool isChecked )
149 YUI_CHECK_NEW( radioButton );
155 if ( radioButton->buttonGroup() )
156 radioButton->buttonGroup()->addRadioButton( radioButton );
164 YQWidgetFactory::createComboBox( YWidget * parent,
const std::string & label,
bool editable )
167 YUI_CHECK_NEW( comboBox );
175 YQWidgetFactory::createSelectionBox( YWidget * parent,
const std::string & label )
178 YUI_CHECK_NEW( selectionBox );
186 YQWidgetFactory::createTree( YWidget * parent,
const std::string & label,
bool multiselection,
bool recursiveselection )
188 YQTree * tree =
new YQTree( parent, label, multiselection, recursiveselection );
189 YUI_CHECK_NEW( tree );
197 YQWidgetFactory::createTable( YWidget * parent, YTableHeader * header,
bool multiSelection )
200 YUI_CHECK_NEW( table );
208 YQWidgetFactory::createProgressBar( YWidget * parent,
const std::string & label,
int maxValue )
211 YUI_CHECK_NEW( progressBar );
219 YQWidgetFactory::createRichText( YWidget * parent,
const std::string & text,
bool plainTextMode )
222 YUI_CHECK_NEW( richText );
229 YQWidgetFactory::createBusyIndicator( YWidget * parent,
const std::string & label,
int maxValue )
232 YUI_CHECK_NEW( busyIndicator );
234 return busyIndicator;
245 YQWidgetFactory::createIntField( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal )
248 YUI_CHECK_NEW( intField );
256 YQWidgetFactory::createMenuButton( YWidget * parent,
const std::string & label )
259 YUI_CHECK_NEW( menuButton );
267 YQWidgetFactory::createMultiLineEdit( YWidget * parent,
const std::string & label )
270 YUI_CHECK_NEW( multiLineEdit );
272 return multiLineEdit;
278 YQWidgetFactory::createImage( YWidget * parent,
const std::string & imageFileName,
bool animated )
281 YUI_CHECK_NEW( image );
288 YQWidgetFactory::createLogView( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines )
291 YUI_CHECK_NEW( logView );
299 YQWidgetFactory::createMultiSelectionBox( YWidget * parent,
const std::string & label )
302 YUI_CHECK_NEW( multiSelectionBox );
304 return multiSelectionBox;
308 YQWidgetFactory::createPackageSelector(YWidget* parent,
long modeFlags)
311 YUI_CHECK_PTR( plugin );
315 YUI_CHECK_NEW( pkgSel );
321 YQWidgetFactory::createPkgSpecial( YWidget * ,
const std::string & )
323 YUI_THROW( YUIUnsupportedWidgetException(
"YQPkgSpecial" ) );
333 YQWidgetFactory::createSpacing( YWidget * parent, YUIDimension dim,
bool stretchable, YLayoutSize_t size )
336 YUI_CHECK_NEW( spacing );
343 YQWidgetFactory::createEmpty( YWidget * parent )
346 YUI_CHECK_NEW( empty );
354 YQWidgetFactory::createAlignment( YWidget * parent,
355 YAlignmentType horAlignment,
356 YAlignmentType vertAlignment )
359 YUI_CHECK_NEW( alignment );
366 YQWidgetFactory::createSquash( YWidget * parent,
bool horSquash,
bool vertSquash )
369 YUI_CHECK_NEW( squash );
377 YQWidgetFactory::createFrame( YWidget * parent,
const std::string & label )
380 YUI_CHECK_NEW( frame );
388 YQWidgetFactory::createCheckBoxFrame( YWidget * parent,
const std::string & label,
bool checked )
391 YUI_CHECK_NEW( checkBoxFrame );
393 return checkBoxFrame;
399 YQWidgetFactory::createRadioButtonGroup( YWidget * parent )
402 YUI_CHECK_NEW( radioButtonGroup );
404 return radioButtonGroup;
410 YQWidgetFactory::createReplacePoint( YWidget * parent )
413 YUI_CHECK_NEW( replacePoint );
MultiLineEdit - an input area for multi-line text.
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...