ossp-pkg/as/as-gui/as_slot.cpp 1.62 -> 1.63
--- as_slot.cpp 2002/12/16 10:45:25 1.62
+++ as_slot.cpp 2002/12/16 16:05:57 1.63
@@ -212,6 +212,23 @@
}
//
+// Refresh the display of all data items
+//
+void Titraqform::refreshDisplay(void)
+{
+ int nIter = m_pMaintable->numRows(); // Iterate through total rows
+
+ // Sweep through matrix validating linewise
+ // data and updating line numbers for all rows
+ while (--nIter >= 0) {
+ this->validateData(nIter, 0);
+ m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));
+ }
+
+ this->repaint(); // Do a general repaint of viewable area
+}
+
+//
// Make and display a new document window
//
void Titraqform::newDoc(void)
@@ -893,6 +910,21 @@
}
}
+//
+// View menu show view toolbar
+//
+void Titraqform::showViewbar(void)
+{
+ if (m_pViewtools->isVisible()) {
+ m_pViewtools->hide();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXVIEWBAR), false);
+ }
+ else {
+ m_pViewtools->show();
+ m_pTbarspopup->setItemChecked(m_pTbarspopup->idAt(TITRAQ_IDXVIEWBAR), true);
+ }
+}
+
//
// View menu show whats this toolbar
//
|
|