author | mickeyl <mickeyl> | 2003-12-20 17:47:08 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-20 17:47:08 (UTC) |
commit | d552ce3a94b53ae0fdb226411bd8f9e5bab6596a (patch) (unidiff) | |
tree | ca9f1edd3ed945c98a6cd4587a5094fe9b2b3d36 /libopie2/opieui/odialog.h | |
parent | 8e96eec63c67cfcd1fb202fe7346e5408a142f2e (diff) | |
download | opie-d552ce3a94b53ae0fdb226411bd8f9e5bab6596a.zip opie-d552ce3a94b53ae0fdb226411bd8f9e5bab6596a.tar.gz opie-d552ce3a94b53ae0fdb226411bd8f9e5bab6596a.tar.bz2 |
- start cleaning up (lot of stuff left)
- use odebug classes
-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,16 +1,15 @@ | |||
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; |
@@ -40,27 +39,30 @@ class QLayoutItem; | |||
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 | */ |
@@ -74,16 +76,16 @@ class ODialog : public QDialog | |||
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 |