25 #ifndef YQOptionalWidgetFactory_h
26 #define YQOptionalWidgetFactory_h
29 #include <yui/YOptionalWidgetFactory.h>
31 #include "YQBarGraph.h"
32 #include "YQDateField.h"
33 #include "YQDownloadProgress.h"
34 #include "YQDumbTab.h"
35 #include "YQMultiProgressMeter.h"
36 #include "YQPartitionSplitter.h"
38 #include "YQTimeField.h"
63 virtual bool hasWizard();
64 virtual YWizard * createWizard ( YWidget * parent,
65 const std::string & backButtonLabel,
66 const std::string & abortButtonLabel,
67 const std::string & nextButtonLabel,
68 YWizardMode wizardMode = YWizardMode_Standard );
70 virtual bool hasDumbTab();
71 virtual YQDumbTab * createDumbTab ( YWidget * parent );
73 virtual bool hasSlider();
74 virtual YQSlider * createSlider ( YWidget * parent,
75 const std::string & label,
80 virtual bool hasDateField();
81 virtual YQDateField * createDateField ( YWidget * parent,
const std::string & label );
83 virtual bool hasTimeField();
84 virtual YQTimeField * createTimeField ( YWidget * parent,
const std::string & label );
86 virtual bool hasBarGraph();
87 virtual YQBarGraph * createBarGraph ( YWidget * parent );
89 virtual bool hasPatternSelector();
90 virtual YWidget * createPatternSelector ( YWidget * parent,
long modeFlags = 0 );
92 virtual bool hasSimplePatchSelector();
93 virtual YWidget * createSimplePatchSelector( YWidget * parent,
long modeFlags = 0 );
95 virtual bool hasMultiProgressMeter();
96 virtual YQMultiProgressMeter * createMultiProgressMeter( YWidget * parent, YUIDimension dim,
const vector<float> & maxValues );
98 virtual bool hasPartitionSplitter();
105 const std::string & usedLabel,
106 const std::string & freeLabel,
107 const std::string & newPartLabel,
108 const std::string & freeFieldLabel,
109 const std::string & newPartFieldLabel );
111 virtual bool hasDownloadProgress();
113 const std::string & label,
114 const std::string & filename,
115 YFileSize_t expectedFileSize );
117 virtual bool hasTimezoneSelector();
118 virtual YTimezoneSelector * createTimezoneSelector( YWidget * parent,
119 const std::string & pixmap,
120 const map<string,string> & timezones );
122 virtual bool hasGraph();
123 virtual YGraph * createGraph( YWidget * parent,
const std::string & filename,
124 const std::string & layoutAlgorithm );
125 virtual YGraph * createGraph( YWidget * parent,
void * graph );
127 virtual bool hasContextMenu();
149 #endif // YQOptionalWidgetFactory_h