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