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