1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YWebWidgetFactory.cc
15 Author: Stanislav Visnovsky <visnov@suse.de>
19 #include "YWebWidgetFactory.h"
25 #include "YWebPushButton.h"
45 class YMultiSelectionBox;
46 class YPackageSelector;
49 class YRadioButtonGroup;
63 * Abstract widget factory for mandatory widgets.
64 * Use YOptionalWidgetFactory for optional ("special") widgets.
66 * Refer to the respective widget's documentation (in the header file) for
67 * documentation about the function parameters.
74 YDialog * YWebWidgetFactory::createMainDialog() {}
75 YDialog * YWebWidgetFactory::createPopupDialog() {}
81 YLayoutBox * YWebWidgetFactory::createVBox ( YWidget * parent ){}
82 YLayoutBox * YWebWidgetFactory::createHBox ( YWidget * parent ){}
83 YLayoutBox * YWebWidgetFactory::createLayoutBox ( YWidget * parent, YUIDimension dimension ) {}
84 YAlignment * YWebWidgetFactory::createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment ) {}
86 // Common Leaf Widgets
89 YPushButton * YWebWidgetFactory::createPushButton ( YWidget * parent, const string & label )
91 return new YWebPushButton( parent, label );
94 YLabel * YWebWidgetFactory::createLabel ( YWidget * parent, const string & text, bool isHeading, bool isOutputField ) {}
95 YInputField * YWebWidgetFactory::createInputField ( YWidget * parent, const string & label, bool passwordMode ) {}
96 YCheckBox * YWebWidgetFactory::createCheckBox ( YWidget * parent, const string & label, bool isChecked ) {}
97 YRadioButton * YWebWidgetFactory::createRadioButton ( YWidget * parent, const string & label, bool isChecked ) {}
98 YComboBox * YWebWidgetFactory::createComboBox ( YWidget * parent, const string & label, bool editable ) {}
99 YSelectionBox * YWebWidgetFactory::createSelectionBox ( YWidget * parent, const string & label ) {}
100 YTree * YWebWidgetFactory::createTree ( YWidget * parent, const string & label ) {}
101 YTable * YWebWidgetFactory::createTable ( YWidget * parent, YTableHeader * header ) {}
102 YProgressBar * YWebWidgetFactory::createProgressBar ( YWidget * parent, const string & label, int maxValue ) {}
103 YRichText * YWebWidgetFactory::createRichText ( YWidget * parent, const string & text, bool plainTextMode ) {}
106 // Less Common Leaf Widgets
109 YIntField * YWebWidgetFactory::createIntField ( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal ) {}
111 YMenuButton * YWebWidgetFactory::createMenuButton ( YWidget * parent, const string & label ) {}
112 YMultiLineEdit * YWebWidgetFactory::createMultiLineEdit ( YWidget * parent, const string & label ) {}
113 YImage * YWebWidgetFactory::createImage ( YWidget * parent, const string & imageFileName, bool animated ) {}
114 YLogView * YWebWidgetFactory::createLogView ( YWidget * parent, const string & label, int visibleLines, int storedLines ) {}
115 YMultiSelectionBox *YWebWidgetFactory::createMultiSelectionBox ( YWidget * parent, const string & label ) {}
117 YPackageSelector * YWebWidgetFactory::createPackageSelector( YWidget * parent, long ModeFlags ) {}
118 YWidget * YWebWidgetFactory::createPkgSpecial ( YWidget * parent, const string & subwidgetName ) {} // NCurses only
124 YSpacing * YWebWidgetFactory::createSpacing ( YWidget * parent, YUIDimension dim, bool stretchable, YLayoutSize_t size ) {}
125 YEmpty * YWebWidgetFactory::createEmpty ( YWidget * parent ) {}
127 YSquash * YWebWidgetFactory::createSquash ( YWidget * parent, bool horSquash, bool vertSquash ) {}
133 YFrame * YWebWidgetFactory::createFrame ( YWidget * parent, const string & label ) {}
134 YCheckBoxFrame * YWebWidgetFactory::createCheckBoxFrame ( YWidget * parent, const string & label, bool checked ) {}
140 YRadioButtonGroup * YWebWidgetFactory::createRadioButtonGroup ( YWidget * parent ) {}
141 YReplacePoint * YWebWidgetFactory::createReplacePoint ( YWidget * parent ) {}
147 * Use YUI::widgetFactory() to get the singleton for this class.
149 YWebWidgetFactory::YWebWidgetFactory(){}
154 YWebWidgetFactory::~YWebWidgetFactory(){}