HowManyAreAnalyzed(): use status_user_agent to report progress
[linguistica.git] / POSCollection.cpp
blob524cad0162b0671710396fdc94097463f7dd12da
1 // Implementation of LxPoSCollection methods
2 // Copyright © 2009 The University of Chicago
3 #include "POSCollection.h"
5 namespace {
6 typedef Q3PtrList<LxPoS> base;
9 LxPoSCollection::LxPoSCollection() : base()
10 { base::setAutoDelete(true); }
12 LxPoSCollection::~LxPoSCollection() { }
14 void LxPoSCollection::ListDisplay(Q3ListView* pView)
16 pView->setRootIsDecorated(false);
17 pView->setSorting(1);
19 // Remove all previous columns
20 while (pView->columns() != 0)
21 pView->removeColumn(0);
23 // Add Column headers
24 pView->addColumn("POS Signatures");
25 pView->addColumn("Robustness");
26 pView->addColumn ("Number of signatures");
27 pView->addColumn("Number of stems");
28 pView->hideColumn(1); // Not needed in this view
29 // XXX. more columns:
30 // pView->addColumn("Exemplar");
31 // pView->addColumn("Descr. Length");
32 // pView->addColumn("Corpus Count");
33 // pView->addColumn("Stem Count");
34 // pView->addColumn("Remarks");
35 // pView->addColumn("Sort Alphabetically");
37 // Display each item
38 foreach (LxPoS* pPoS, *this) {
39 pPoS->SortByValue();
40 pPoS->ListDisplay(pView, pPoS->Display('.'));