AlbumShaper  1.0a3
window.h
Go to the documentation of this file.
1 //Added by qt3to4:
2 #include <QShowEvent>
3 #include <QHideEvent>
4 #include <QEvent>
5 #include <Q3GridLayout>
6 #include <QCloseEvent>
7 #include <QPixmap>
8 //==============================================
9 // copyright : (C) 2003-2005 by Will Stokes
10 //==============================================
11 // This program is free software; you can redistribute it
12 // and/or modify it under the terms of the GNU General
13 // Public License as published by the Free Software
14 // Foundation; either version 2 of the License, or
15 // (at your option) any later version.
16 //==============================================
17 
18 #ifndef GUI_WINDOW_H
19 #define GUI_WINDOW_H
20 
21 //--------------------
22 //forward declarations
23 class Q3GridLayout;
24 class QPixmap;
25 class TitleWidget;
26 class LayoutWidget;
27 class StatusWidget;
28 //class SlideshowWidget;
29 class Configuration;
30 //--------------------
31 
32 #include <qwidget.h>
33 
34 //=====================================
38 //=====================================
39 class Window : public QWidget
40 {
41 Q_OBJECT
42 //----------------------
43 public:
45  Window( QWidget *parent=0, const char* name=0);
46 
48  ~Window();
49 
52 
55 
58 
60  void refresh();
61 
64 
65  //-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3
66  //the following pixmaps REALLY need to be placed in an icon container class. other label icons could be placed
67  //in such a class to speed up drawing and lower memory usage potentally
68 
69  //shadow pixmaps
71 
72  //info pixmap
73  QPixmap *photoInfo;
74  //-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3-3
75 //----------------------
76  /*
77 public slots:
79  void startSlideshowAtBeginning();
80 
82  void startSlideshowWithSelectedPhoto();
83 //----------------------
84 private slots:
86  void endSlideshow();
87  */
88 //----------------------
89 protected:
90  //reimplementation of event handler
91  bool event( QEvent * );
92 
93  //window hidden
94  void hideEvent( QHideEvent *);
95 
96  //window restored
97  void showEvent( QShowEvent *);
98 
99  //window closed, quit app and save settings
100  void closeEvent( QCloseEvent* e);
101  //----------------------
102 private:
104  void startSlideshow(bool startAtBeginning);
105 
108 
110  Q3GridLayout* grid;
111 
114 
117 
120 
122 // SlideshowWidget* slideshow;
123 //----------------------
124 };
125 //======================
126 
127 #endif //GUI_WINDOW_H
Q3GridLayout * grid
Grid objects placed in.
Definition: window.h:110
QPixmap * shadowBL
Definition: window.h:70
QPixmap * shadowR
Definition: window.h:70
void showEvent(QShowEvent *)
Definition: window.cpp:351
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget...
Definition: window.h:39
StatusWidget * getStatus()
returns a pointer to the status widget
Definition: window.cpp:198
void hideEvent(QHideEvent *)
Definition: window.cpp:345
Displays list of subalbums and a particular subalbum layout.
Definition: layoutWidget.h:39
Window(QWidget *parent=0, const char *name=0)
Creates title area, layout, and tool bar and places them in grid.
Definition: window.cpp:54
Configuration * getConfig()
get setting object
Definition: window.cpp:235
bool event(QEvent *)
Definition: window.cpp:328
LayoutWidget * getLayout()
returns a pointer to the layout object
Definition: window.cpp:193
void startSlideshow(bool startAtBeginning)
utility function used by above, actually started slideshow
StatusWidget * status
Status widget either displays a status message or progress bar.
Definition: window.h:119
void closeEvent(QCloseEvent *e)
Definition: window.cpp:208
~Window()
Save user settings on destruct.
Definition: window.cpp:158
LayoutWidget * layout
Layout includes subalbums listing and particular subalbum layout.
Definition: window.h:116
TitleWidget * title
Title widget cont ains menu&#39;s, album information and Album Shaper icon.
Definition: window.h:113
Configuration object manages all user-specific application settings.
Definition: configuration.h:24
QPixmap * shadowTR
Definition: window.h:70
Widget which displays album name, description, representative image, and album shaper logo...
Definition: titleWidget.h:56
QPixmap * shadowB
Definition: window.h:70
QPixmap * shadowBR
Definition: window.h:70
void refresh()
refreshes the layout
Definition: window.cpp:203
Configuration * config
Configuration settings.
Definition: window.h:107
QPixmap * photoInfo
Definition: window.h:73
TitleWidget * getTitle()
returns a pointer to the title widget
Definition: window.cpp:188