libyui-mga-gtk  1.1.0
YMGAGWidgetFactory.h
1 /*
2  Copyright 2013 by Angelo Naselli <anaselli at linux dot it>
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Lesser General Public License as
6  published by the Free Software Foundation; either version 2.1 of the
7  License, or (at your option) version 3.0 of the License. This library
8  is distributed in the hope that it will be useful, but WITHOUT ANY
9  WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11  License for more details. You should have received a copy of the GNU
12  Lesser General Public License along with this library; if not, write
13  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14  Floor, Boston, MA 02110-1301 USA
15 */
16 
17 
18 /*-/
19 
20  File: YMGAGWidgetFactory.h
21 
22  Author: Angelo Naselli <anaselli@linux.it>
23 
24 /-*/
25 
26 #ifndef YMGAGWidgetFactory_h
27 #define YMGAGWidgetFactory_h
28 
29 
30 #include <yui/mga/YMGAWidgetExtensionFactory.h>
31 
32 #include "YMGA_CBTable.h"
33 
34 
35 using std::string;
36 
37 
38 /**
39  * Concrete widget factory for mandatory widgets.
40  **/
41 class YMGAGWidgetFactory: public YMGAWidgetFactory
42 {
43 public:
44 
45  virtual YMGA_CBTable * createCBTable ( YWidget * parent, YTableHeader * header_disown, YCBTableMode mode = YCBTableCheckBoxOnFirstColumn );
46  virtual YMGAMenuBar * createMenuBar ( YWidget *parent );
47 
48 protected:
49 
50  friend class YGWE;
51 
52  /**
53  * Constructor.
54  *
55  * Use YUI::widgetFactory() to get the singleton for this class.
56  **/
58 
59  /**
60  * Destructor.
61  **/
62  virtual ~YMGAGWidgetFactory();
63 
64 }; // class YWidgetFactory
65 
66 
67 #endif // YMGAGWidgetFactory_h
YMGAGWidgetFactory::YMGAGWidgetFactory
YMGAGWidgetFactory()
Constructor.
Definition: YMGAGWidgetFactory.cc:42
YMGAGWidgetFactory
Concrete widget factory for mandatory widgets.
Definition: YMGAGWidgetFactory.h:42
YMGAGWidgetFactory::~YMGAGWidgetFactory
virtual ~YMGAGWidgetFactory()
Destructor.
Definition: YMGAGWidgetFactory.cc:49
YGWE
Definition: YGWE.h:31