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 PANELSIDEBAR_H 00024 #define PANELSIDEBAR_H 00025 00026 #include <QPaintEvent> 00027 #include <QPixmap> 00028 #include <QRect> 00029 #include <QSize> 00030 #include <QWidget> 00031 00032 #include "panelcommon.h" 00033 00042 class PanelSideBar : public QWidget 00043 { 00044 Q_OBJECT 00045 00046 public: 00053 PanelSideBar(QWidget *parent = 0, Side side = LEFT); 00054 00055 /******************************************************************************* 00056 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS 00057 ******************************************************************************/ 00058 protected: 00064 void paintEvent(QPaintEvent *); 00065 00066 /******************************************************************************* 00067 * MEMBER FUNCTIONS AND SLOTS 00068 ******************************************************************************/ 00069 public slots: 00075 void resizeSideBar(const QSize &size); 00076 00077 /******************************************************************************* 00078 * DATA MEMBERS 00079 ******************************************************************************/ 00080 private: 00081 QPixmap m_menuDropShadowTile; 00082 QPixmap m_panelMiddleTile; 00083 QPixmap m_panelTile; 00084 QRect topRect; 00085 QRect middleRect; 00086 QRect bottomRect; 00087 }; 00088 00089 #endif // PANELSIDEBAR_H