+\r
+void\r
+ImageFileView::OnCompare (wxCommandEvent& event)\r
+{\r
+ wxList& rListDocs = theApp->getDocManager()->GetDocuments();\r
+ std::vector<ImageFileDocument*> vecIF;\r
+ std::vector<std::string> vecFilename;\r
+ int nCompares = 0;\r
+ for (wxNode* pNode = rListDocs.GetFirst(); pNode != NULL; pNode = pNode->GetNext()) {\r
+ wxDocument* pDoc = reinterpret_cast<wxDocument*>(pNode->GetData());\r
+ ImageFileDocument* pIFDoc = dynamic_cast<ImageFileDocument*>(pDoc);\r
+ if (pIFDoc) {\r
+ if (pIFDoc->GetFirstView() != this) {\r
+ std::string strFilename = pDoc->GetFilename();\r
+ vecIF.push_back (pIFDoc);\r
+ vecFilename.push_back (strFilename);\r
+ nCompares++;\r
+ }\r
+ }\r
+ }\r
+ for (int i = 0; i < nCompares; i++) {\r
+ const std::string& s = vecFilename[i];\r
+ *theApp->getLog() << s.c_str() << "\n";\r
+ }\r
+}