2 #include <QCustomEvent> 3 #include <Q3GridLayout> 15 #ifndef GUI_DIALOGS_ADDPHOTOSDIALOG_H 16 #define GUI_DIALOGS_ADDPHOTOSDIALOG_H 26 #include <q3filedialog.h> 64 QSize minimumSizeHint ()
const;
70 void updatePreview(
const QString& path );
101 QStringList getFilenames(
bool& setDescriptions);
112 void updatePreview(
const QString&
filename);
117 #endif //GUI_DIALOGS_ADDPHOTOSDIALOG_H
GeneratePreviewThread * generatorThread
a worker thread that actually generates the file preview image and details information that is displa...
FilePreview * filePreview
Used to preview selected files.
QLabel * fileDetails
details about last selected file
GeneratePreviewThread(FilePreview *previewWidget)
QString queue
next file to be processed by worker thread
bool updating
is the worker thread currently generating a file preview?
Simple dialog for browsing and select photos to add to a subalbum.
QLabel * filePreview
preview of last selected file
QMutex lockingMutex
locking mutex - necessary to prevent multiple threads from accessing the updating bool or queue varia...
void start(QString filename)
QString filename
current file being processed
QCheckBox * setDescriptions
Checkbox asking if filenames should be used to set image descriptions.
void previewUrl(const Q3Url &)
declared to make base class happy. we'll use an updatePreview function instead
FilePreview * previewWidget
handle on preview widget necessary for posting an update event once the current file has been process...