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
17 class Q3IconViewItem;
18 class QToolButton;
19 class LayoutWidget;
20 class SubalbumsIconView;
21 class Subalbum;
23 
24 #include <qwidget.h>
25 
26 //=====================================
29 //=====================================
30 
31 class SubalbumsWidget : public QWidget
32 {
33 Q_OBJECT
34 
35 public:
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 //----------------------
57 private:
59  void selectFirstCollection();
60 
62  void selectCollection( Q3IconViewItem* item );
63 
66 
67  //Currently selected item
69 
71  QToolButton* createButton;
72 
74  QToolButton* deleteButton;
75 
78 
81  //----------------------
82 signals:
84 //----------------------
85 public slots:
86  void updatedSelectedCollectionImage( QPixmap* val);
88 //----------------------
89 private slots:
91  void createAction();
92 
94  void deleteAction();
95 
98 
100  void reorder();
101 //----------------------
102 };
103 //======================
104 
105 #endif //GUI_SUBALBUMSWIDGET_H
LayoutWidget * getParent()
Returns parent.
void selectCollection(Q3IconViewItem *item)
select specified collection
SubalbumsIconView * collections
list of subalbums
QToolButton * createButton
Create collection button.
LayoutWidget * layout
Pointer to layoutwidget this widget is in.
Extension of iconview, used to list all subalbums in album. Supports drag-n-drop within iconview such...
QToolButton * deleteButton
Delete collection button.
void refreshCollectionsList()
Refreshes list of collections, selecting first by default.
Columnview of all subalbums in album.
SubalbumsWidget(QWidget *parent=0, const char *name=0)
Creates layout.
Displays list of subalbums and a particular subalbum layout.
Definition: layoutWidget.h:39
Q3IconViewItem * getCurrentSelection()
Returns current selection.
A subalbum contains photos.
Definition: subalbum.h:48
void handleSelectionAttempt(Q3IconViewItem *item)
respond to user clicking collection icons
Displays subalbum icon and name.
void collectionSelected(Subalbum *)
void reorder()
relayout collectionicons after a create/delete refresh
void refreshSelectedCollectionName()
Subalbum * getSelectedSubalbum()
Returns the currently selected subalbum.
void updateButtons(bool enable)
Activates/Deactives create/delete buttons.
void updatedSelectedCollectionImage(QPixmap *val)
Q3IconViewItem * currentSelection
void selectFirstCollection()
Select specified subalbum.
void createAction()
create a new collection
bool buttonsState
Cached enabled/disabled state of buttons.
void deleteAction()
deletes the currently selected collection