| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/qt/TeQtLegendItem.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraView - visualization and exploration of geographical databases
    00003 using TerraLib.
    00004 Copyright � 2001-2007 INPE and Tecgraf/PUC-Rio.
    00005 This file is part of TerraView. TerraView is free software; you can redistribute it
    00006 and/or modify it under the terms of the GNU General Public License as published by
    00007 the Free Software Foundation; either version 2 of the License, or
    00008 (at your option) any later version.
    00009
    00010 You should have received a copy of the GNU General Public License
    00011 along with TerraView.
    00012 The authors reassure the license terms regarding the warranties.
    00013 They specifically disclaim any warranties, including, but not limited to,
    00014 the implied warranties of merchantability and fitness for a particular purpose.
    00015 The software provided hereunder is on an "as is" basis, and the authors have no
    00016 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00017 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00018 indirect, special, incidental, or consequential damages arising out of the use of
    00019 this program and its documentation.
    00020 *************************************************************************************/
    00021
    00022 #ifndef  __TERRALIB_INTERNAL_QTLEGENDITEM_H
    00023 #define  __TERRALIB_INTERNAL_QTLEGENDITEM_H
    00024
    00025 #include <TeQtCheckListItem.h>
    00026
    00027 class TeLegendEntry;
    00028
    00029
    00030 class TL_DLL TeQtLegendItem : public TeQtCheckListItem
    00031 {
    00032 public:
    00033     TeQtLegendItem(QListViewItem *parent, QString text, TeLegendEntry *legendEntry);
    00034
    00035            ~TeQtLegendItem() {}
    00036
    00037            TeLegendEntry* legendEntry()
    00038                       { return legendEntry_; }
    00039
    00040            void changeVisual(TeLegendEntry *legendEntry);
    00041
    00042            void paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align);
    00043
    00044 protected:
    00045            TeLegendEntry *legendEntry_;
    00046
    00047            QPixmap createPixmap();
    00048
    00049            void drawPolygonRep(int w, int h, int offset, QPixmap *pixmap);
    00050
    00051            void drawLineRep(int offset, QPixmap *pixmap);
    00052
    00053            void drawPointRep(int w, int h, int offset, QPixmap *pixmap);
    00054 };
    00055
    00056
    00057 class TL_DLL TeQtLegendTitleItem : public TeQtCheckListItem
    00058 {
    00059 public:
    00060     TeQtLegendTitleItem(QListViewItem *parent, QString text)
    00061            : TeQtCheckListItem(parent, text)
    00062            {
    00063                       type_ = LEGENDTITLE;
    00064                       setRenameEnabled(0,true);
    00065                       order_ = parent->childCount();
    00066            }
    00067
    00068            ~TeQtLegendTitleItem() {}
    00069 };
    00070
    00071
    00072
    00073 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines