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
21class Q3GridLayout;
22class QLabel;
23class Q3Frame;
24class Q3ListBox;
25class QLineEdit;
26class Q3TextBrowser;
27class QPushButton;
28class ClickableLabel;
29
30//=====================================
33//=====================================
34
35//======================
36class SaveDialog : public QDialog
37{
38Q_OBJECT
39//----------------------
40public:
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//----------------------
54signals:
56private slots:
57 void updatePreview();
58 void save();
59 void cancel();
60 void prevScreenShot();
61 void nextScreenShot();
62 void browse();
63//----------------------
64private:
68 QLineEdit *locationVal;
69 Q3ListBox* themesList;
71 QPushButton *saveButton, *cancelButton;
72
74
77//----------------------
78};
79//======================
80
81#endif //GUI_DIALOGS_SAVEDIALOG_H
A clickable label.
Save dialog widget.
Definition saveDialog.h:37
QPushButton * saveButton
Definition saveDialog.h:71
static bool selectThemeAndPath(QString titleMessage, QString defaultPath, QString &theme, QString &path)
QString getPath()
Q3GridLayout * themePreviewGrid
Definition saveDialog.h:66
Q3ListBox * themesList
Definition saveDialog.h:69
Q3Frame * themePreviewFrame
Definition saveDialog.h:65
QLabel * locationLabel
Definition saveDialog.h:67
Q3GridLayout * buttonsGrid
Definition saveDialog.h:66
static bool themeAvailable(QString theme)
QLineEdit * locationVal
Definition saveDialog.h:68
QLabel * screenShotLabel
Definition saveDialog.h:67
QLabel * themesLabel
Definition saveDialog.h:67
void nextScreenShot()
QPushButton * cancelButton
Definition saveDialog.h:71
QLabel * themePreviewLabel
Definition saveDialog.h:67
Q3GridLayout * locationGrid
Definition saveDialog.h:66
Q3GridLayout * mainGrid
Definition saveDialog.h:66
Q3Frame * themeSelectionFrame
Definition saveDialog.h:65
int numPreviews
Definition saveDialog.h:76
ClickableLabel * browseButton
Definition saveDialog.h:73
QString getTheme()
void prevScreenShot()
Q3Frame * buttonsFrame
Definition saveDialog.h:65
Q3GridLayout * themeSelectionGrid
Definition saveDialog.h:66
Q3Frame * locationFrame
Definition saveDialog.h:65
Q3TextBrowser * themeFeatures
Definition saveDialog.h:70
void dialogClosed()
void updatePreview()
void browse()
int previewNum
Definition saveDialog.h:75
QLabel * themeScreenShot
Definition saveDialog.h:67
SaveDialog(QString actionMessage, QString defaultPath, QString defaultTheme, QWidget *parent=0, const char *name=0)
ClickableLabel * themeScreenNext
Definition saveDialog.h:73
ClickableLabel * themeScreenPrev
Definition saveDialog.h:73
void cancel()