summaryrefslogtreecommitdiff
path: root/libopie2/opieui/oseparator.h
Unidiff
Diffstat (limited to 'libopie2/opieui/oseparator.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/oseparator.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/libopie2/opieui/oseparator.h b/libopie2/opieui/oseparator.h
new file mode 100644
index 0000000..e59b3f4
--- a/dev/null
+++ b/libopie2/opieui/oseparator.h
@@ -0,0 +1,90 @@
1/*
2                 This file is part of the Opie Project
3
4              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
5 Copyright (C) 1997 Michael Roth <mroth@wirlweb.de>
6 =.
7 .=l.
8           .>+-=
9 _;:,     .>    :=|. This program is free software; you can
10.> <`_,   >  .   <= redistribute it and/or modify it under
11:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
12.="- .-=="i,     .._ License as published by the Free Software
13 - .   .-<_>     .<> Foundation; either version 2 of the License,
14     ._= =}       : or (at your option) any later version.
15    .%`+i>       _;_.
16    .i_,=:_.      -<s. This program is distributed in the hope that
17     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
18    : ..    .:,     . . . without even the implied warranty of
19    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
20  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
21..}^=.=       =       ; Library General Public License for more
22++=   -.     .`     .: details.
23 :     =  ...= . :.=-
24 -.   .:....=;==+<; You should have received a copy of the GNU
25  -_. . .   )=.  = Library General Public License along with
26    --        :-=` this library; see the file COPYING.LIB.
27 If not, write to the Free Software Foundation,
28 Inc., 59 Temple Place - Suite 330,
29 Boston, MA 02111-1307, USA.
30
31*/
32
33#ifndef OSEPARATOR_H
34#define OSEPARATOR_H
35
36#include <qframe.h>
37
38/**
39 * Standard horizontal or vertical separator.
40 *
41 * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
42 * @author Michael Roth <mroth@wirlweb.de>
43 * @version $Id$
44*/
45class OSeparator : public QFrame
46{
47 Q_OBJECT
48 Q_PROPERTY( int orientation READ orientation WRITE setOrientation )
49 public:
50 /**
51 * Constructor.
52 **/
53 OSeparator(QWidget* parent=0, const char* name=0, WFlags f=0);
54 /**
55 * Constructor.
56 *
57 * @param orientation Set the orientation of the separator.
58 * Possible values are HLine or Horizontal and VLine or Vertical.
59 **/
60 OSeparator(int orientation, QWidget* parent=0, const char* name=0,
61 WFlags f=0);
62
63 /**
64 * Returns the orientation of the separator.
65 *
66 * Possible values are VLine and HLine.
67 **/
68 int orientation() const;
69
70 /**
71 * Set the orientation of the separator to @p orient
72 *
73 * Possible values are VLine and HLine.
74 */
75 void setOrientation(int orient);
76
77 /**
78 * The recommended height (width) for a horizontal (vertical) separator.
79 **/
80 virtual QSize sizeHint() const;
81
82protected:
83 virtual void drawFrame( QPainter * );
84
85private:
86 class OSeparatorPrivate* d;
87};
88
89
90#endif // OSEPARATOR_H