~ubuntu-branches/ubuntu/karmic/anymeal/karmic

« back to all changes in this revision

Viewing changes to src/categoryListItem.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2006-09-17 01:26:36 UTC
  • Revision ID: james.westby@ubuntu.com-20060917012636-f5sttqac644nwofk
Tags: upstream-0.29-3
ImportĀ upstreamĀ versionĀ 0.29-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2002, 2003, 2004, 2005 Jan Wedekind.
 
2
   This file is part of the recipe database application AnyMeal.
 
3
 
 
4
   AnyMeal is free software; you can redistribute it and/or modify it under
 
5
   the terms of the GNU GENERAL PUBLIC LICENSE as published by the Free
 
6
   Software Foundation; either version 2 of the License, or (at your option)
 
7
   any later version.
 
8
 
 
9
   AnyMeal is distributed in the hope that it will be useful, but WITHOUT ANY
 
10
   WARRANTY; without even the implied warranty of MERCHANTIBILITY or FITNESS
 
11
   FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 
12
   details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License along
 
15
   with AnyMeal; if not, contact one of the authors of this software. */
 
16
#ifndef __CATEGORYLISTITEM_HPP
 
17
#define __CATEGORYLISTITEM_HPP
 
18
 
 
19
#include <qlistview.h>
 
20
#include <set>
 
21
 
 
22
/** Item for displaying a single category.
 
23
    @date Wed Mar 09 2005
 
24
    @author Jan Wedekind (wedesoft@users.sourceforge.net) */
 
25
class CategoryListItem: public QCheckListItem
 
26
{
 
27
 public:
 
28
  ///
 
29
  typedef QCheckListItem::Type Type;
 
30
  ///
 
31
  CategoryListItem( QListView *parent, const QString &text );
 
32
  ///
 
33
  virtual int compare( QListViewItem *i, int col, bool ascending ) const;
 
34
};
 
35
 
 
36
#endif