From d437899a4e4f822597c0979b7e54a4fc0fecbf9a Mon Sep 17 00:00:00 2001 From: mickeyl Date: Fri, 22 Apr 2005 10:55:19 +0000 Subject: - use OTaskbarApplet - scale icons --- (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 66e8f01..8925803 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -3,23 +3,23 @@              .=l. Copyright (c) 2002 Maximilian Reiss            .>+-=  _;:,     .>    :=|. This library is free software; you can -.> <,   >  .   <= redistribute it and/or modify it under -:=1 )Y*s>-.--   : the terms of the GNU Library General Public +.> <,   >  .   <= redistribute it and/or modify it under +:=1 )Y*s>-.--   : the terms of the GNU Library General Public .="- .-=="i,     .._ License as published by the Free Software - - .   .-<_>     .<> Foundation; either version 2 of the License, -     ._= =}       : or (at your option) any later version. + - .   .-<_>     .<> Foundation; version 2 of the License. +     ._= =}       :     .%+i>       _;_.     .i_,=:_.      -: PARTICULAR PURPOSE. See the GNU +    =_        +     =;=| MERCHANTABILITY or FITNESS FOR A +  _.=:.       :    :=>: PARTICULAR PURPOSE. See the GNU ..}^=.=       =       ; Library General Public License for more -++=   -.     .     .: details. +++=   -.     .     .: details.  :     =  ...= . :.=-  -.   .:....=;==+<; You should have received a copy of the GNU   -_. . .   )=.  = Library General Public License along with -    --        :-= this library; see the file COPYING.LIB. +   --        :-= this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -28,15 +28,19 @@ #include "bluezapplet.h" -#include +/* OPIE */ +#include +#include +#include +#include #include #include #include +using namespace Opie::Core; -#include -#include - +/* QT */ +#include #include #include #include @@ -46,18 +50,17 @@ #include #include +/* STD */ #include -using namespace Opie::Core; - namespace OpieTooth { BluezApplet::BluezApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { - setFixedHeight( 18 ); - setFixedWidth( 14 ); - bluezOnPixmap = Resource::loadPixmap( "bluetoothapplet/bluezon" ); - bluezOffPixmap = Resource::loadPixmap( "bluetoothapplet/bluezoff" ); - // bluezDiscoveryOnPixmap = Resource::loadPixmap( "bluetoothapplet/magglass" ); + setFixedHeight( AppLnk::smallIconSize() ); + setFixedWidth( AppLnk::smallIconSize() ); + bluezOnPixmap = Resource::loadImage( "bluetoothapplet/bluezon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); + bluezOffPixmap = Resource::loadImage( "bluetoothapplet/bluezoff" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); + //bluezDiscoveryOnPixmap = Resource::loadImage( "bluetoothapplet/magglass" )smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); startTimer(4000); btDevice = 0; bluezactive = false; @@ -71,6 +74,12 @@ namespace OpieTooth { } } +int BluezApplet::position() +{ + return 6; +} + + bool BluezApplet::checkBluezStatus() { if (btDevice) { if (btDevice->isLoaded() ) { @@ -220,3 +229,6 @@ namespace OpieTooth { } } }; + +EXPORT_OPIE_APPLET_v1( OpieTooth::BluezApplet ) + -- cgit v0.9.0.2