summaryrefslogtreecommitdiff
path: root/noncore/settings
Unidiff
Diffstat (limited to 'noncore/settings') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/language/language.pro1
-rw-r--r--noncore/settings/sound/sound.pro2
-rw-r--r--noncore/settings/sound/soundsettings.cpp4
-rw-r--r--noncore/settings/sysinfo/sysinfo.pro1
4 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/language/language.pro b/noncore/settings/language/language.pro
index c01ffc8..a1d54f8 100644
--- a/noncore/settings/language/language.pro
+++ b/noncore/settings/language/language.pro
@@ -1,12 +1,13 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG += qt warn_on release 2 CONFIG += qt warn_on release
3 DESTDIR = ../../bin 3 DESTDIR = ../../bin
4 HEADERS = settings.h 4 HEADERS = settings.h
5 SOURCES = language.cpp main.cpp 5 SOURCES = language.cpp main.cpp
6 INTERFACES= languagesettingsbase.ui 6 INTERFACES= languagesettingsbase.ui
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8 DEPENDPATH+= ../$(OPIEDIR)/include 8 DEPENDPATH+= ../$(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe
10 TARGET = language 10 TARGET = language
11 11
12TRANSLATIONS = ../../i18n/de/language.ts 12TRANSLATIONS = ../../i18n/de/language.ts
13TRANSLATIONS = ../../i18n/pt_BR/language.ts
diff --git a/noncore/settings/sound/sound.pro b/noncore/settings/sound/sound.pro
index 44eff44..8b33ff2 100644
--- a/noncore/settings/sound/sound.pro
+++ b/noncore/settings/sound/sound.pro
@@ -1,10 +1,12 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG += qt warn_on release 2 CONFIG += qt warn_on release
3 DESTDIR = ../../bin 3 DESTDIR = ../../bin
4 HEADERS = soundsettings.h 4 HEADERS = soundsettings.h
5 SOURCES = soundsettings.cpp main.cpp 5 SOURCES = soundsettings.cpp main.cpp
6 INTERFACES= soundsettingsbase.ui 6 INTERFACES= soundsettingsbase.ui
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8 DEPENDPATH+= ../$(OPIEDIR)/include 8 DEPENDPATH+= ../$(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe
10 TARGET = sound 10 TARGET = sound
11
12TRANSLATIONS = ../../i18n/pt_BR/sound.ts
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index c2bf405..55f6c99 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -1,132 +1,132 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#include "soundsettings.h" 20#include "soundsettings.h"
21 21
22#include <qpe/config.h> 22#include <qpe/config.h>
23#include <qpe/qcopenvelope_qws.h> 23#include <qpe/qcopenvelope_qws.h>
24#include <qapplication.h> 24#include <qapplication.h>
25#include <qslider.h> 25#include <qslider.h>
26#include <qcheckbox.h> 26#include <qcheckbox.h>
27#include <qlineedit.h> 27#include <qlineedit.h>
28#include <qcombobox.h> 28#include <qcombobox.h>
29 29
30 30
31SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) 31SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
32 : SoundSettingsBase( parent, name, TRUE, fl ) 32 : SoundSettingsBase( parent, name, TRUE, fl )
33{ 33{
34 Config config( "Sound" ); 34 Config config( "Sound" );
35 config.setGroup( "System" ); 35 config.setGroup( "System" );
36 volume->setValue(100-config.readNumEntry("Volume")); 36 volume->setValue(100-config.readNumEntry("Volume"));
37 mic->setValue(100-config.readNumEntry("Mic")); 37 mic->setValue(100-config.readNumEntry("Mic"));
38 touchsound->setChecked(config.readBoolEntry("Touch")); 38 touchsound->setChecked(config.readBoolEntry("Touch"));
39 keysound->setChecked(config.readBoolEntry("Key")); 39 keysound->setChecked(config.readBoolEntry("Key"));
40 40
41 config.setGroup("Record"); 41 config.setGroup("Record");
42 int rate=config.readNumEntry("SampleRate", 11025); 42 int rate=config.readNumEntry("SampleRate", 11025);
43 if(rate == 11025) 43 if(rate == 11025)
44 sampleRate->setCurrentItem(0); 44 sampleRate->setCurrentItem(0);
45 else if(rate == 22050) 45 else if(rate == 22050)
46 sampleRate->setCurrentItem(1); 46 sampleRate->setCurrentItem(1);
47 else if(rate==44100) 47 else if(rate==44100)
48 sampleRate->setCurrentItem(2); 48 sampleRate->setCurrentItem(2);
49 49
50 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); 50 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
51 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0)); 51 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 1));
52 52
53 connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); 53 connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int)));
54 connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int))); 54 connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int)));
55 connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) ); 55 connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) );
56 connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); 56 connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) );
57} 57}
58 58
59void SoundSettings::reject() 59void SoundSettings::reject()
60{ 60{
61 Config config( "Sound" ); 61 Config config( "Sound" );
62 config.setGroup( "System" ); 62 config.setGroup( "System" );
63 setVolume(100-config.readNumEntry("Volume")); 63 setVolume(100-config.readNumEntry("Volume"));
64 setMic(100-config.readNumEntry("Mic")); 64 setMic(100-config.readNumEntry("Mic"));
65 65
66 config.setGroup("Record"); 66 config.setGroup("Record");
67 int rate=config.readNumEntry("SampleRate", 11025); 67 int rate=config.readNumEntry("SampleRate", 11025);
68 if(rate == 11025) 68 if(rate == 11025)
69 sampleRate->setCurrentItem(0); 69 sampleRate->setCurrentItem(0);
70 else if(rate == 22050) 70 else if(rate == 22050)
71 sampleRate->setCurrentItem(1); 71 sampleRate->setCurrentItem(1);
72 else if(rate==44100) 72 else if(rate==44100)
73 sampleRate->setCurrentItem(2); 73 sampleRate->setCurrentItem(2);
74 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); 74 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
75 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0)); 75 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0));
76 76
77 QDialog::reject(); 77 QDialog::reject();
78} 78}
79 79
80void SoundSettings::accept() 80void SoundSettings::accept()
81{ 81{
82 Config config( "Sound" ); 82 Config config( "Sound" );
83 config.setGroup( "System" ); 83 config.setGroup( "System" );
84 config.writeEntry("Volume",100-volume->value()); 84 config.writeEntry("Volume",100-volume->value());
85 config.writeEntry("Mic",100-mic->value()); 85 config.writeEntry("Mic",100-mic->value());
86 config.writeEntry("Touch",touchsound->isChecked()); 86 config.writeEntry("Touch",touchsound->isChecked());
87 config.writeEntry("Key",keysound->isChecked()); 87 config.writeEntry("Key",keysound->isChecked());
88 88
89 setVolume(volume->value()); 89 setVolume(volume->value());
90 setMic(mic->value()); 90 setMic(mic->value());
91 91
92 config.setGroup("Record"); 92 config.setGroup("Record");
93 config.writeEntry("SampleRate",sampleRate->currentText()); 93 config.writeEntry("SampleRate",sampleRate->currentText());
94 config.writeEntry("Stereo",stereoCheckBox->isChecked()); 94 config.writeEntry("Stereo",stereoCheckBox->isChecked());
95 config.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); 95 config.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked());
96 96
97 QDialog::accept(); 97 QDialog::accept();
98} 98}
99 99
100void SoundSettings::setVolume(int v) 100void SoundSettings::setVolume(int v)
101{ 101{
102 Config config( "Sound" ); 102 Config config( "Sound" );
103 config.setGroup( "System" ); 103 config.setGroup( "System" );
104 config.writeEntry("Volume",100-v); 104 config.writeEntry("Volume",100-v);
105#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) 105#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
106 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << FALSE; 106 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << FALSE;
107#endif 107#endif
108} 108}
109 109
110void SoundSettings::setMic(int m) 110void SoundSettings::setMic(int m)
111{ 111{
112 Config config( "Sound" ); 112 Config config( "Sound" );
113 config.setGroup( "System" ); 113 config.setGroup( "System" );
114 config.writeEntry("Mic",100-m); 114 config.writeEntry("Mic",100-m);
115#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) 115#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
116 QCopEnvelope( "QPE/System", "micChange(bool)" ) << FALSE; 116 QCopEnvelope( "QPE/System", "micChange(bool)" ) << FALSE;
117#endif 117#endif
118} 118}
119 119
120void SoundSettings::volumeChanged( bool ) 120void SoundSettings::volumeChanged( bool )
121{ 121{
122 Config config( "Sound" ); 122 Config config( "Sound" );
123 config.setGroup( "System" ); 123 config.setGroup( "System" );
124 volume->setValue(100-config.readNumEntry("Volume")); 124 volume->setValue(100-config.readNumEntry("Volume"));
125} 125}
126 126
127void SoundSettings::micChanged( bool ) 127void SoundSettings::micChanged( bool )
128{ 128{
129 Config config( "Sound" ); 129 Config config( "Sound" );
130 config.setGroup( "System" ); 130 config.setGroup( "System" );
131 mic->setValue(100-config.readNumEntry("Mic")); 131 mic->setValue(100-config.readNumEntry("Mic"));
132} 132}
diff --git a/noncore/settings/sysinfo/sysinfo.pro b/noncore/settings/sysinfo/sysinfo.pro
index f14716e..95278ee 100644
--- a/noncore/settings/sysinfo/sysinfo.pro
+++ b/noncore/settings/sysinfo/sysinfo.pro
@@ -1,29 +1,30 @@
1TEMPLATE = app 1TEMPLATE = app
2CONFIG = qt warn_on release 2CONFIG = qt warn_on release
3DESTDIR = $(OPIEDIR)/bin 3DESTDIR = $(OPIEDIR)/bin
4HEADERS = memory.h \ 4HEADERS = memory.h \
5 graph.h \ 5 graph.h \
6 load.h \ 6 load.h \
7 storage.h \ 7 storage.h \
8 processinfo.h \ 8 processinfo.h \
9 processdetail.h \ 9 processdetail.h \
10 versioninfo.h \ 10 versioninfo.h \
11 sysinfo.h 11 sysinfo.h
12SOURCES = main.cpp \ 12SOURCES = main.cpp \
13 memory.cpp \ 13 memory.cpp \
14 graph.cpp \ 14 graph.cpp \
15 load.cpp \ 15 load.cpp \
16 storage.cpp \ 16 storage.cpp \
17 processinfo.cpp \ 17 processinfo.cpp \
18 processdetail.cpp \ 18 processdetail.cpp \
19 versioninfo.cpp \ 19 versioninfo.cpp \
20 sysinfo.cpp 20 sysinfo.cpp
21INTERFACES = 21INTERFACES =
22 22
23INCLUDEPATH += $(OPIEDIR)/include 23INCLUDEPATH += $(OPIEDIR)/include
24DEPENDPATH += $(OPIEDIR)/include 24DEPENDPATH += $(OPIEDIR)/include
25LIBS += -lqpe 25LIBS += -lqpe
26 26
27TARGET = sysinfo 27TARGET = sysinfo
28 28
29TRANSLATIONS = ../i18n/de/sysinfo.ts 29TRANSLATIONS = ../i18n/de/sysinfo.ts
30TRANSLATIONS = ../i18n/pt_BR/sysinfo.ts