-rw-r--r-- | library/categorymenu.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/categorymenu.cpp b/library/categorymenu.cpp index 5d7adf7..9bbb448 100644 --- a/library/categorymenu.cpp +++ b/library/categorymenu.cpp @@ -1,73 +1,71 @@ /********************************************************************** ** Copyright (C) 2001 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "categorymenu.h" #include "backend/categories.h" #include "categoryselect.h" -#include <qstring.h> -#include <qmap.h> /*! \class CategoryMenu \brief The CategoryMenu widget aids in filtering records or files by Category. The CategoryMenu widget provides a popup menu that will make filtering records or files by category much easier. The widget will lookup the available categories for an application, populate the menu, and keep a track of which categories are being filtered against. A set of categories can be tested by the isSelected() function to see if a record or file containing those categories would be allowed through by the filter. \warning Currently this class is not suitable for extending. \ingroup qtopiaemb */ /*! \fn void CategoryMenu::categoryChange() This signal is emitted when the user selects a different category in the menu, hence changing what records or files should be selected. */ /*! Creates a new CategoryMenu with \a parent and \a name. The menu will be populated with the available categories for \a application. If \a globals is TRUE then it will also poplulate the menu with the global categories. */ CategoryMenu::CategoryMenu( const QString &n, bool ig = TRUE, QWidget *parent, const char *name ) : QPopupMenu(parent, name), appName(n), includeGlobal(ig) { currentMid = 1; reload(); connect(this, SIGNAL(activated(int)), this, SLOT(mapMenuId(int))); } /*! Destroys a CategoryMenu. */ CategoryMenu::~CategoryMenu( ) { } |