AlbumShaper  1.0a3
saveDialog.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef GUI_DIALOGS_SAVEDIALOG_H
12 #define GUI_DIALOGS_SAVEDIALOG_H
13 
14 #include <qdialog.h>
15 //Added by qt3to4:
16 #include <Q3Frame>
17 #include <Q3GridLayout>
18 #include <QLabel>
19 
20 //forward declarations
21 class Q3GridLayout;
22 class QLabel;
23 class Q3Frame;
24 class Q3ListBox;
25 class QLineEdit;
26 class Q3TextBrowser;
27 class QPushButton;
28 class ClickableLabel;
29 
30 //=====================================
33 //=====================================
34 
35 //======================
36 class SaveDialog : public QDialog
37 {
38 Q_OBJECT
39 //----------------------
40 public:
41  SaveDialog( QString actionMessage,
42  QString defaultPath,
43  QString defaultTheme,
44  QWidget *parent=0,
45  const char* name=0);
46  QString getTheme();
47  QString getPath();
48  static bool selectThemeAndPath(QString titleMessage,
49  QString defaultPath,
50  QString &theme,
51  QString &path);
52  static bool themeAvailable(QString theme);
53 //----------------------
54 signals:
55  void dialogClosed();
56 private slots:
57  void updatePreview();
58  void save();
59  void cancel();
60  void prevScreenShot();
61  void nextScreenShot();
62  void browse();
63 //----------------------
64 private:
68  QLineEdit *locationVal;
69  Q3ListBox* themesList;
71  QPushButton *saveButton, *cancelButton;
72 
74 
77 //----------------------
78 };
79 //======================
80 
81 #endif //GUI_DIALOGS_SAVEDIALOG_H
Q3TextBrowser * themeFeatures
Definition: saveDialog.h:70
void dialogClosed()
Q3Frame * themePreviewFrame
Definition: saveDialog.h:65
QLabel * screenShotLabel
Definition: saveDialog.h:67
void prevScreenShot()
Definition: saveDialog.cpp:236
Save dialog widget.
Definition: saveDialog.h:36
QString getTheme()
Definition: saveDialog.cpp:266
void save()
Definition: saveDialog.cpp:226
QString getPath()
Definition: saveDialog.cpp:271
Q3Frame * locationFrame
Definition: saveDialog.h:65
void nextScreenShot()
Definition: saveDialog.cpp:246
QPushButton * cancelButton
Definition: saveDialog.h:71
QLabel * locationLabel
Definition: saveDialog.h:67
static bool selectThemeAndPath(QString titleMessage, QString defaultPath, QString &theme, QString &path)
Definition: saveDialog.cpp:276
static bool themeAvailable(QString theme)
Definition: saveDialog.cpp:296
QLabel * themeScreenShot
Definition: saveDialog.h:67
A clickable label.
Q3Frame * themeSelectionFrame
Definition: saveDialog.h:65
Q3GridLayout * locationGrid
Definition: saveDialog.h:66
Q3Frame * buttonsFrame
Definition: saveDialog.h:65
ClickableLabel * themeScreenPrev
Definition: saveDialog.h:73
Q3GridLayout * themeSelectionGrid
Definition: saveDialog.h:66
void updatePreview()
Definition: saveDialog.cpp:194
Q3GridLayout * buttonsGrid
Definition: saveDialog.h:66
ClickableLabel * browseButton
Definition: saveDialog.h:73
void cancel()
Definition: saveDialog.cpp:231
int numPreviews
Definition: saveDialog.h:76
void browse()
Definition: saveDialog.cpp:256
QLabel * themePreviewLabel
Definition: saveDialog.h:67
int previewNum
Definition: saveDialog.h:75
SaveDialog(QString actionMessage, QString defaultPath, QString defaultTheme, QWidget *parent=0, const char *name=0)
Definition: saveDialog.cpp:34
Q3ListBox * themesList
Definition: saveDialog.h:69
QLabel * themesLabel
Definition: saveDialog.h:67
QPushButton * saveButton
Definition: saveDialog.h:71
Q3GridLayout * mainGrid
Definition: saveDialog.h:66
Q3GridLayout * themePreviewGrid
Definition: saveDialog.h:66
QLineEdit * locationVal
Definition: saveDialog.h:68
ClickableLabel * themeScreenNext
Definition: saveDialog.h:73