plasma-framework/widgets/layoutitem.h
Matias Valdenegro Toro edaecc53af First commit of my work, added classes :
- LayoutItem
- Layout
- VBoxLayout


svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667376
2007-05-22 16:48:34 +00:00

60 lines
1.5 KiB
C++

/*
* Copyright (C) 2007 by Matias Valdenegro T. <mvaldenegro@informatica.utem.cl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2 as
* published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __LAYOUT_ITEM__
#define __LAYOUT_ITEM__
#include <QtCore/QRectF>
#include <QtCore/QSizeF>
#include <kdemacros.h>
namespace Plasma
{
class KDE_EXPORT LayoutItem
{
public:
LayoutItem();
virtual ~LayoutItem();
virtual Qt::Orientations expandingDirections() const = 0;
virtual QSizeF minimumSize() const = 0;
virtual QSizeF maximumSize() const = 0;
virtual bool hasHeightForWidth() const;
virtual qreal heightForWidth(qreal w) const;
virtual bool hasWidthForHeight() const;
virtual qreal widthForHeight(qreal h) const;
virtual QRectF geometry() const = 0;
virtual void setGeometry(const QRectF& geometry) = 0;
virtual QSizeF sizeHint() const = 0;
private:
class Private;
Private *const d;
};
};
#endif /* __LAYOUT_ITEM__ */