AlbumShaper 1.0a3
subalbumsWidget.h
Go to the documentation of this file.
1//Added by qt3to4:
2#include <QPixmap>
3//==============================================
4// copyright : (C) 2003-2005 by Will Stokes
5//==============================================
6// This program is free software; you can redistribute it
7// and/or modify it under the terms of the GNU General
8// Public License as published by the Free Software
9// Foundation; either version 2 of the License, or
10// (at your option) any later version.
11//==============================================
12
13#ifndef GUI_SUBALBUMSWIDGET_H
14#define GUI_SUBALBUMSWIDGET_H
15
16//forward declarations
17class Q3IconViewItem;
18class QToolButton;
19class LayoutWidget;
21class Subalbum;
23
24#include <qwidget.h>
25
26//=====================================
29//=====================================
30
32{
33Q_OBJECT
34
35public:
37 SubalbumsWidget(QWidget *parent=0, const char* name=0);
38
41
44
46 void updateButtons(bool enable);
47
50
53
55// void setSelectedSubalbum( Subalbum* selection );
56//----------------------
57private:
60
62 void selectCollection( Q3IconViewItem* item );
63
66
67 //Currently selected item
69
71 QToolButton* createButton;
72
74 QToolButton* deleteButton;
75
78
81 //----------------------
82signals:
84//----------------------
85public slots:
86 void updatedSelectedCollectionImage( QPixmap* val);
88//----------------------
89private slots:
91 void createAction();
92
94 void deleteAction();
95
98
100 void reorder();
101//----------------------
102};
103//======================
104
105#endif //GUI_SUBALBUMSWIDGET_H
Displays list of subalbums and a particular subalbum layout.
Displays subalbum icon and name.
A subalbum contains photos.
Definition subalbum.h:49
Extension of iconview, used to list all subalbums in album. Supports drag-n-drop within iconview such...
Columnview of all subalbums in album.
void updateButtons(bool enable)
Activates/Deactives create/delete buttons.
QToolButton * createButton
Create collection button.
void selectFirstCollection()
Select specified subalbum.
void updatedSelectedCollectionImage(QPixmap *val)
SubalbumsIconView * collections
list of subalbums
LayoutWidget * layout
Pointer to layoutwidget this widget is in.
void selectCollection(Q3IconViewItem *item)
select specified collection
void deleteAction()
deletes the currently selected collection
void createAction()
create a new collection
SubalbumsWidget(QWidget *parent=0, const char *name=0)
Creates layout.
Subalbum * getSelectedSubalbum()
Returns the currently selected subalbum.
QToolButton * deleteButton
Delete collection button.
Q3IconViewItem * getCurrentSelection()
Returns current selection.
void handleSelectionAttempt(Q3IconViewItem *item)
respond to user clicking collection icons
void collectionSelected(Subalbum *)
LayoutWidget * getParent()
Returns parent.
void refreshSelectedCollectionName()
bool buttonsState
Cached enabled/disabled state of buttons.
void reorder()
relayout collectionicons after a create/delete refresh
Q3IconViewItem * currentSelection
void refreshCollectionsList()
Refreshes list of collections, selecting first by default.