ossp-pkg/as/as-gui/as_table.h 1.3 -> 1.4
--- as_table.h 2002/11/28 20:44:36 1.3
+++ as_table.h 2002/12/03 17:05:11 1.4
@@ -37,16 +37,27 @@
class TiTable : public QTable
{
+ Q_OBJECT
public:
// Try to match QTable's default constructor with an initializer list
- TiTable(QWidget *pParent = 0, const char *szName = 0) : QTable(pParent, szName) {horizontalHeader()->installEventFilter(this);};
+ TiTable(QWidget *pParent = 0, const char *szName = 0) : QTable(pParent, szName)
+ {
+ horizontalHeader()->installEventFilter(this);
+ setEdition(); // Reset edition state
+ };
+
+ bool eventFilter(QObject *, QEvent *);
+
+ // Standard members
+ int m_nEdit; // To track edition state
+
+ // Accessor methods
+ const int getEdition(void) {return m_nEdit;}; // Which edited column was confirmed
+ void setEdition(const int nEdit = -1) {m_nEdit = nEdit;}; // Set edition status
// Deny a cell special handling of the focus rectangle
// by overriding class QTable's paintFocus method
void paintFocus(QPainter *, const QRect &) {};
-
-private:
- bool eventFilter(QObject *, QEvent *);
};
#endif // TITABLE_H
|
|