comparison widgets/ImageDialog.cpp @ 529:3228b7913aa4

* Pull out the widgetry part of FileFinder into widgets/InteractiveFileFinder (essentially this is just to avoid a dependency from data/fileio to widgets/ which is problematic for non-gui programs)
author Chris Cannam
date Fri, 27 Mar 2009 16:25:52 +0000
parents 22b72f0f6a4e
children 1fe7951a61e8
comparison
equal deleted inserted replaced
528:44f391ec2172 529:3228b7913aa4
27 #include <QMessageBox> 27 #include <QMessageBox>
28 28
29 #include "ProgressDialog.h" 29 #include "ProgressDialog.h"
30 30
31 #include "data/fileio/FileSource.h" 31 #include "data/fileio/FileSource.h"
32 #include "FileFinder.h" 32 #include "InteractiveFileFinder.h"
33 33
34 #include <iostream> 34 #include <iostream>
35 35
36 ImageDialog::ImageDialog(QString title, 36 ImageDialog::ImageDialog(QString title,
37 QString image, 37 QString image,
226 226
227 void 227 void
228 ImageDialog::browseClicked() 228 ImageDialog::browseClicked()
229 { 229 {
230 QString file = 230 QString file =
231 FileFinder::getInstance()->getOpenFileName(FileFinder::ImageFile); 231 InteractiveFileFinder::getInstance()->getOpenFileName(FileFinder::ImageFile);
232 232
233 if (file != "") { 233 if (file != "") {
234 setImage(file); 234 setImage(file);
235 emit imageChanged(file); 235 emit imageChanged(file);
236 } 236 }