Diffstat (limited to 'core/settings/launcher/tabssettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/launcher/tabssettings.cpp | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/core/settings/launcher/tabssettings.cpp b/core/settings/launcher/tabssettings.cpp index ae78733..0faaea3 100644 --- a/core/settings/launcher/tabssettings.cpp +++ b/core/settings/launcher/tabssettings.cpp | |||
@@ -1,31 +1,38 @@ | |||
1 | /********************************************************************** | 1 | /* |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | =. This file is part of the OPIE Project |
3 | ** | 3 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> |
4 | ** This file is part of the Qtopia Environment. | 4 | .>+-= |
5 | ** | 5 | _;:, .> :=|. This file is free software; you can |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | .> <`_, > . <= redistribute it and/or modify it under |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | .="- .-=="i, .._ License as published by the Free Software |
9 | ** packaging of this file. | 9 | - . .-<_> .<> Foundation; either version 2 of the License, |
10 | ** | 10 | ._= =} : or (at your option) any later version. |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | .%`+i> _;_. |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | .i_,=:_. -<s. This file is distributed in the hope that |
13 | ** | 13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | : .. .:, . . . without even the implied warranty of |
15 | ** | 15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
17 | ** not clear to you. | 17 | ..}^=.= = ; Public License for more details. |
18 | ** | 18 | ++= -. .` .: |
19 | **********************************************************************/ | 19 | : = ...= . :.=- You should have received a copy of the GNU |
20 | -. .:....=;==+<; General Public License along with this file; | ||
21 | -_. . . )=. = see the file COPYING. If not, write to the | ||
22 | -- :-=` Free Software Foundation, Inc., | ||
23 | 59 Temple Place - Suite 330, | ||
24 | Boston, MA 02111-1307, USA. | ||
25 | |||
26 | */ | ||
20 | 27 | ||
21 | #include "tabssettings.h" | 28 | #include "tabssettings.h" |
22 | 29 | ||
23 | #include <qpe/qpeapplication.h> | 30 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/resource.h> | 31 | #include <qpe/resource.h> |
25 | #include <qpe/applnk.h> | 32 | #include <qpe/applnk.h> |
26 | #include <qpe/mimetype.h> | 33 | #include <qpe/mimetype.h> |
27 | #include <qpe/qcopenvelope_qws.h> | 34 | #include <qpe/qcopenvelope_qws.h> |
28 | #include <qpe/config.h> | 35 | #include <qpe/config.h> |
29 | 36 | ||
30 | #include <qlistbox.h> | 37 | #include <qlistbox.h> |
31 | #include <qpushbutton.h> | 38 | #include <qpushbutton.h> |
@@ -105,26 +112,26 @@ void TabsSettings::readTabSettings ( ) | |||
105 | 112 | ||
106 | QString view = cfg. readEntry ( "View", "Icon" ); | 113 | QString view = cfg. readEntry ( "View", "Icon" ); |
107 | if ( view == "List" ) // No tr | 114 | if ( view == "List" ) // No tr |
108 | tc. m_view = TabConfig::List; | 115 | tc. m_view = TabConfig::List; |
109 | 116 | ||
110 | QString bgType = cfg. readEntry ( "BackgroundType", "Ruled" ); | 117 | QString bgType = cfg. readEntry ( "BackgroundType", "Ruled" ); |
111 | if ( bgType == "SolidColor" ) | 118 | if ( bgType == "SolidColor" ) |
112 | tc. m_bg_type = TabConfig::SolidColor; | 119 | tc. m_bg_type = TabConfig::SolidColor; |
113 | else if ( bgType == "Image" ) // No tr | 120 | else if ( bgType == "Image" ) // No tr |
114 | tc. m_bg_type = TabConfig::Image; | 121 | tc. m_bg_type = TabConfig::Image; |
115 | 122 | ||
116 | tc. m_bg_image = cfg. readEntry ( "BackgroundImage", "wallpaper/opie" ); | 123 | tc. m_bg_image = cfg. readEntry ( "BackgroundImage", "wallpaper/opie" ); |
117 | tc. m_bg_color = cfg. readEntry ( "BackgroundColor" ); | 124 | tc. m_bg_color = cfg. readEntry ( "BackgroundColor", colorGroup ( ). color ( QColorGroup::Base ). name ( )); |
118 | tc. m_text_color = cfg. readEntry ( "TextColor" ); | 125 | tc. m_text_color = cfg. readEntry ( "TextColor", colorGroup ( ). color ( QColorGroup::Text ). name ( )); |
119 | QStringList f = cfg. readListEntry ( "Font", ',' ); | 126 | QStringList f = cfg. readListEntry ( "Font", ',' ); |
120 | if ( f. count ( ) == 4 ) { | 127 | if ( f. count ( ) == 4 ) { |
121 | tc. m_font_family = f [0]; | 128 | tc. m_font_family = f [0]; |
122 | tc. m_font_size = f [1]. toInt ( ); | 129 | tc. m_font_size = f [1]. toInt ( ); |
123 | tc. m_font_style = f [2]; | 130 | tc. m_font_style = f [2]; |
124 | } else { | 131 | } else { |
125 | tc. m_font_family = font ( ). family ( ); | 132 | tc. m_font_family = font ( ). family ( ); |
126 | tc. m_font_size = font ( ). pointSize ( ); | 133 | tc. m_font_size = font ( ). pointSize ( ); |
127 | tc. m_font_style = "Regular"; | 134 | tc. m_font_style = "Regular"; |
128 | } | 135 | } |
129 | m_tabs [*it] = tc; | 136 | m_tabs [*it] = tc; |
130 | } | 137 | } |