00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Kaj Wallin - kaj.wallin@ixonos.com 00006 Pekka Nissinen - pekka.nissinen@ixonos.com 00007 00008 Situare is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 version 2 as published by the Free Software Foundation. 00011 00012 Situare is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with Situare; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00020 USA. 00021 */ 00022 00023 #ifndef PANELBAR_H 00024 #define PANELBAR_H 00025 00026 #include <QWidget> 00027 00034 class PanelBar : public QWidget 00035 { 00036 Q_OBJECT 00037 00038 public: 00044 PanelBar(QWidget *parent = 0); 00045 00046 /******************************************************************************* 00047 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS 00048 ******************************************************************************/ 00049 protected: 00055 void paintEvent(QPaintEvent *event); 00056 00057 /******************************************************************************* 00058 * MEMBER FUNCTIONS AND SLOTS 00059 ******************************************************************************/ 00060 public slots: 00066 void resizeBar(const QSize &size); 00067 00068 /******************************************************************************* 00069 * DATA MEMBERS 00070 ******************************************************************************/ 00071 private: 00072 QPixmap m_menuDropShadowTile; 00073 QPixmap m_barTile; 00074 00075 QRect m_barRect; 00076 }; 00077 #endif // PANELBAR_H