Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

LTable.h

Go to the documentation of this file.
00001 // LabPlot : LTable.h
00002 #include <qtable.h>
00003 #ifndef LTABLE_H
00004 #define LTABLE_H
00005 
00006 #include <vector>
00007 #include <qlineedit.h>
00008 
00009 using namespace std;
00010 
00011 class LTable : public QTable
00012 {
00013         Q_OBJECT
00014 public:
00015         LTable(int r=100, int c=2, QWidget *parent = 0, const char *name = 0);
00016     
00017         QString text(int row, int col);
00018         void setText(int row, int col, const QString &text);
00019         QWidget *createEditor(int row, int col, bool initFromCell) const;
00020         void setCellContentFromEditor(int row, int col);
00021         QWidget *cellWidget(int row, int col) const;
00022         void endEdit(int row, int col, bool accept, bool replace);
00023         void paintCell(QPainter *painter, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg);
00024     
00025         void resizeData(int) {}
00026         QTableItem *item(int, int) { return 0; }
00027         void setItem(int, int, QTableItem *) {}
00028         void clearCell(int, int) {}
00029         void insertWidget(int, int, QWidget *) {}
00030         void clearCellWidget(int, int) {}
00031 
00032         void updateTable();
00033 private slots:
00034         void updateContents() {QTable::updateContents();}
00035 private:
00036         int size;
00037         double *array;
00038         mutable QLineEdit *editor;
00039 };
00040 
00041 #endif
00042 

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4