~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to libs/plasma/widgets/vboxlayout.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *   Copyright 2007 by Matias Valdenegro T. <mvaldenegro@informatica.utem.cl>
 
2
 *   Copyright 2007 by Robert Knight <robertknight@gmail.com> 
3
3
 *
4
4
 *   This program is free software; you can redistribute it and/or modify
5
 
 *   it under the terms of the GNU Library General Public License version 2 as
6
 
 *   published by the Free Software Foundation
 
5
 *   it under the terms of the GNU Library General Public License as
 
6
 *   published by the Free Software Foundation; either version 2, or
 
7
 *   (at your option) any later version.
 
8
 
7
9
 *
8
10
 *   This program is distributed in the hope that it will be useful,
9
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
19
21
#ifndef PLASMA_VBOXLAYOUT
20
22
#define PLASMA_VBOXLAYOUT
21
23
 
22
 
#include <plasma/plasma_export.h>
23
24
#include <plasma/widgets/boxlayout.h>
24
25
 
25
 
namespace Plasma
26
 
{
27
 
 
28
 
 
29
 
/**
30
 
 * Vertical Box Layout
31
 
 *
32
 
 * @author Matias Valdenegro T. <mvaldenegro@informatica.utem.cl>
33
 
 *
34
 
 * This class implements a Vertical Box Layout, it just lays items in vertical, from up to down.
35
 
 */
36
 
class PLASMA_EXPORT VBoxLayout : public BoxLayout
37
 
{
38
 
    public:
39
 
 
40
 
        /**
41
 
         * Constructor.
42
 
         */
43
 
        explicit VBoxLayout(LayoutItem *parent = 0);
44
 
 
45
 
        /**
46
 
         * Virtual Destructor.
47
 
         */
48
 
        ~VBoxLayout();
49
 
 
50
 
        Qt::Orientations expandingDirections() const;
51
 
 
52
 
        bool hasHeightForWidth() const;
53
 
        qreal heightForWidth(qreal w) const;
54
 
 
55
 
        void setGeometry(const QRectF& geometry);
56
 
 
57
 
        QSizeF sizeHint() const;
58
 
 
59
 
    private:
60
 
        class Private;
61
 
        Private *const d;
62
 
};
63
 
 
64
 
}
65
 
 
66
26
#endif /* PLASMA_VBOXLAYOUT */