summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-25 02:34:47 (UTC)
committer llornkcor <llornkcor>2002-06-25 02:34:47 (UTC)
commit6a11f8d2391d28b921ead3872c7af84453946629 (patch) (side-by-side diff)
treebc06ed3c1e937d444361feb44938a00bb1f9bbc4
parent4bf0efd9f4c6963b48be4a7b836a3c1c46431814 (diff)
downloadopie-6a11f8d2391d28b921ead3872c7af84453946629.zip
opie-6a11f8d2391d28b921ead3872c7af84453946629.tar.gz
opie-6a11f8d2391d28b921ead3872c7af84453946629.tar.bz2
added zaurus, and made has_wav_alarm the default as zaurus is special case, because it has a non standard alarm/speaker
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/volumeapplet/volume.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp
index a000087..b047877 100644
--- a/core/applets/volumeapplet/volume.cpp
+++ b/core/applets/volumeapplet/volume.cpp
@@ -156,72 +156,76 @@ static const char * alarm_xpm[] = {
"1 c #823102",
"2 c #B1AC6B",
"3 c #F7F710",
"4 c #838204",
" ",
" ",
" 4'4/ ",
" /-^= ",
" 42{4>4 ",
" '2|+*$44 ",
" +2&3+$1*44 ",
" (%_}_+/$:>/4 ",
" 4%_}3+#;>:*4 ",
" 4%_}&+#[1$/4 ",
" 4%_,2')[~~>4 ",
" 4%33'4#@~1>4 ",
" 4%3344#[:>/4 ",
" 42&_3'4#@>:*44 ",
" 42|}}3'4#[;$)$44 ",
"444{]]2^~~:!!#.@##/ ",
"4444-%*:==!!=...../ ",
" /:[.. ",
" /@. ",
" "};
VolumeControl::VolumeControl ( VolumeApplet *icon, bool /*showMic*/, QWidget *parent, const char *name )
: QFrame ( parent, name, WStyle_StaysOnTop | WType_Popup )
{
m_icon = icon;
bool has_wav_alarm = false;
- switch ( ODevice::inst ( )-> model ( )) {
+ switch ( ODevice::inst ( )-> model ( )) { // we need to add other devices eventually
case OMODEL_iPAQ_H31xx:
case OMODEL_iPAQ_H36xx:
case OMODEL_iPAQ_H37xx:
case OMODEL_iPAQ_H38xx:
has_wav_alarm = true;
break;
+ case OMODEL_Zaurus_SL5000:
+ has_wav_alarm = false; //poor guys probably feeling left out...
+ break;
default:
+ has_wav_alarm = true; //lets just presume
break;
}
setFrameStyle ( QFrame::PopupPanel | QFrame::Raised );
QGridLayout *grid = new QGridLayout ( this, 1, 1, 6, 4 );
grid-> setSpacing ( 4 );
grid-> setMargin ( 6 );
QVBoxLayout *vbox;
QLabel *l;
vbox = new QVBoxLayout ( );
vbox-> setSpacing ( 4 );
grid-> addLayout ( vbox, 1, 0 );
upButton = new QPushButton ( this );
upButton-> setSizePolicy ( QSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding ));
upButton-> setPixmap ( Resource::loadPixmap ( "up" ));
upButton-> setFocusPolicy ( QWidget::NoFocus );
vbox-> addWidget ( upButton );
downButton = new QPushButton ( this );
downButton-> setSizePolicy ( QSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding ));
downButton-> setPixmap ( Resource::loadPixmap ( "down" ));
downButton-> setFocusPolicy ( QWidget::NoFocus );
vbox-> addWidget ( downButton );
volSlider = new QSlider ( this );