AlbumShaper  1.0a3
layoutWidget.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef GUI_LAYOUTWIDGET_H
12 #define GUI_LAYOUTWIDGET_H
13 
14 #include <qwidget.h>
15 //Added by qt3to4:
16 #include <Q3GridLayout>
17 #include <QPixmap>
18 #include <QLabel>
19 
20 //--------------------
21 //forward declarations
22 class QLabel;
23 class Q3GridLayout;
24 class QTabWidget;
25 class SubalbumsWidget;
26 class SubalbumWidget;
27 class EditingInterface;
28 class Subalbum;
29 class Photo;
30 class Window;
31 //--------------------
32 
33 //=====================================
37 //=====================================
38 
39 class LayoutWidget : public QWidget
40 {
41 Q_OBJECT
42 
43 public:
45  LayoutWidget(QWidget *parent=0, const char* name=0);
46 
49 
52 
54  Window* getWindow();
55 
57  void refresh();
58 
61  void revertPhotos();
62  //----------------------
63 private:
66 
68  Q3GridLayout* grid;
69 
72 
74  QTabWidget* tabbedArea;
75 
78 
81 //----------------------
82 signals:
84 //----------------------
85 public slots:
86  void setEditTabEnabled(bool val);
87 
89  void editSelectedPhoto();
90 
92  void organize();
93 
96 
99 
101  void updateSubalbumImage( QPixmap* val);
102 //----------------------
103 private slots:
105  void tabChanged( QWidget* widget );
106 
107  //show the specified collection in using the organize view
108  void showCollection(Subalbum* collection);
109 //----------------------
110 };
111 //======================
112 
113 #endif //GUI_LAYOUTWIDGET_H
void revertPhotos()
Reverts all selected photos in organize mode, or currently shown photo if in editing mode...
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image...
Definition: photo.h:44
void refreshSelectedCollectionIconName()
updates the selected collection icon name
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget...
Definition: window.h:39
void refresh()
Refreshes layout.
Columnview of all subalbums in album.
Displays list of subalbums and a particular subalbum layout.
Definition: layoutWidget.h:39
Window * window
Window pointer.
Definition: layoutWidget.h:65
void collectionSelected(Subalbum *)
A subalbum contains photos.
Definition: subalbum.h:48
void tabChanged(QWidget *widget)
handle tab shown changed signal
SubalbumsWidget * subalbums
List of subalbums.
Definition: layoutWidget.h:71
void showCollection(Subalbum *collection)
QTabWidget * tabbedArea
Tab widget containing organize and edit widgets.
Definition: layoutWidget.h:74
SubalbumWidget * getSubalbum()
Returns a pointer to the subalbum.
Displays subalbum layout.
Window * getWindow()
Returns a pointer to the window.
EditingInterface * editingInterface
Editing interface.
Definition: layoutWidget.h:80
void updateSubalbumImage(QPixmap *val)
Updates the current subalbums image.
void setEditTabEnabled(bool val)
LayoutWidget(QWidget *parent=0, const char *name=0)
Creates empty layout.
SubalbumWidget * subalbum
Collection organize widget.
Definition: layoutWidget.h:77
void photoStateChangedEvent()
handle the changing state of selected/shown photos
SubalbumsWidget * getSubalbums()
Returns a pointer to the subalbums.
Q3GridLayout * grid
Grid items placed in.
Definition: layoutWidget.h:68
Interface for editing photo.
void organize()
Select organize tab.
void editSelectedPhoto()
Edits first select photo.