subalbumsWidget.h

Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it
00005 //  and/or modify it under the terms of the GNU General
00006 //  Public License as published by the Free Software
00007 //  Foundation; either version 2 of the License, or
00008 //  (at your option) any later version.
00009 //==============================================
00010 
00011 #ifndef GUI_SUBALBUMSWIDGET_H
00012 #define GUI_SUBALBUMSWIDGET_H
00013 
00014 //forward declarations
00015 class QIconViewItem;
00016 class QToolButton;
00017 class LayoutWidget;
00018 class SubalbumsIconView;
00019 class Subalbum;
00020 class SubalbumPreviewWidget;
00021 
00022 #include <qwidget.h>
00023 
00024 //=====================================
00027 //=====================================
00028 
00029 class SubalbumsWidget : public QWidget
00030 {
00031 Q_OBJECT
00032 
00033 public:
00035   SubalbumsWidget(QWidget *parent=0, const char* name=0);
00036 
00038   void refreshCollectionsList();
00039 
00041   LayoutWidget* getParent();
00042 
00044   void updateButtons(bool enable);
00045 
00047   QIconViewItem* getCurrentSelection();
00048 
00050   Subalbum* getSelectedSubalbum();    
00051 
00053 //  void setSelectedSubalbum( Subalbum* selection );
00054 //----------------------
00055 private:
00057   void selectFirstCollection();
00058   
00060   void selectCollection( QIconViewItem* item );
00061 
00063   SubalbumsIconView* collections;
00064   
00065   //Currently selected item
00066   QIconViewItem* currentSelection;
00067   
00069   QToolButton* createButton;
00070   
00072   QToolButton* deleteButton;
00073   
00075   LayoutWidget* layout;
00076   
00078   bool buttonsState;
00079   //----------------------
00080 signals:
00081     void collectionSelected( Subalbum* );
00082 //----------------------
00083 public slots:
00084   void updatedSelectedCollectionImage( QPixmap* val);
00085   void refreshSelectedCollectionName();
00086 //----------------------
00087 private slots:
00089   void createAction();
00090 
00092   void deleteAction();
00093 
00095   void handleSelectionAttempt( QIconViewItem* item);
00096   
00098   void reorder();
00099 //----------------------
00100 };
00101 //======================
00102 
00103 #endif //GUI_SUBALBUMSWIDGET_H

Generated on Thu Jan 3 10:54:40 2008 for AlbumShaper by  doxygen 1.5.4