00001 /* kasstartupitem.h 00002 ** 00003 ** Copyright (C) 2001-2004 Richard Moore <rich@kde.org> 00004 ** Contributor: Mosfet 00005 ** All rights reserved. 00006 ** 00007 ** KasBar is dual-licensed: you can choose the GPL or the BSD license. 00008 ** Short forms of both licenses are included below. 00009 */ 00010 00011 /* 00012 ** This program is free software; you can redistribute it and/or modify 00013 ** it under the terms of the GNU General Public License as published by 00014 ** the Free Software Foundation; either version 2 of the License, or 00015 ** (at your option) any later version. 00016 ** 00017 ** This program is distributed in the hope that it will be useful, 00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 ** GNU General Public License for more details. 00021 ** 00022 ** You should have received a copy of the GNU General Public License 00023 ** along with this program in a file called COPYING; if not, write to 00024 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00025 ** MA 02110-1301, USA. 00026 */ 00027 00028 /* 00029 ** Redistribution and use in source and binary forms, with or without 00030 ** modification, are permitted provided that the following conditions 00031 ** are met: 00032 ** 1. Redistributions of source code must retain the above copyright 00033 ** notice, this list of conditions and the following disclaimer. 00034 ** 2. Redistributions in binary form must reproduce the above copyright 00035 ** notice, this list of conditions and the following disclaimer in the 00036 ** documentation and/or other materials provided with the distribution. 00037 ** 00038 ** THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 00039 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00040 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00041 ** ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00042 ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00043 ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00044 ** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00045 ** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00046 ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00047 ** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00048 ** SUCH DAMAGE. 00049 */ 00050 00051 /* 00052 ** Bug reports and questions can be sent to kde-devel@kde.org 00053 */ 00054 // -*- c++ -*- 00055 00056 00057 #ifndef KASSTARTUPITEM_H 00058 #define KASSTARTUPITEM_H 00059 00060 #include <tqpixmap.h> 00061 #include <tqstring.h> 00062 #include "kasitem.h" 00063 00064 class Startup; 00065 class KasPopup; 00066 class TQTimer; 00067 00071 class KasStartupItem : public KasItem 00072 { 00073 Q_OBJECT 00074 00075 public: 00076 KasStartupItem( KasBar *parent, Startup::Ptr startup ); 00077 virtual ~KasStartupItem(); 00078 00079 TQPixmap icon() const; 00080 Startup::Ptr startup() const { return startup_; } 00081 00085 virtual void paint( TQPainter *p ); 00086 00087 protected slots: 00088 void aniTimerFired(); 00089 00090 private: 00091 Startup::Ptr startup_; 00092 TQTimer *aniTimer; 00093 int frame; 00094 }; 00095 00096 #endif // KASSTARTUPITEM_H 00097
1.6.1