Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

saveDialog.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003 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 //  As a special exception, Will Stokes gives permission to 
00011 //  link this program with Qt non-commercial edition, and 
00012 //  distribute the resulting executable, without including the 
00013 //  source code for the Qt non-commercial edition in the 
00014 //  source distribution. 
00015 //==============================================
00016 
00017 #ifndef GUI_SAVEDIALOG_H
00018 #define GUI_SAVEDIALOG_H
00019 
00020 #include <qdialog.h>
00021 
00022 //forward declarations
00023 class QGridLayout;
00024 class QLabel;
00025 class QFrame;
00026 class QListBox;
00027 class QLineEdit;
00028 class QTextBrowser;
00029 class QPushButton;
00030 
00031 //=====================================
00034 //=====================================
00035 
00036 //======================
00037 class SaveDialog : public QDialog
00038 {
00039 Q_OBJECT
00040 //----------------------
00041 public:
00042   SaveDialog( QString actionMessage, 
00043                     QString defaultPath,
00044                     QString defaultTheme,
00045                     QWidget *parent=0, 
00046                     const char* name=0);
00047   QString getTheme();
00048   QString getPath();
00049   static bool selectThemeAndPath(QString titleMessage,
00050                                                 QString defaultPath,
00051                                                 QString &theme, 
00052                                                 QString &path);
00053   static bool themeAvailable(QString theme);                                               
00054 //----------------------
00055 signals:
00056   void dialogClosed();
00057 private slots:
00058   void updatePreview();
00059   void save();
00060   void cancel();
00061   void prevScreenShot();
00062   void nextScreenShot();
00063   void browse();
00064 //----------------------
00065 private:
00066   QFrame *locationFrame, *themeSelectionFrame, *themePreviewFrame, *buttonsFrame;
00067   QGridLayout *locationGrid, *themeSelectionGrid, *themePreviewGrid, *mainGrid, *buttonsGrid;
00068   QLabel *locationLabel, *themeScreenShot, *themePreviewLabel, *themesLabel, *screenShotLabel;
00069   QLineEdit *locationVal;
00070   QListBox* themesList;
00071   QTextBrowser *themeFeatures;
00072   QPushButton *saveButton, *cancelButton, *themeScreenPrev, *themeScreenNext, *browseButton;
00073   int previewNum;
00074   int numPreviews;
00075 //----------------------
00076 };
00077 //======================
00078 
00079 #endif //GUI_SAVEDIALOG_H

Generated on Thu Nov 13 00:10:54 2003 for AlbumShaper by doxygen 1.3.4