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
23class Q3GridLayout;
24class QPixmap;
25class TitleWidget;
26class LayoutWidget;
27class StatusWidget;
28//class SlideshowWidget;
29class Configuration;
30//--------------------
31
32#include <qwidget.h>
33
34//=====================================
38//=====================================
39class Window : public QWidget
40{
41Q_OBJECT
42//----------------------
43public:
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 /*
77public slots:
79 void startSlideshowAtBeginning();
80
82 void startSlideshowWithSelectedPhoto();
83//----------------------
84private slots:
86 void endSlideshow();
87 */
88//----------------------
89protected:
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 //----------------------
102private:
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
Configuration object manages all user-specific application settings.
Displays list of subalbums and a particular subalbum layout.
Widget which displays album name, description, representative image, and album shaper logo.
Definition titleWidget.h:57
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget.
Definition window.h:40
TitleWidget * getTitle()
returns a pointer to the title widget
Definition window.cpp:188
TitleWidget * title
Title widget cont ains menu's, album information and Album Shaper icon.
Definition window.h:113
QPixmap * shadowTR
Definition window.h:70
~Window()
Save user settings on destruct.
Definition window.cpp:158
LayoutWidget * getLayout()
returns a pointer to the layout object
Definition window.cpp:193
QPixmap * shadowB
Definition window.h:70
StatusWidget * status
Status widget either displays a status message or progress bar.
Definition window.h:119
QPixmap * photoInfo
Definition window.h:73
void showEvent(QShowEvent *)
Definition window.cpp:351
StatusWidget * getStatus()
returns a pointer to the status widget
Definition window.cpp:198
void startSlideshow(bool startAtBeginning)
utility function used by above, actually started slideshow
QPixmap * shadowR
Definition window.h:70
Window(QWidget *parent=0, const char *name=0)
Creates title area, layout, and tool bar and places them in grid.
Definition window.cpp:54
LayoutWidget * layout
Layout includes subalbums listing and particular subalbum layout.
Definition window.h:116
void hideEvent(QHideEvent *)
Definition window.cpp:345
Q3GridLayout * grid
Grid objects placed in.
Definition window.h:110
QPixmap * shadowBR
Definition window.h:70
bool event(QEvent *)
Definition window.cpp:328
void refresh()
refreshes the layout
Definition window.cpp:203
QPixmap * shadowBL
Definition window.h:70
void closeEvent(QCloseEvent *e)
Definition window.cpp:208
Configuration * config
Configuration settings.
Definition window.h:107
Configuration * getConfig()
get setting object
Definition window.cpp:235