Qtopia library API Documentation

categorywidget.cpp

00001 /**********************************************************************
00002 ** Copyright (C) 2001 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 #include "categoryedit_p.h"
00022 #include "categorywidget.h"
00023 
00024 CategoryWidget::CategoryWidget( QWidget *parent, const char *name )
00025     : QVBox( parent, name )
00026 {
00027     ce = new CategoryEdit( this, name );
00028 }
00029 
00030 CategoryWidget::CategoryWidget( const QArray<int> &vlRecs,
00031                 const QString &appName, QWidget *parent,
00032                 const char *name )
00033     : QVBox( parent, name )
00034 {
00035     ce = new CategoryEdit( vlRecs, appName, appName, this, name );
00036 }
00037 
00038 CategoryWidget::CategoryWidget( const QArray<int> &vlRecs,
00039                 const QString &appName, const QString &visibleName,
00040                 QWidget *parent, const char *name )
00041     : QVBox( parent, name )
00042 {
00043     ce = new CategoryEdit( vlRecs, appName, visibleName, this, name );
00044 }
00045 
00046 CategoryWidget::~CategoryWidget()
00047 {
00048 }
00049 
00050 void CategoryWidget::setCategories( const QArray<int> &vlRecs,
00051                     const QString &appName )
00052 {
00053     ce->setCategories( vlRecs, appName, appName );
00054 }
00055 
00056 void CategoryWidget::setCategories( const QArray<int> &vlRecs,
00057                     const QString &appName,
00058                     const QString &visibleName )
00059 {
00060     ce->setCategories( vlRecs, appName, visibleName );
00061 }
00062 
00063 QArray<int> CategoryWidget::newCategories()
00064 {
00065     return ce->newCategories();
00066 }
00067 
00068 void CategoryWidget::kludge()
00069 {
00070     ce->kludge();
00071 }
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:03 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001