groupsWidget.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 CONFIGURATION_GROUPSWIDGET_H
00012 #define CONFIGURATION_GROUPSWIDGET_H
00013 
00014 //--------------------
00015 //forward declarations
00016 //--------------------
00017 
00018 #include <qiconview.h>
00019 #include <qobject.h>
00020 
00021 //=====================================
00024 //=====================================
00025 class GroupsWidget : public QIconView
00026 {
00027 public:
00028   GroupsWidget( QWidget* parent=0,
00029                 const char* name = 0 );
00030 
00031   void keyPressEvent( QKeyEvent* e );
00032   QSize sizeHint() const;
00033  
00034   void setTextWidth(int val);
00035   int getTextWidth();  
00036   
00037 protected:
00038   void contentsMousePressEvent ( QMouseEvent * e );
00039   
00040 private:
00041   //width allocated to iconview items text.
00042   //IconViewItems will request this value when running calcRect()
00043   int textWidth;
00044 };
00045 //======================
00046 
00047 #endif //CONFIGURATION_GROUPSWIDGET_H

Generated on Wed Nov 8 16:37:13 2006 for AlbumShaper by  doxygen 1.4.7