libyui-qt  2.46.13
YQOptionalWidgetFactory Class Reference

Widget factory for optional ("special") widgets. More...

#include <YQOptionalWidgetFactory.h>

Inheritance diagram for YQOptionalWidgetFactory:
Collaboration diagram for YQOptionalWidgetFactory:

Public Member Functions

virtual bool hasWizard ()
 
virtual YWizard * createWizard (YWidget *parent, const std::string &backButtonLabel, const std::string &abortButtonLabel, const std::string &nextButtonLabel, YWizardMode wizardMode=YWizardMode_Standard)
 
virtual bool hasDumbTab ()
 
virtual YQDumbTabcreateDumbTab (YWidget *parent)
 
virtual bool hasSlider ()
 
virtual YQSlidercreateSlider (YWidget *parent, const std::string &label, int minVal, int maxVal, int initialVal)
 
virtual bool hasDateField ()
 
virtual YQDateFieldcreateDateField (YWidget *parent, const std::string &label)
 
virtual bool hasTimeField ()
 
virtual YQTimeFieldcreateTimeField (YWidget *parent, const std::string &label)
 
virtual bool hasBarGraph ()
 
virtual YQBarGraphcreateBarGraph (YWidget *parent)
 
virtual bool hasPatternSelector ()
 
virtual YWidget * createPatternSelector (YWidget *parent, long modeFlags=0)
 
virtual bool hasSimplePatchSelector ()
 
virtual YWidget * createSimplePatchSelector (YWidget *parent, long modeFlags=0)
 
virtual bool hasMultiProgressMeter ()
 
virtual YQMultiProgressMetercreateMultiProgressMeter (YWidget *parent, YUIDimension dim, const vector< float > &maxValues)
 
virtual bool hasPartitionSplitter ()
 
virtual YQPartitionSplittercreatePartitionSplitter (YWidget *parent, int usedSize, int totalFreeSize, int newPartSize, int minNewPartSize, int minFreeSize, const std::string &usedLabel, const std::string &freeLabel, const std::string &newPartLabel, const std::string &freeFieldLabel, const std::string &newPartFieldLabel)
 
virtual bool hasDownloadProgress ()
 
virtual YQDownloadProgresscreateDownloadProgress (YWidget *parent, const std::string &label, const std::string &filename, YFileSize_t expectedFileSize)
 
virtual bool hasTimezoneSelector ()
 
virtual YTimezoneSelector * createTimezoneSelector (YWidget *parent, const std::string &pixmap, const map< string, string > &timezones)
 
virtual bool hasGraph ()
 
virtual YGraph * createGraph (YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm)
 
virtual YGraph * createGraph (YWidget *parent, void *graph)
 
virtual bool hasContextMenu ()
 

Protected Member Functions

 YQOptionalWidgetFactory ()
 Constructor. More...
 
virtual ~YQOptionalWidgetFactory ()
 Destructor.
 

Friends

class YQUI
 

Detailed Description

Widget factory for optional ("special") widgets.

Remember to always check with the corresponding "has..()" method if the current UI actually provides the requested widget. Otherwise the "create...()" method will throw an exception.

Definition at line 54 of file YQOptionalWidgetFactory.h.

Constructor & Destructor Documentation

YQOptionalWidgetFactory::YQOptionalWidgetFactory ( )
protected

Constructor.

Use YUI::optionalWidgetFactory() to get the singleton for this class.

Definition at line 39 of file YQOptionalWidgetFactory.cc.


The documentation for this class was generated from the following files: