]> icculus.org git repositories - duncan/yast2-web-wt.git/blob - src/YWebWidgetFactory.cc
compile
[duncan/yast2-web-wt.git] / src / YWebWidgetFactory.cc
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:         YWebWidgetFactory.cc
14
15   Author:       Stanislav Visnovsky <visnov@suse.de>
16
17 /-*/
18
19 #include "YWebWidgetFactory.h"
20
21 #include <string>
22
23 #include "YTypes.h"
24
25 #include "YWebPushButton.h"
26
27 using std::string;
28
29 class YWidget;
30 class YAlignment;
31 class YCheckBox;
32 class YCheckBoxFrame;
33 class YComboBox;
34 class YDialog;
35 class YEmpty;
36 class YFrame;
37 class YImage;
38 class YInputField;
39 class YIntField;
40 class YLabel;
41 class YLayoutBox;
42 class YLogView;
43 class YMenuButton;
44 class YMultiLineEdit;
45 class YMultiSelectionBox;
46 class YPackageSelector;
47 class YProgressBar;
48 class YRadioButton;
49 class YRadioButtonGroup;
50 class YReplacePoint;
51 class YRichText;
52 class YSelectionBox;
53 class YSpacing;
54 class YSquash;
55 class YTable;
56 class YTableHeader;
57 class YTimeField;
58 class YTree;
59
60
61
62 /**
63  * Abstract widget factory for mandatory widgets.
64  * Use YOptionalWidgetFactory for optional ("special") widgets.
65  *
66  * Refer to the respective widget's documentation (in the header file) for
67  * documentation about the function parameters.
68  **/
69
70     //
71     // Dialogs
72     //
73
74     YDialog *           YWebWidgetFactory::createMainDialog()   {}
75     YDialog *           YWebWidgetFactory::createPopupDialog()  {}
76
77     //
78     // Layout Boxes
79     //
80
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 ) {}
85     //
86     // Common Leaf Widgets
87     //
88
89 YPushButton *   YWebWidgetFactory::createPushButton     ( YWidget * parent, const string & label )                              
90 {
91     return new YWebPushButton( parent, label );
92 }
93
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 )   {}
104
105     //
106     // Less Common Leaf Widgets
107     //
108
109     YIntField *         YWebWidgetFactory::createIntField       ( YWidget * parent, const string & label, int minVal, int maxVal, int initialVal )      {}
110
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 )                                           {}
116
117     YPackageSelector *  YWebWidgetFactory::createPackageSelector( YWidget * parent, long ModeFlags )            {}
118     YWidget *           YWebWidgetFactory::createPkgSpecial     ( YWidget * parent, const string & subwidgetName )      {} // NCurses only
119
120     //
121     // Layout Helpers
122     //
123
124     YSpacing *          YWebWidgetFactory::createSpacing        ( YWidget * parent, YUIDimension dim, bool stretchable, YLayoutSize_t size ) {}
125     YEmpty *            YWebWidgetFactory::createEmpty          ( YWidget * parent )    {}
126
127     YSquash *           YWebWidgetFactory::createSquash         ( YWidget * parent, bool horSquash, bool vertSquash ) {}
128
129     //
130     // Visual Grouping
131     //
132
133     YFrame *            YWebWidgetFactory::createFrame          ( YWidget * parent, const string & label )               {}
134     YCheckBoxFrame *    YWebWidgetFactory::createCheckBoxFrame  ( YWidget * parent, const string & label, bool checked ) {}
135
136     //
137     // Logical Grouping
138     //
139
140     YRadioButtonGroup * YWebWidgetFactory::createRadioButtonGroup       ( YWidget * parent )    {}
141     YReplacePoint *     YWebWidgetFactory::createReplacePoint   ( YWidget * parent )    {}
142
143
144     /**
145      * Constructor.
146      *
147      * Use YUI::widgetFactory() to get the singleton for this class.
148      **/
149     YWebWidgetFactory::YWebWidgetFactory(){}
150
151     /**
152      * Destructory.
153      **/
154     YWebWidgetFactory::~YWebWidgetFactory(){}
155