Main Page   Compound List   File List   Compound Members   File Members  

layoutWidget.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_LAYOUTWIDGET_H
00018 #define GUI_LAYOUTWIDGET_H
00019 
00020 #include <qwidget.h>
00021 
00022 //--------------------
00023 //forward declarations
00024 class QLabel;
00025 class QGridLayout;
00026 class SubalbumsWidget;
00027 class SubalbumWidget;
00028 class PhotoEditWidget;
00029 class Subalbum;
00030 class Photo;
00031 class Window;
00032 //--------------------
00033 
00034 //=====================================
00038 //=====================================
00039 
00040 class LayoutWidget : public QWidget
00041 {
00042 public:
00044   LayoutWidget(QWidget *parent=0, const char* name=0);
00045   
00048   void updateSubalbum(Subalbum* salbum, bool oldExists);
00049 
00051   void updateSubalbumName(const QString& val);
00052   
00054   void updateSubalbumImage( QPixmap* val);  
00055   
00057   SubalbumWidget* getSubalbum();
00058   
00060   SubalbumsWidget* getSubalbums();
00061   
00063   Window* getWindow();
00064   
00066   void refresh();
00067   
00069   void editPhoto(Photo* photo);
00070   
00072   void stopEdit(bool oldExists);
00073 //----------------------
00074 private:
00076   Window* window;
00077   
00079   QGridLayout* grid;
00080 
00082   SubalbumWidget* subalbum;
00083   
00085   SubalbumsWidget* subalbums;
00086 
00088   PhotoEditWidget* photoEdit;
00089 //----------------------
00090 };
00091 //======================
00092 
00093 #endif //GUI_LAYOUTWIDGET_H

Generated on Tue Jun 10 23:41:20 2003 for AlbumShaper by doxygen 1.3.1