00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef FILESPAGE_H
00021 #define FILESPAGE_H
00022
00023
00024 #include "filepage.h"
00025
00026
00027 #include <qwidget.h>
00028 #include <qframe.h>
00029 #include <qptrlist.h>
00030
00031
00032
00033
00034 class QTabWidget;
00035 class QPushButton;
00036
00041 class FilesPage : public QFrame
00042 {
00043 Q_OBJECT
00044 public:
00045 FilesPage(QWidget* parent = 0, const char *name = 0);
00046 ~FilesPage();
00047
00052 FilePage* addFile(QString title);
00053
00057 void getFilePages(QPtrList<FilePage>& fileList);
00058
00062 QValueList<QString> getFileExtensions();
00063
00065 bool isModified()const;
00066
00067 public slots:
00069 void addNewFile();
00070
00072 void removeFile();
00073
00078 void changeCaption(const QString& caption,FilePage* filePage);
00079
00081 void resetModificationStatus();
00082
00083 signals:
00087 void fileModification(QValueList<QString> extensions);
00088
00089 private:
00090 QTabWidget* tabWidget;
00091 QPushButton* addButton;
00092 QPushButton* removeButton;
00093 };
00094
00095 #endif