Index: ossp-pkg/as/as-gui/TODO RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/TODO,v rcsdiff -q -kk '-r1.48' '-r1.49' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/TODO,v' 2>/dev/null --- TODO 2002/12/16 17:37:39 1.48 +++ TODO 2002/12/17 14:08:33 1.49 @@ -14,6 +14,7 @@ Q_CHECK_PTR public/private Implement an unlimited and generic undo and redo buffer class +Add optional automatic file personal data file backup configure soll ueberpruefen ob libqt[-mt] threads braucht, dann wenn so, soll den LIBS -pthread hardgecodet haben Ensure rethrows from second loadData on upwards @@ -36,6 +37,8 @@ Make edit control window optional through preferences Add customizable column ordering by click and drag Method refreshDisplay is too expensive to process +Soll mehr intuitive, mit sekondaer/dritte Keycolumn +Be consistent with szQString vs QString var names Preferences ----------- Index: ossp-pkg/as/as-gui/as_const.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v rcsdiff -q -kk '-r1.29' '-r1.30' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v' 2>/dev/null --- as_const.h 2002/12/16 17:37:39 1.29 +++ as_const.h 2002/12/17 14:08:33 1.30 @@ -84,7 +84,7 @@ #define TITRAQ_PREFFRAMEWIDTH "framewidth" #define TITRAQ_DEFFRAMEWIDTH 640 #define TITRAQ_PREFFRAMEHEIGHT "frameheight" -#define TITRAQ_DEFFRAMEHEIGHT 480 +#define TITRAQ_DEFFRAMEHEIGHT 400 // Column width preferences #define TITRAQ_PREFSTATCOLWIDTH "statcolwidth" Index: ossp-pkg/as/as-gui/as_dataop.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_dataop.cpp,v rcsdiff -q -kk '-r1.26' '-r1.27' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_dataop.cpp,v' 2>/dev/null --- as_dataop.cpp 2002/12/16 17:13:17 1.26 +++ as_dataop.cpp 2002/12/17 14:08:33 1.27 @@ -56,7 +56,7 @@ } else { if (!Fileobj.open(IO_ReadOnly)) // Try to open file - throw Genexcept("Could not open account file."); + throw Genexcept("Could not open account file for reading."); else Fileobj.flush(); // Begin processing file cleanly QTextStream Account(&Fileobj); // Convert data to stream @@ -122,7 +122,7 @@ } else { if (!Fileobj.open(IO_ReadOnly)) // Try to open file - throw Genexcept("Could not open personal data file."); + throw Genexcept("Could not open personal data file for reading."); else Fileobj.flush(); // Begin processing file cleanly QTextStream Asentry(&Fileobj); // Convert data to stream @@ -287,7 +287,7 @@ } else { if (!Fileobj.open(IO_WriteOnly)) // Try to open file - throw Genexcept("Could not write open accounting file."); + throw Genexcept("Could not open personal data file for writing."); QTextStream Asentry(&Fileobj); // Convert data to stream this->saveData(Asentry); // Pass off to do the real work Fileobj.close(); // Finish fileop by closing Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.66' '-r1.67' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- as_slot.cpp 2002/12/16 17:37:39 1.66 +++ as_slot.cpp 2002/12/17 14:08:33 1.67 @@ -98,7 +98,7 @@ m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0'))); // Do basic data validation to warn against missing fields - for (int nIter = 0; nIter <= nRows; nIter++) + for (int nIter = 0; nIter < nRows; nIter++) this->validateData(m_pMaintable->currentRow() + nIter, 0); } @@ -137,7 +137,7 @@ m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXGUID, "."); m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXCRC, "."); m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXREV, "."); - m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXDATE, trUtf8(TITRAQ_DATEZERO)); + m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXDATE, QDate::currentDate().toString("yyyy.MM.dd")); m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXSTART, "00:00"); m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXFINISH, "00:00"); m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXAMOUNT, "00:00"); @@ -158,7 +158,7 @@ m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXGUID, "."); m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXCRC, "."); m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXREV, "."); - m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXDATE, trUtf8(TITRAQ_DATEZERO)); + m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXDATE, QDate::currentDate().toString("yyyy.MM.dd")); m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXSTART, "00:00"); m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXFINISH, "00:00"); m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXAMOUNT, "00:00"); @@ -325,7 +325,7 @@ void Titraqform::openDoc(void) { int nResult = 0; // Holds return value from save first messagebox - QString Filestring = QFileDialog::getOpenFileName("/e/dev/as", QString::null, this, trUtf8("Chooser Dialog"), trUtf8("Choose a file to open")); + QString Filestring = QFileDialog::getOpenFileName(m_pPrefs->getString(TITRAQ_PREFASFILE, TITRAQ_DEFASFILE), trUtf8("Accounting Data (*.as);;Text files (*.txt);;All Files (*)"), this, trUtf8("ChooserDialog"), trUtf8("Choose a file to open"), NULL, false); if (!Filestring.isEmpty()) { QFile Filetemp(Filestring); // File to load @@ -458,7 +458,8 @@ int nResult = 0; // For checking user's answer // First get the selected file name to save to - QString Filestring = QFileDialog::getSaveFileName(QString::null, QString::null, this); + QString Filestring = + QFileDialog::getSaveFileName(m_pPrefs->getString(TITRAQ_PREFASFILE, TITRAQ_DEFASFILE), trUtf8("Accounting Data (*.as);;Text files (*.txt);;All Files (*)"), this, trUtf8("ChooserDialog"), trUtf8("Choose a file to save"), NULL, false); if (!Filestring.isEmpty()) { *m_szFilename = Filestring; if (QFile::exists(*m_szFilename)) {