25 #include "YOptionalWidgetFactory.h" 26 #include "YWidgetFactory.h" 27 #include "YUIException.h" 31 #define YUILogComponent "owf" 35 #define THROW_UNSUPPORTED( WIDGET_TYPE ) \ 36 YUI_THROW( YUIUnsupportedWidgetException( WIDGET_TYPE ) ); \ 49 yuiMilestone() <<
"YOptionalWidgetFactory removed" << std::endl;
55 bool YOptionalWidgetFactory::hasWizard()
61 YOptionalWidgetFactory::createWizard(
YWidget * parent,
62 const std::string & backButtonLabel,
63 const std::string & abortButtonLabel,
64 const std::string & nextButtonLabel,
67 THROW_UNSUPPORTED(
"YWizard" );
72 bool YOptionalWidgetFactory::hasDumbTab()
78 YOptionalWidgetFactory::createDumbTab(
YWidget * parent )
80 THROW_UNSUPPORTED(
"YDumbTab" );
85 bool YOptionalWidgetFactory::hasSlider()
91 YOptionalWidgetFactory::createSlider(
YWidget * parent,
92 const std::string & label,
97 THROW_UNSUPPORTED(
"YSlider" );
102 bool YOptionalWidgetFactory::hasDateField()
108 YOptionalWidgetFactory::createDateField(
YWidget * parent,
const std::string & label )
110 THROW_UNSUPPORTED(
"YDateField" );
115 bool YOptionalWidgetFactory::hasTimeField()
121 YOptionalWidgetFactory::createTimeField(
YWidget * parent,
const std::string & label )
123 THROW_UNSUPPORTED(
"YTimeField" );
128 bool YOptionalWidgetFactory::hasBarGraph()
134 YOptionalWidgetFactory::createBarGraph(
YWidget * parent )
136 THROW_UNSUPPORTED(
"YBarGraph" );
141 bool YOptionalWidgetFactory::hasPatternSelector()
147 YOptionalWidgetFactory::createPatternSelector(
YWidget * parent,
long modeFlags )
149 THROW_UNSUPPORTED(
"YPatternSelector" );
154 bool YOptionalWidgetFactory::hasSimplePatchSelector()
160 YOptionalWidgetFactory::createSimplePatchSelector(
YWidget * parent,
long modeFlags )
162 THROW_UNSUPPORTED(
"YSimplePatchSelector" );
167 bool YOptionalWidgetFactory::hasMultiProgressMeter()
173 YOptionalWidgetFactory::createMultiProgressMeter(
YWidget * parent, YUIDimension dim,
const std::vector<float> & maxValues )
175 THROW_UNSUPPORTED(
"YMultiProgressMeter" );
179 YOptionalWidgetFactory::createHMultiProgressMeter(
YWidget * parent,
const std::vector<float> & maxValues )
181 return createMultiProgressMeter( parent, YD_HORIZ, maxValues );
185 YOptionalWidgetFactory::createVMultiProgressMeter(
YWidget * parent,
const std::vector<float> & maxValues )
187 return createMultiProgressMeter( parent, YD_VERT, maxValues );
192 bool YOptionalWidgetFactory::hasPartitionSplitter()
198 YOptionalWidgetFactory::createPartitionSplitter(
YWidget * parent,
204 const std::string & usedLabel,
205 const std::string & freeLabel,
206 const std::string & newPartLabel,
207 const std::string & freeFieldLabel,
208 const std::string & newPartFieldLabel )
210 THROW_UNSUPPORTED(
"YPartitionSplitter" );
215 bool YOptionalWidgetFactory::hasDownloadProgress()
221 YOptionalWidgetFactory::createDownloadProgress(
YWidget * parent,
222 const std::string & label,
223 const std::string & filename,
224 YFileSize_t expectedFileSize )
226 THROW_UNSUPPORTED(
"YDownloadProgress" );
231 bool YOptionalWidgetFactory::hasDummySpecialWidget()
237 YOptionalWidgetFactory::createDummySpecialWidget(
YWidget * parent )
242 bool YOptionalWidgetFactory::hasTimezoneSelector()
248 YOptionalWidgetFactory::createTimezoneSelector(
YWidget * parent,
249 const std::string & _map,
250 const std::map<std::string, std::string>& zones)
252 THROW_UNSUPPORTED(
"YTimezoneSelector" );
257 YOptionalWidgetFactory::hasGraph()
264 YOptionalWidgetFactory::createGraph(
YWidget * parent,
const std::string & filename,
265 const std::string & layoutAlgorithm )
267 THROW_UNSUPPORTED(
"YGraph" );
272 YOptionalWidgetFactory::createGraph(
YWidget * parent,
void * graph )
274 THROW_UNSUPPORTED(
"YGraph" );
279 YOptionalWidgetFactory::hasContextMenu()
Input field for entering a date.
YWizardMode
Kind of the wizard layout.
static YWidgetFactory * widgetFactory()
Return the widget factory that provides all the createXY() methods for standard (mandatory, i.e.
Input field for entering a time in "hh:mm:ss" format.
DownloadProgress: A progress bar that monitors downloading a file by repeatedly polling its size up t...
DumbTab: A very simple tab widget that can display and switch between a number of tabs...
PartitionSplitter: A (very custom) widget for easily splitting one existing partition into two...
A graph showing partitioning of a whole.
MultiProgressMeter: Progress bar with several segments that can indicate progress individually...
A graph with nodes and edges, rendered with Graphviz.
A wizard is a more complex frame typically used for multi-step workflows:
A fancy widget with a world map.
Slider: Input widget for an integer value between a minimum and a maximum value.