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"
23 #include "YWebPushButton.h"
46 class YMultiSelectionBox;
47 class YPackageSelector;
50 class YRadioButtonGroup;
64 * Abstract widget factory for mandatory widgets.
65 * Use YOptionalWidgetFactory for optional ("special") widgets.
67 * Refer to the respective widget's documentation (in the header file) for
68 * documentation about the function parameters.
75 YDialog * YWebWidgetFactory::createMainDialog() {}
76 YDialog * YWebWidgetFactory::createPopupDialog() {}
82 YLayoutBox * YWebWidgetFactory::createVBox ( YWidget * parent ){}
83 YLayoutBox * YWebWidgetFactory::createHBox ( YWidget * parent ){}
84 YLayoutBox * YWebWidgetFactory::createLayoutBox ( YWidget * parent, YUIDimension dimension ) {}
85 YAlignment * YWebWidgetFactory::createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment ) {}
87 // Common Leaf Widgets
90 YPushButton * YWebWidgetFactory::createPushButton ( YWidget * parent, const string & label )
92 y2milestone( "Creating push button '%s'", label.c_str() );
93 return new YWebPushButton( parent, label );
96 YLabel * YWebWidgetFactory::createLabel ( YWidget * parent, const string & text, bool isHeading, bool isOutputField ) {}
97 YInputField * YWebWidgetFactory::createInputField ( YWidget * parent, const string & label, bool passwordMode ) {}
98 YCheckBox * YWebWidgetFactory::createCheckBox ( YWidget * parent, const string & label, bool isChecked ) {}
99 YRadioButton * YWebWidgetFactory::createRadioButton ( YWidget * parent, const string & label, bool isChecked ) {}
100 YComboBox * YWebWidgetFactory::createComboBox ( YWidget * parent, const string & label, bool editable ) {}
101 YSelectionBox * YWebWidgetFactory::createSelectionBox ( YWidget * parent, const string & label ) {}
102 YTree * YWebWidgetFactory::createTree ( YWidget * parent, const string & label ) {}
103 YTable * YWebWidgetFactory::createTable ( YWidget * parent, YTableHeader * header ) {}
104 YProgressBar * YWebWidgetFactory::createProgressBar ( YWidget * parent, const string & label, int maxValue ) {}
105 YRichText * YWebWidgetFactory::createRichText ( YWidget * parent, const string & text, bool plainTextMode ) {}
108 // Less Common Leaf Widgets
111 YIntField * YWebWidgetFactory::createIntField ( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal ) {}
113 YMenuButton * YWebWidgetFactory::createMenuButton ( YWidget * parent, const string & label ) {}
114 YMultiLineEdit * YWebWidgetFactory::createMultiLineEdit ( YWidget * parent, const string & label ) {}
115 YImage * YWebWidgetFactory::createImage ( YWidget * parent, const string & imageFileName, bool animated ) {}
116 YLogView * YWebWidgetFactory::createLogView ( YWidget * parent, const string & label, int visibleLines, int storedLines ) {}
117 YMultiSelectionBox *YWebWidgetFactory::createMultiSelectionBox ( YWidget * parent, const string & label ) {}
119 YPackageSelector * YWebWidgetFactory::createPackageSelector( YWidget * parent, long ModeFlags ) {}
120 YWidget * YWebWidgetFactory::createPkgSpecial ( YWidget * parent, const string & subwidgetName ) {} // NCurses only
126 YSpacing * YWebWidgetFactory::createSpacing ( YWidget * parent, YUIDimension dim, bool stretchable, YLayoutSize_t size ) {}
127 YEmpty * YWebWidgetFactory::createEmpty ( YWidget * parent ) {}
129 YSquash * YWebWidgetFactory::createSquash ( YWidget * parent, bool horSquash, bool vertSquash ) {}
135 YFrame * YWebWidgetFactory::createFrame ( YWidget * parent, const string & label ) {}
136 YCheckBoxFrame * YWebWidgetFactory::createCheckBoxFrame ( YWidget * parent, const string & label, bool checked ) {}
142 YRadioButtonGroup * YWebWidgetFactory::createRadioButtonGroup ( YWidget * parent ) {}
143 YReplacePoint * YWebWidgetFactory::createReplacePoint ( YWidget * parent ) {}
149 * Use YUI::widgetFactory() to get the singleton for this class.
151 YWebWidgetFactory::YWebWidgetFactory(){}
156 YWebWidgetFactory::~YWebWidgetFactory(){}