AlbumShaper  1.0a3
layoutWidget.h
Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 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 
00011 #ifndef GUI_LAYOUTWIDGET_H
00012 #define GUI_LAYOUTWIDGET_H
00013 
00014 #include <qwidget.h>
00015 
00016 //--------------------
00017 //forward declarations
00018 class QLabel;
00019 class QGridLayout;
00020 class QTabWidget;
00021 class SubalbumsWidget;
00022 class SubalbumWidget;
00023 class EditingInterface;
00024 class Subalbum;
00025 class Photo;
00026 class Window;
00027 //--------------------
00028 
00029 //=====================================
00033 //=====================================
00034 
00035 class LayoutWidget : public QWidget
00036 {
00037 Q_OBJECT
00038   
00039 public:
00041   LayoutWidget(QWidget *parent=0, const char* name=0);
00042   
00044   SubalbumWidget* getSubalbum();
00045   
00047   SubalbumsWidget* getSubalbums();
00048   
00050   Window* getWindow();
00051   
00053   void refresh();
00054 
00057   void revertPhotos();
00058   //----------------------
00059 private:
00061     Window* window;
00062   
00064   QGridLayout* grid;
00065   
00067   SubalbumsWidget* subalbums;
00068   
00070   QTabWidget* tabbedArea;
00071   
00073   SubalbumWidget* subalbum;  
00074   
00076   EditingInterface* editingInterface;
00077 //----------------------
00078 signals:
00079   void collectionSelected( Subalbum* );
00080 //----------------------
00081 public slots:
00082   void setEditTabEnabled(bool val);
00083 
00085   void editSelectedPhoto();
00086   
00088   void organize();  
00089   
00091   void photoStateChangedEvent();
00092   
00094   void refreshSelectedCollectionIconName();
00095   
00097   void updateSubalbumImage( QPixmap* val);
00098 //----------------------
00099 private slots:
00101   void tabChanged( QWidget* widget );
00102 
00103   //show the specified collection in using the organize view
00104   void showCollection(Subalbum* collection);
00105 //----------------------
00106 };
00107 //======================
00108 
00109 #endif //GUI_LAYOUTWIDGET_H