00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 #ifndef GUI_EDITING_MANIPULATIONS_MOSAICOPTIONSDIALOG_H 00012 #define GUI_EDITING_MANIPULATIONS_MOSAICOPTIONSDIALOG_H 00013 00014 //-------------------- 00015 //forward declarations 00016 class MosaicOptions; 00017 class QComboBox; 00018 class QSpinBox; 00019 class QLabel; 00020 class QRadioButton; 00021 class QLineEdit; 00022 class ClickableLabel; 00023 //-------------------- 00024 00025 #include <qdialog.h> 00026 #include <qsize.h> 00027 00028 //===================================== 00030 //===================================== 00031 00032 class MosaicOptionsDialog : public QDialog 00033 { 00034 Q_OBJECT 00035 00036 public: 00038 MosaicOptionsDialog(QWidget *parent=0); 00039 00041 MosaicOptions* getOptions(); 00042 00043 private: 00044 QSize determineTileSize(); 00045 QStringList determineFilesList(); 00046 void appendImagesInPath(QStringList& files, QString path, int depth); 00047 00048 QLabel* tileSizePreview; 00049 QComboBox* tileSizes; 00050 QSpinBox* tileWidth; 00051 QLabel* tileSizeX; 00052 QSpinBox* tileHeight; 00053 00054 QRadioButton* tileType_albumPhotos; 00055 QRadioButton* tileType_solidColors; 00056 QRadioButton* tileType_imagesFrom; 00057 QLineEdit* locationVal; 00058 ClickableLabel* browseButton; 00059 00060 private slots: 00061 void updateTileSizePreview(); 00062 void updateImagesFromOptions(); 00063 void browse(); 00064 00065 }; 00066 //====================== 00067 00068 #endif //GUI_EDITING_MANIPULATIONS_MOSAICOPTIONSDIALOG_H