~ubuntu-branches/ubuntu/hardy/libterralib/hardy

« back to all changes in this revision

Viewing changes to src/terralib/application/qt/TeQtDatabaseItem.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-25 22:32:59 UTC
  • Revision ID: james.westby@ubuntu.com-20051125223259-3zubal8ux4ki4fjg
Tags: upstream-3.0.3b2
Import upstream version 3.0.3b2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/************************************************************************************
 
2
TerraView - visualization and exploration of geographical databases
 
3
using TerraLib.
 
4
Copyright � 2001-2004 INPE and Tecgraf/PUC-Rio.
 
5
This file is part of TerraView. TerraView is free software; you can redistribute it 
 
6
and/or modify it under the terms of the GNU General Public License as published by
 
7
the Free Software Foundation; either version 2 of the License, or
 
8
(at your option) any later version.
 
9
 
 
10
You should have received a copy of the GNU General Public License
 
11
along with TerraView.
 
12
The authors reassure the license terms regarding the warranties.
 
13
They specifically disclaim any warranties, including, but not limited to,
 
14
the implied warranties of merchantability and fitness for a particular purpose.
 
15
The software provided hereunder is on an "as is" basis, and the authors have no
 
16
obligation to provide maintenance, support, updates, enhancements, or modifications.
 
17
In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
 
18
indirect, special, incidental, or consequential damages arising out of the use of
 
19
this program and its documentation.
 
20
*************************************************************************************/
 
21
 
 
22
#ifndef  __TERRALIB_INTERNAL_QTDATABASEITEM_H
 
23
#define  __TERRALIB_INTERNAL_QTDATABASEITEM_H
 
24
 
 
25
#include <TeQtCheckListItem.h>
 
26
 
 
27
class TeDatabase;
 
28
 
 
29
 
 
30
class TeQtDatabaseItem : public TeQtCheckListItem
 
31
{
 
32
public:
 
33
    TeQtDatabaseItem(QListView *parent, QString text,
 
34
                                         TeDatabase *db);
 
35
 
 
36
        ~TeQtDatabaseItem () {}
 
37
 
 
38
        int compare(QListViewItem * i, int col, bool ascending) const
 
39
                { return QListViewItem::compare(i, col, ascending); }
 
40
 
 
41
        QString key(int col, bool ascending) const
 
42
                { return QListViewItem::key(col, ascending); }
 
43
 
 
44
        TeDatabase*     getDatabase()
 
45
                {return db_;}
 
46
 
 
47
protected:
 
48
        TeDatabase      *db_;
 
49
};
 
50
 
 
51
#endif