Diffstat (limited to 'noncore/applets/pyquicklaunch') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/pyquicklaunch/pyquicklaunch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/applets/pyquicklaunch/pyquicklaunch.cpp b/noncore/applets/pyquicklaunch/pyquicklaunch.cpp index bcd2f0d..45eda4e 100644 --- a/noncore/applets/pyquicklaunch/pyquicklaunch.cpp +++ b/noncore/applets/pyquicklaunch/pyquicklaunch.cpp @@ -1,46 +1,46 @@ /********************************************************************** ** Copyright (C) 2004 Michael 'Mickey' Lauer <mickey@vanille.de> ** All rights reserved. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include "pyquicklaunch.h" /* OPIE */ #include <opie2/odebug.h> +#include <opie2/oresource.h> #include <opie2/otaskbarapplet.h> #include <qpe/config.h> #include <qpe/qpeapplication.h> -#include <qpe/resource.h> using namespace Opie::Core; /* QT */ #include <qcopchannel_qws.h> #include <qpainter.h> #include <qframe.h> #include <qfile.h> #include <qtimer.h> /* STD */ #include <pwd.h> #include <sys/types.h> #include <unistd.h> PyQuicklaunchControl::PyQuicklaunchControl( PyQuicklaunchApplet *applet, QWidget *parent, const char *name ) : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) { setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); setFixedSize( sizeHint() ); setFocusPolicy( QWidget::NoFocus ); } @@ -61,50 +61,50 @@ void PyQuicklaunchControl::show( bool ) void PyQuicklaunchControl::readConfig() { Config cfg( "qpe" ); cfg.setGroup( "PyQuicklaunch" ); // ... } void PyQuicklaunchControl::writeConfigEntry( const char *entry, int val ) { Config cfg( "qpe" ); cfg.setGroup( "PyQuicklaunch" ); cfg.writeEntry( entry, val ); } //=========================================================================== PyQuicklaunchApplet::PyQuicklaunchApplet( QWidget *parent, const char *name ) : QWidget( parent, name ), online( false ) { setFixedHeight( 18 ); setFixedWidth( 14 ); status = new PyQuicklaunchControl( this, this, "Python Quicklaunch Status" ); - _online = Resource::loadPixmap( "pyquicklaunch/online" ); - _offline = Resource::loadPixmap( "pyquicklaunch/offline" ); + _online = Opie::Core::OResource::loadPixmap( "pyquicklaunch/online", Opie::Core::OResource::SmallIcon ); + _offline = Opie::Core::OResource::loadPixmap( "pyquicklaunch/offline", Opie::Core::OResource::SmallIcon ); _fifoName = QString().sprintf( "/tmp/mickeys-quicklauncher-%s", ::getpwuid( ::getuid() )->pw_name ); odebug << "PyQuicklaunchApplet fifo name = '" << _fifoName << "'" << oendl; _fifo.setName( _fifoName ); _control = new QCopChannel( "QPE/PyLauncher", parent, "PyLauncher QCop Control Channel" ); connect( _control, SIGNAL(received(const QCString&,const QByteArray&)), this, SLOT(receivedMessage(const QCString&,const QByteArray&) ) ); } PyQuicklaunchApplet::~PyQuicklaunchApplet() { } void PyQuicklaunchApplet::receivedMessage( const QCString& msg, const QByteArray& data ) { odebug << "receivedMessage = '" << msg << "' " << oendl; if ( msg == "setOnline()" ) { online = true; |