template<class DataDocT>
Implements Impala::Core::Database::DataDocumentListener. Reimplemented in Impala::Visualization::IxsDocumentGuiMain, Impala::Visualization::SegmentationDocumentGuiAnno, Impala::Visualization::SegmentationDocumentGuiMain, Impala::Visualization::ShowImSetGuiMain, and Impala::Visualization::VxsDocumentGuiPlay. Definition at line 170 of file DataDocumentGui.h. 00171 { 00172 int curD = mDataDoc->CurDirId(); 00173 if (mStringSelector1) 00174 mStringSelector1->SetCurrentString(curD, true); 00175 Core::Database::RawDataSet* dataSet = mDataDoc->GetDataSet(); 00176 int nrFiles = (curD != -1) ? dataSet->GetNrFiles(curD) : 0; 00177 std::string info("no dir selected"); 00178 if (curD != -1) 00179 info = dataSet->GetDir(curD) + " has " + MakeString(nrFiles) 00180 + " files"; 00181 if (mInfoText2) 00182 mInfoText2->SetText(info); 00183 int firstVis; 00184 if (mStringSelector2) 00185 { 00186 firstVis = mStringSelector2->GetFirstVis(); 00187 mStringSelector2->RemoveStrings(); 00188 } 00189 if (mStringSelector2 && (curD != -1)) 00190 { 00191 int start = dataSet->GetFirstFileId(curD); 00192 int end = start + dataSet->GetNrFiles(curD); 00193 for (int i=start ; i<end ; i++) 00194 mStringSelector2->AddString(dataSet->GetFile(i)); 00195 int idx = mDataDoc->CurFileId() - dataSet->GetFirstFileId(curD); 00196 mStringSelector2->SetFirstVis(firstVis, true); 00197 mStringSelector2->SetCurrentString(idx, true); 00198 } 00199 }
|