Check-in Number:
|
3845 | |
Date: |
2002-Dec-05 17:08:21 (local)
2002-Dec-05 16:08:21 (UTC) |
User: | ms |
Branch: | |
Comment: |
Complete introduction of dirty data state handling, and repair build also. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/TODO 1.32 -> 1.33
--- TODO 2002/12/05 10:33:25 1.32
+++ TODO 2002/12/05 16:08:21 1.33
@@ -63,6 +63,7 @@
----
Sometimes a click on add or delete toolbar button is ignored?
Pasting into as_gui from other app (vim) doesn't work
+Opening a zero length file introduces out of range warnings
Document
--------
|
|
ossp-pkg/as/as-gui/as_slot.cpp 1.41 -> 1.42
--- as_slot.cpp 2002/12/05 14:51:29 1.41
+++ as_slot.cpp 2002/12/05 16:08:21 1.42
@@ -190,6 +190,8 @@
}
else // Data is already up to date
m_pMaintable->setNumRows(0); // Remove all data in table
+
+ this->setDirty(false); // Reset data to clean state
}
//
@@ -288,6 +290,8 @@
}
else // Data is already up to date
pClosit->accept();
+
+ this->setDirty(false); // Reset data to clean state
}
//
@@ -349,41 +353,11 @@
}
//
-//
//
-void Titraqform::updSizes(int nSection, int nOldsize, int nNewsize)
+//
+void Titraqform::dataChanged(int nRow, int nCol)
{
- switch (nSection) {
- case TITRAQ_IDXALLCTRLS:
- m_pDateedit->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXDATE) - TITRAQ_SPACING + TITRAQ_SPACING / 2);
- m_pStarttime->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXSTART) - TITRAQ_SPACING);
- m_pEndtime->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXFINISH) - TITRAQ_SPACING);
- m_pAmount->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXAMOUNT) - TITRAQ_SPACING);
- m_pTasks->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXTASK) - TITRAQ_SPACING);
-// m_pRemark->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXREMARK) - TITRAQ_SPACING);
- break;
- case TITRAQ_IDXDATE:
- m_pDateedit->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXDATE) - TITRAQ_SPACING + TITRAQ_SPACING / 2);
- break;
- case TITRAQ_IDXSTART:
- m_pStarttime->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXSTART) - TITRAQ_SPACING);
- break;
- case TITRAQ_IDXFINISH:
- m_pEndtime->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXFINISH) - TITRAQ_SPACING);
- break;
- case TITRAQ_IDXAMOUNT:
- m_pAmount->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXAMOUNT) - TITRAQ_SPACING);
- break;
- case TITRAQ_IDXTASK:
- m_pTasks->setFixedWidth(m_pMaintable->horizontalHeader()->sectionSize(TITRAQ_IDXTASK) - TITRAQ_SPACING);
- break;
- case TITRAQ_IDXREMARK:
-// m_pRemark->setFixedWidth(nNewsize);
- break;
- default:
- throw Genexcept("Unrecognized main window column header.");
- break;
- }
+ setDirty(); // Mark this timesheet dirty, changes pending save
}
//
|
|