Diffstat (limited to 'core/pim/datebook/datebooksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebooksettings.cpp | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/core/pim/datebook/datebooksettings.cpp b/core/pim/datebook/datebooksettings.cpp index 561dc38..c72cd59 100644 --- a/core/pim/datebook/datebooksettings.cpp +++ b/core/pim/datebook/datebooksettings.cpp | |||
@@ -1,51 +1,61 @@ | |||
1 | /********************************************************************** | 1 | /* |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | This file is part of the Opie Project |
3 | ** | 3 | |
4 | ** This file is part of Qtopia Environment. | 4 | Copyright (C) Opie Team <opie-devel@handhelds.org> |
5 | ** | 5 | =. |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | .=l. |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | .>+-= |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | _;:, .> :=|. This program is free software; you can |
9 | ** packaging of this file. | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | ** | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ** | 13 | ._= =} : or (at your option) any later version. |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | .%`+i> _;_. |
15 | ** | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | ** not clear to you. | 17 | : .. .:, . . . without even the implied warranty of |
18 | ** | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | **********************************************************************/ | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | */ | ||
20 | 30 | ||
21 | #include "datebooksettings.h" | 31 | #include "datebooksettings.h" |
22 | 32 | ||
23 | #include <opie2/opluginloader.h> | 33 | #include <opie2/opluginloader.h> |
24 | #include <opie2/odebug.h> | 34 | #include <opie2/odebug.h> |
25 | #include <opie2/oholidaypluginif.h> | 35 | #include <opie2/oholidaypluginif.h> |
26 | #include <opie2/oholidayplugin.h> | 36 | #include <opie2/oholidayplugin.h> |
27 | #include <opie2/oholidayplugincfgwidget.h> | 37 | #include <opie2/oholidayplugincfgwidget.h> |
28 | 38 | ||
29 | #include <qpe/qpeapplication.h> | 39 | #include <qpe/qpeapplication.h> |
30 | 40 | ||
31 | #include <qspinbox.h> | 41 | #include <qspinbox.h> |
32 | #include <qcheckbox.h> | 42 | #include <qcheckbox.h> |
33 | #include <qlistview.h> | 43 | #include <qlistview.h> |
34 | #include <qheader.h> | 44 | #include <qheader.h> |
35 | #include <qtabwidget.h> | 45 | #include <qtabwidget.h> |
36 | #include <qlayout.h> | 46 | #include <qlayout.h> |
37 | 47 | ||
38 | DateBookSettings::DateBookSettings( bool whichClock, QWidget *parent, | 48 | DateBookSettings::DateBookSettings( bool whichClock, QWidget *parent, |
39 | const char *name, bool modal, WFlags fl ) | 49 | const char *name, bool modal, WFlags fl ) |
40 | : DateBookSettingsBase( parent, name, modal, fl ), | 50 | : DateBookSettingsBase( parent, name, modal, fl ), |
41 | ampm( whichClock ) | 51 | ampm( whichClock ) |
42 | { | 52 | { |
43 | init(); | 53 | init(); |
44 | QObject::connect( qApp, SIGNAL( clockChanged(bool) ), this, SLOT( slotChangeClock(bool) ) ); | 54 | QObject::connect( qApp, SIGNAL( clockChanged(bool) ), this, SLOT( slotChangeClock(bool) ) ); |
45 | QArray<int> categories; | 55 | QArray<int> categories; |
46 | comboCategory->setCategories( categories, "Calendar", tr("Calendar") ); | 56 | comboCategory->setCategories( categories, "Calendar", tr("Calendar") ); |
47 | m_loader = 0; | 57 | m_loader = 0; |
48 | m_manager = 0; | 58 | m_manager = 0; |
49 | m_PluginListView->header()->hide(); | 59 | m_PluginListView->header()->hide(); |
50 | m_PluginListView->setSorting(-1); | 60 | m_PluginListView->setSorting(-1); |
51 | } | 61 | } |