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