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
22class QLabel;
23class Q3GridLayout;
24class QTabWidget;
25class SubalbumsWidget;
26class SubalbumWidget;
28class Subalbum;
29class Photo;
30class Window;
31//--------------------
32
33//=====================================
37//=====================================
38
39class LayoutWidget : public QWidget
40{
41Q_OBJECT
42
43public:
45 LayoutWidget(QWidget *parent=0, const char* name=0);
46
49
52
55
57 void refresh();
58
61 void revertPhotos();
62 //----------------------
63private:
66
68 Q3GridLayout* grid;
69
72
74 QTabWidget* tabbedArea;
75
78
81//----------------------
82signals:
84//----------------------
85public slots:
86 void setEditTabEnabled(bool val);
87
89 void editSelectedPhoto();
90
92 void organize();
93
96
99
101 void updateSubalbumImage( QPixmap* val);
102//----------------------
103private 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
Interface for editing photo.
Displays list of subalbums and a particular subalbum layout.
void revertPhotos()
Reverts all selected photos in organize mode, or currently shown photo if in editing mode.
SubalbumsWidget * subalbums
List of subalbums.
void photoStateChangedEvent()
handle the changing state of selected/shown photos
SubalbumWidget * getSubalbum()
Returns a pointer to the subalbum.
void collectionSelected(Subalbum *)
void updateSubalbumImage(QPixmap *val)
Updates the current subalbums image.
void refresh()
Refreshes layout.
EditingInterface * editingInterface
Editing interface.
Q3GridLayout * grid
Grid items placed in.
void showCollection(Subalbum *collection)
Window * window
Window pointer.
void setEditTabEnabled(bool val)
void refreshSelectedCollectionIconName()
updates the selected collection icon name
SubalbumWidget * subalbum
Collection organize widget.
LayoutWidget(QWidget *parent=0, const char *name=0)
Creates empty layout.
void editSelectedPhoto()
Edits first select photo.
void tabChanged(QWidget *widget)
handle tab shown changed signal
void organize()
Select organize tab.
Window * getWindow()
Returns a pointer to the window.
SubalbumsWidget * getSubalbums()
Returns a pointer to the subalbums.
QTabWidget * tabbedArea
Tab widget containing organize and edit widgets.
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image,...
Definition photo.h:45
Displays subalbum layout.
A subalbum contains photos.
Definition subalbum.h:49
Columnview of all subalbums in album.
Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget.
Definition window.h:40