lib/widgets/ktabzoombarlayout.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001-2003 * 00003 * The KDevelop Team * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef __KTABZOOMBAR_LAYOUT_H__ 00013 #define __KTABZOOMBAR_LAYOUT_H__ 00014 00015 #include <qlayout.h> 00016 #include <qptrlist.h> 00017 00018 #include "ktabzoomposition.h" 00019 00020 00021 class KTabZoomBarLayout : public QLayout 00022 { 00023 public: 00024 00025 KTabZoomBarLayout(QWidget *parent, KTabZoomPosition::Position pos); 00026 KTabZoomBarLayout(QLayout *parent, KTabZoomPosition::Position pos); 00027 KTabZoomBarLayout(KTabZoomPosition::Position pos); 00028 ~KTabZoomBarLayout(); 00029 00030 void addItem(QLayoutItem *item); 00031 QSize sizeHint() const; 00032 QSize minimumSize() const; 00033 QLayoutIterator iterator(); 00034 void setGeometry(const QRect &rect); 00035 bool hasHeightForWidth () const; 00036 int heightForWidth(int) const; 00037 00038 private: 00039 00040 int completeSize() const; 00041 00042 KTabZoomPosition::Position m_pos; 00043 QPtrList<QLayoutItem> m_list; 00044 int m_fontHeight; 00045 00046 }; 00047 00048 00049 #endif 00050