OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_table.h versions 1.13 and 1.14
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_table.h 1.13 -> 1.14

--- as_table.h   2002/12/18 14:50:58     1.13
+++ as_table.h   2002/12/20 17:42:10     1.14
@@ -41,6 +41,7 @@
 
 private:
     int  m_nSortcol;    // To track current sort column
+    int  m_bSortdir;    // To track current sort direction
     bool m_bDirt;       // To track dirty and clean states
 
 public:
@@ -48,6 +49,7 @@
     TiTable(QWidget *pParent = 0, const char *szName = 0) : QTable(pParent, szName)
     {
         this->setSortcol(0);
+        this->setSortdir(true);
         this->setDirty(false);
         this->setEdition(); // Reset edition state
         horizontalHeader()->installEventFilter(this);
@@ -65,6 +67,8 @@
     void setEdition(const int nEdit = -1) {m_nEdit = nEdit;};   // Set edition status
     const int getSortcol(void) {return m_nSortcol;};
     void setSortcol(const int nColin) {m_nSortcol = nColin;};
+    const bool getSortdir(void) {return m_bSortdir;};
+    void setSortdir(const bool bDirection) {m_bSortdir = bDirection;};
 
     // Overridden accessors
     void setText(int, int, const QString &);

CVSTrac 2.0.1