author | mickeyl <mickeyl> | 2005-05-03 21:53:57 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-03 21:53:57 (UTC) |
commit | 1daea169fcc0007727f0752251ca4546817999b7 (patch) (unidiff) | |
tree | f6b03f5b44bc2debe43d8d1ba7c4c39f2cc70518 /libopie2/opieui/big-screen/olayout.h | |
parent | e9d35f23f81915ee62cb41b4ed82115826a4f9dd (diff) | |
download | opie-1daea169fcc0007727f0752251ca4546817999b7.zip opie-1daea169fcc0007727f0752251ca4546817999b7.tar.gz opie-1daea169fcc0007727f0752251ca4546817999b7.tar.bz2 |
add OAutoBoxLayout, a descendant of QBoxLayout which, depending on
Desktop-Height > Desktop-Width acts as a QHBoxLayout respectively a QVBoxLayout
Diffstat (limited to 'libopie2/opieui/big-screen/olayout.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/big-screen/olayout.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libopie2/opieui/big-screen/olayout.h b/libopie2/opieui/big-screen/olayout.h new file mode 100644 index 0000000..03c8d4a --- a/dev/null +++ b/libopie2/opieui/big-screen/olayout.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; version 2 of the License. | ||
10 | ._= =} : | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | #ifndef OLAYOUT_H | ||
30 | #define OLAYOUT_H | ||
31 | |||
32 | /* QT */ | ||
33 | |||
34 | #include <qlayout.h> | ||
35 | |||
36 | namespace Opie { | ||
37 | namespace Ui { | ||
38 | |||
39 | class OAutoBoxLayout : public QBoxLayout | ||
40 | { | ||
41 | Q_OBJECT | ||
42 | public: | ||
43 | OAutoBoxLayout( QWidget *parent, int border=0, int space = -1, const char *name=0 ); | ||
44 | OAutoBoxLayout( QLayout *parentLayout, int space = -1, const char *name=0 ); | ||
45 | OAutoBoxLayout( int space = -1, const char *name=0 ); | ||
46 | ~OAutoBoxLayout(); | ||
47 | |||
48 | private: | ||
49 | void fixDirection(); | ||
50 | }; | ||
51 | |||
52 | }; // namespace Ui | ||
53 | }; // namespace Opie | ||
54 | |||
55 | #endif | ||
56 | |||
57 | |||