-rw-r--r-- | libopie2/opieui/odialog.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libopie2/opieui/odialog.h b/libopie2/opieui/odialog.h index 4116ed7..ceff612 100644 --- a/libopie2/opieui/odialog.h +++ b/libopie2/opieui/odialog.h | |||
@@ -1,89 +1,91 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de> | |
4 | (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | ||
5 | =. | 4 | =. |
6 | .=l. | 5 | .=l. |
7 | .>+-= | 6 | .>+-= |
8 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
9 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
12 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
14 | .%`+i> _;_. | 13 | .%`+i> _;_. |
15 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 21 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
29 | 28 | ||
30 | */ | 29 | */ |
31 | 30 | ||
32 | #ifndef ODIALOG_H | 31 | #ifndef ODIALOG_H |
33 | #define ODIALOG_H | 32 | #define ODIALOG_H |
34 | 33 | ||
35 | class QLayoutItem; | 34 | class QLayoutItem; |
36 | 35 | ||
37 | #include <qdialog.h> | 36 | #include <qdialog.h> |
38 | 37 | ||
39 | /** | 38 | /** |
40 | * Dialog with extended nonmodal support and methods for OPIE standard | 39 | * Dialog with extended nonmodal support and methods for OPIE standard |
41 | * compliance. | 40 | * compliance. |
42 | * | 41 | * |
43 | * The @ref marginHint() and @ref spacingHint() sizes shall be used | 42 | * The @ref marginHint() and @ref spacingHint() sizes shall be used |
44 | * whenever you layout the interior of a dialog. One special note. If | 43 | * whenever you layout the interior of a dialog. One special note. If |
45 | * you make your own action buttons (OK, Cancel etc), the space | 44 | * you make your own action buttons (OK, Cancel etc), the space |
46 | * beteween the buttons shall be @ref spacingHint(), whereas the space | 45 | * beteween the buttons shall be @ref spacingHint(), whereas the space |
47 | * above, below, to the right and to the left shall be @ref marginHint(). | 46 | * above, below, to the right and to the left shall be @ref marginHint(). |
48 | * If you add a separator line above the buttons, there shall be a | 47 | * If you add a separator line above the buttons, there shall be a |
49 | * @ref marginHint() between the buttons and the separator and a | 48 | * @ref marginHint() between the buttons and the separator and a |
50 | * @ref marginHint() above the separator as well. | 49 | * @ref marginHint() above the separator as well. |
51 | * | 50 | * |
52 | * @author Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 51 | * @author Michael 'Mickey' Lauer <mickey@Vanille.de> |
53 | */ | 52 | */ |
53 | |||
54 | // lets fix up Qt instead! Size does matter. -zecke | 54 | // lets fix up Qt instead! Size does matter. -zecke |
55 | // while that may be true, reducing maintainance effort for the future does also matter - | ||
56 | // and I believe that maintaining a patch against QtE is more work than our classes -mml | ||
55 | 57 | ||
56 | class ODialog : public QDialog | 58 | class ODialog : public QDialog |
57 | { | 59 | { |
58 | Q_OBJECT | 60 | Q_OBJECT |
59 | 61 | ||
60 | public: | 62 | public: |
61 | 63 | ||
62 | /** | 64 | /** |
63 | * Constructor. | 65 | * Constructor. |
64 | * | 66 | * |
65 | * Takes the same arguments as @ref QDialog. | 67 | * Takes the same arguments as @ref QDialog. |
66 | */ | 68 | */ |
67 | ODialog(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags f = 0); | 69 | ODialog(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags f = 0); |
68 | 70 | ||
69 | /** | 71 | /** |
70 | * Return the number of pixels you shall use between a | 72 | * Return the number of pixels you shall use between a |
71 | * dialog edge and the outermost widget(s) according to the KDE standard. | 73 | * dialog edge and the outermost widget(s) according to the KDE standard. |
72 | **/ | 74 | **/ |
73 | static int marginHint(); | 75 | static int marginHint(); |
74 | 76 | ||
75 | /** | 77 | /** |
76 | * Return the number of pixels you shall use between | 78 | * Return the number of pixels you shall use between |
77 | * widgets inside a dialog according to the KDE standard. | 79 | * widgets inside a dialog according to the KDE standard. |
78 | */ | 80 | */ |
79 | static int spacingHint(); | 81 | static int spacingHint(); |
80 | 82 | ||
81 | private: | 83 | private: |
82 | static int mMarginSize; | 84 | static int mMarginSize; |
83 | static int mSpacingSize; | 85 | static int mSpacingSize; |
84 | 86 | ||
85 | class ODialogPrivate; | 87 | class ODialogPrivate; |
86 | ODialogPrivate *d; // d pointer always needed! -zecke | 88 | ODialogPrivate *d; |
87 | 89 | ||
88 | }; | 90 | }; |
89 | #endif // ODIALOG_H | 91 | #endif // ODIALOG_H |