Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/SuccessDialog.h
Go to the documentation of this file.
00001 /***************************************************************************/
00021 #ifndef HEADER_SUCESSDIALOG
00022 #define HEADER_SUCESSDIALOG
00023 
00024 #include <QtGui>
00025 #include <libQt+.h>
00026 #include "ImageShackUploadWidget.h"
00027 #include "ThumbnailListwidget.h"
00028 
00029 class SuccessDialog : public QDialog
00030 {
00031     Q_OBJECT
00032 
00033     public:
00034     explicit SuccessDialog(QWidget *parent = 0, QString openFolderPath = "");
00035     virtual ~SuccessDialog();
00036 
00037     private:
00038     ImageShackUploadWidget *imageShackUploadWidget;
00039     QLabel                 *textSaveLabel;
00040     ThumbnailListWidget    *listWidget;
00041     QString                openFolderPath;
00042     QPushButton            *openFolderButton;
00043     QPushButton            *uploadImageShackButton;
00044     QPushButton            *closeDialogButton;
00045 
00046     private:
00047     void retranslate();
00048 
00049     protected:
00050     void changeEvent(QEvent* event);
00051 
00052     public:
00053     int                  addItem(ThumbnailItem *item);
00054     void                 removeItem(ThumbnailItem *item);
00055     ThumbnailListWidget* getListWidget();
00056     void                 setPathOpenFolder(QString path);
00057     void                 exec();
00058 
00059     private slots:
00060     void enableUploadButton();
00061 
00062     public slots:   
00063     void clearListWidget();
00064     void openFolder();
00065     void setDoubleClickPathOpenFolder(QListWidgetItem* item);
00066     void setSelectionPathOpenFolder();
00067     void uploadToImageShack();
00068 };
00069 #endif // HEADER_SUCESSDIALOG
 All Classes Files Functions Enumerations