1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YWebWidgetFactory.cc
15 Author: Stanislav Visnovsky <visnov@suse.de>
19 #define y2log_component "web-ui"
20 #include <ycp/y2log.h>
22 #include "YWebWidgetFactory.h"
24 #include "YWebPushButton.h"
25 #include "YWebLabel.h"
48 class YMultiSelectionBox;
49 class YPackageSelector;
52 class YRadioButtonGroup;
66 * Abstract widget factory for mandatory widgets.
67 * Use YOptionalWidgetFactory for optional ("special") widgets.
69 * Refer to the respective widget's documentation (in the header file) for
70 * documentation about the function parameters.
77 YDialog * YWebWidgetFactory::createMainDialog() { return 0L; }
78 YDialog * YWebWidgetFactory::createPopupDialog() { return 0L; }
84 YLayoutBox * YWebWidgetFactory::createVBox ( YWidget * parent ){ return 0L; }
85 YLayoutBox * YWebWidgetFactory::createHBox ( YWidget * parent ){ return 0L; }
86 YLayoutBox * YWebWidgetFactory::createLayoutBox ( YWidget * parent, YUIDimension dimension ) { return 0L; }
87 YAlignment * YWebWidgetFactory::createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment ) { return 0L; }
89 // Common Leaf Widgets
92 YPushButton * YWebWidgetFactory::createPushButton ( YWidget * parent, const string & label )
94 y2milestone( "Creating push button '%s'", label.c_str() );
95 return new YWebPushButton( parent, label );
98 YLabel * YWebWidgetFactory::createLabel( YWidget * parent, const string & text, bool isHeading, bool isOutputField )
100 return new YWebLabel(parent, text);
104 YInputField * YWebWidgetFactory::createInputField ( YWidget * parent, const string & label, bool passwordMode ) { return 0L; }
105 YCheckBox * YWebWidgetFactory::createCheckBox ( YWidget * parent, const string & label, bool isChecked ) { return 0L; }
106 YRadioButton * YWebWidgetFactory::createRadioButton ( YWidget * parent, const string & label, bool isChecked ) { return 0L; }
107 YComboBox * YWebWidgetFactory::createComboBox ( YWidget * parent, const string & label, bool editable ) { return 0L; }
108 YSelectionBox * YWebWidgetFactory::createSelectionBox ( YWidget * parent, const string & label ) { return 0L; }
109 YTree * YWebWidgetFactory::createTree ( YWidget * parent, const string & label ) { return 0L; }
110 YTable * YWebWidgetFactory::createTable ( YWidget * parent, YTableHeader * header ) { return 0L; }
111 YProgressBar * YWebWidgetFactory::createProgressBar ( YWidget * parent, const string & label, int maxValue ) { return 0L; }
112 YRichText * YWebWidgetFactory::createRichText ( YWidget * parent, const string & text, bool plainTextMode ) { return 0L; }
115 // Less Common Leaf Widgets
118 YIntField * YWebWidgetFactory::createIntField ( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal ) { return 0L; }
120 YMenuButton * YWebWidgetFactory::createMenuButton ( YWidget * parent, const string & label ) { return 0L; }
121 YMultiLineEdit * YWebWidgetFactory::createMultiLineEdit ( YWidget * parent, const string & label ) { return 0L; }
122 YImage * YWebWidgetFactory::createImage ( YWidget * parent, const string & imageFileName, bool animated ) { return 0L; }
123 YLogView * YWebWidgetFactory::createLogView ( YWidget * parent, const string & label, int visibleLines, int storedLines ) { return 0L; }
124 YMultiSelectionBox *YWebWidgetFactory::createMultiSelectionBox ( YWidget * parent, const string & label ) { return 0L; }
126 YPackageSelector * YWebWidgetFactory::createPackageSelector( YWidget * parent, long ModeFlags ) { return 0L; }
127 YWidget * YWebWidgetFactory::createPkgSpecial ( YWidget * parent, const string & subwidgetName ) { return 0L; } // NCurses only
133 YSpacing * YWebWidgetFactory::createSpacing ( YWidget * parent, YUIDimension dim, bool stretchable, YLayoutSize_t size ) { return 0L; }
134 YEmpty * YWebWidgetFactory::createEmpty ( YWidget * parent ) { return 0L; }
136 YSquash * YWebWidgetFactory::createSquash ( YWidget * parent, bool horSquash, bool vertSquash ) { return 0L; }
142 YFrame * YWebWidgetFactory::createFrame ( YWidget * parent, const string & label ) { return 0L; }
143 YCheckBoxFrame * YWebWidgetFactory::createCheckBoxFrame ( YWidget * parent, const string & label, bool checked ) { return 0L; }
149 YRadioButtonGroup * YWebWidgetFactory::createRadioButtonGroup ( YWidget * parent ) { return 0L; }
150 YReplacePoint * YWebWidgetFactory::createReplacePoint ( YWidget * parent ) { return 0L; }
156 * Use YUI::widgetFactory() to get the singleton for this class.
158 YWebWidgetFactory::YWebWidgetFactory(){}
163 YWebWidgetFactory::~YWebWidgetFactory(){}