| 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/TeQtBigTable.h
Go to the documentation of this file.

    00001 #ifndef TABLE_H
    00002 #define TABLE_H
    00003
    00004 #include <qtable.h>
    00005 #include <qlineedit.h>
    00006 #include <string>
    00007
    00008 #include "../../kernel/TeDefines.h"
    00009
    00010 class TeQtDataSource;
    00011
    00012 using namespace std;
    00013
    00014 class TL_DLL TeQtBigTable : public QTable
    00015 {
    00016            Q_OBJECT
    00017
    00018 public:
    00019            TeQtBigTable(QWidget *parent = 0, const char *name = 0);
    00020            TeQtBigTable(TeQtDataSource *dSource, QWidget *parent = 0, const char *name = 0);
    00021
    00022            void setDataSource(TeQtDataSource *dSource);
    00023            TeQtDataSource* getDataSource() { return dataSource_; }
    00024
    00025            QString text(int row, int col) const;
    00026            QWidget *createEditor(int row, int col, bool initFromCell) const;
    00027            void setCellContentFromEditor(int row, int col);
    00028            QWidget *cellWidget(int row, int col) const;
    00029            void endEdit(int row, int col, bool accept, bool replace);
    00030
    00031            void resizeData(int) {}
    00032            QTableItem *item(int, int) { return 0; }
    00033            void setItem(int, int, QTableItem *) {}
    00034            void clearCell(int, int) {}
    00035            void insertWidget(int, int, QWidget *) {}
    00036            void clearCellWidget(int, int) {}
    00037
    00038            void adjustColumn(int col);
    00039
    00040 public slots:
    00041            void updateContents();
    00042
    00043 protected:
    00044            TeQtDataSource *dataSource_;
    00045            mutable QLineEdit *editor_;
    00046
    00047            virtual void paintCell(QPainter *painter, int row, int col,
    00048                                                const QRect &cr, bool selected, const QColorGroup &cg);
    00049
    00050 };
    00051
    00052
    00053 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines