window.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_WINDOW_H
00012 #define GUI_WINDOW_H
00013 
00014 //--------------------
00015 //forward declarations
00016 class QGridLayout;
00017 class QPixmap;
00018 class TitleWidget;
00019 class LayoutWidget;
00020 class StatusWidget;
00021 //class SlideshowWidget;
00022 class Configuration;
00023 //--------------------
00024 
00025 #include <qwidget.h>
00026 
00027 //=====================================
00031 //=====================================
00032 class Window : public QWidget
00033 {
00034 Q_OBJECT
00035 //----------------------
00036 public:
00038   Window( QWidget *parent=0, const char* name=0);
00039 
00041   ~Window();
00042 
00044   TitleWidget* getTitle();
00045 
00047   LayoutWidget* getLayout();
00048 
00050   StatusWidget* getStatus();
00051 
00053   void refresh();
00054 
00056   Configuration* getConfig();
00057       
00058   //-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3
00059   //the following pixmaps REALLY need to be placed in an icon container class. other label icons could be placed
00060   //in such a class to speed up drawing and lower memory usage potentally
00061 
00062   //shadow pixmaps
00063   QPixmap *shadowBL, *shadowB, *shadowBR, *shadowR, *shadowTR;
00064 
00065   //info pixmap
00066   QPixmap *photoInfo;
00067   //-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3
00068 //----------------------
00069   /*
00070 public slots:
00072   void startSlideshowAtBeginning();
00073   
00075   void startSlideshowWithSelectedPhoto();
00076 //----------------------
00077 private slots:  
00079   void endSlideshow();
00080    */
00081 //----------------------
00082 protected:
00083   //reimplementation of event handler
00084   bool event( QEvent * );
00085   
00086   //window hidden
00087   void hideEvent( QHideEvent *);
00088 
00089   //window restored
00090   void showEvent( QShowEvent *);
00091 
00092   //window closed, quit app and save settings
00093   void closeEvent( QCloseEvent* e);
00094   //----------------------
00095 private:
00097   void startSlideshow(bool startAtBeginning);
00098      
00100   Configuration* config;
00101 
00103   QGridLayout* grid;
00104 
00106   TitleWidget* title;
00107 
00109   LayoutWidget* layout;
00110 
00112   StatusWidget* status;
00113   
00115 //  SlideshowWidget* slideshow;
00116 //----------------------
00117 };
00118 //======================
00119 
00120 #endif //GUI_WINDOW_H

Generated on Thu Jan 3 10:54:40 2008 for AlbumShaper by  doxygen 1.5.4