author | mickeyl <mickeyl> | 2005-06-09 14:30:24 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-06-09 14:30:24 (UTC) |
commit | 855e272549619c02efac516b2cd17828d7a3ad68 (patch) (side-by-side diff) | |
tree | e16d36f3a0a85ae847b7cf9699061c8990991a55 /noncore/applets/pcmcia/pcmcia.cpp | |
parent | 9a4b3a90fdd4ac0288034657d4818e3d10ed0193 (diff) | |
download | opie-855e272549619c02efac516b2cd17828d7a3ad68.zip opie-855e272549619c02efac516b2cd17828d7a3ad68.tar.gz opie-855e272549619c02efac516b2cd17828d7a3ad68.tar.bz2 |
update dialog and start with code reading possible PCMCIA devices and classes
Diffstat (limited to 'noncore/applets/pcmcia/pcmcia.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/pcmcia/pcmcia.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/applets/pcmcia/pcmcia.cpp b/noncore/applets/pcmcia/pcmcia.cpp index 4fcc189..6c18e86 100644 --- a/noncore/applets/pcmcia/pcmcia.cpp +++ b/noncore/applets/pcmcia/pcmcia.cpp @@ -132,5 +132,5 @@ void PcmciaManager::mousePressEvent( QMouseEvent* ) submenu->insertItem( "&Resume", RESUME+i*100 ); submenu->insertItem( "&Configure", CONFIGURE+i*100 ); - + submenu->setItemEnabled( EJECT+i*100, !it.current()->isEmpty() ); submenu->setItemEnabled( INSERT+i*100, it.current()->isEmpty() ); @@ -138,5 +138,5 @@ void PcmciaManager::mousePressEvent( QMouseEvent* ) submenu->setItemEnabled( RESUME+i*100, !it.current()->isEmpty() && it.current()->isSuspended() ); submenu->setItemEnabled( CONFIGURE+i*100, !it.current()->isEmpty() ); - + connect( submenu, SIGNAL(activated(int)), this, SLOT(userCardAction(int)) ); menu->insertItem( tr( "%1: %2" ).arg( i++ ).arg( it.current()->identity() ), submenu, 1 ); @@ -171,5 +171,5 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) bool newCard = true; OPcmciaSocket* theCard = 0; - + while ( it.current() && newCard ) { @@ -235,5 +235,5 @@ void PcmciaManager::paintEvent( QPaintEvent * ) QPainter p( this ); odebug << "sockets = " << OPcmciaSystem::instance()->count() << ", cards = " << OPcmciaSystem::instance()->cardCount() << oendl; - + if ( OPcmciaSystem::instance()->cardCount() ) { @@ -259,8 +259,8 @@ void PcmciaManager::userCardAction( int action ) { odebug << "user action requested. action = " << action << oendl; - + int socket = action / 100; int what = action % 100; - + switch ( what ) { |