Deleted the old unused class files.
ui/listitemdelegate.cpp \
ui/friendlistitemdelegate.cpp \
ui/searchdialog.cpp \
- ui/panelbase.cpp \
ui/panelbar.cpp \
ui/panelcontentstack.cpp \
ui/paneltab.cpp \
ui/listitem.h \
ui/listitemdelegate.h \
ui/searchdialog.h \
- ui/panelbase.h \
ui/panelbar.h \
ui/panelcommon.h \
ui/panelcontentstack.h \
+++ /dev/null
-/*
- Situare - A location system for Facebook
- Copyright (C) 2010 Ixonos Plc. Authors:
-
- Pekka Nissinen - pekka.nissinen@ixonos.com
-
- Situare is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2 as published by the Free Software Foundation.
-
- Situare is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Situare; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- USA.
-*/
-
-#include <QDebug>
-#include <QPainter>
-#include <QPalette>
-#include <QRect>
-
-#include "panelbase.h"
-
-PanelBase::PanelBase(QWidget *parent)
- : QWidget(parent)
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- m_menuDropShadowTile.load(":res/images/menu_bar_drop_shadow.png");
-
- QPalette pal = palette();
- pal.setColor(QPalette::Background, QColor(0, 0, 0, 128));
- setPalette(pal);
- setAutoFillBackground(true);
-}
-
-void PanelBase::paintEvent(QPaintEvent *event)
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- Q_UNUSED(event);
-
- QPainter painter(this);
-
- QRect shadowRect = QRect(0, 0, this->rect().width(), m_menuDropShadowTile.height());
- painter.drawTiledPixmap(shadowRect, m_menuDropShadowTile);
-}
+++ /dev/null
-/*
- Situare - A location system for Facebook
- Copyright (C) 2010 Ixonos Plc. Authors:
-
- Pekka Nissinen - pekka.nissinen@ixonos.com
-
- Situare is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2 as published by the Free Software Foundation.
-
- Situare is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Situare; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- USA.
-*/
-
-#ifndef PANELBASE_H
-#define PANELBASE_H
-
-#include <QPaintEvent>
-#include <QPixmap>
-#include <QWidget>
-
-///< @todo Base class? Might be misleading comment and does not tell about what this class does
-///< @todo Why not directly inheriting QStackedWidget?
-/**
- * @brief Base class for panel inner content
- *
- * @author Pekka Nissinen - pekka.nissinen@ixonos.com
- */
-class PanelBase : public QWidget
-{
- Q_OBJECT
-
-public:
- /**
- * @brief Constructor
- *
- * @param parent Parent
- */
- PanelBase(QWidget *parent = 0);
-
-/*******************************************************************************
- * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
- ******************************************************************************/
-protected:
- /**
- * @brief Draws the panel content base
- *
- * @param event Paint event
- */
- void paintEvent(QPaintEvent *event);
-
-/*******************************************************************************
- * DATA MEMBERS
- *******************************************************************************/
-private:
- QPixmap m_menuDropShadowTile; ///< Pixmap for menu drop shadow
-};
-
-#endif // PANELBASE_H
USA.
*/
-#include <QAbstractState>
#include <QDebug>
-#include <QVBoxLayout>
+#include <QPainter>
-#include "panelbase.h"
#include "panelcommon.h"
#include "panelcontentstack.h"
resize(PANEL_WIDTH, PANEL_HEIGHT);
- m_panelVBox = new QVBoxLayout(this);
- m_panelVBox->setMargin(0);
- m_panelVBox->setSpacing(0);
+ m_menuDropShadowTile.load(":res/images/menu_bar_drop_shadow.png");
- m_panelBase = new PanelBase(this);
- m_panelBase->setLayout(m_panelVBox);
- m_panelBase->resize(this->size());
+ QPalette pal = palette();
+ pal.setColor(QPalette::Background, QColor(0, 0, 0, 128));
+ setPalette(pal);
+ setAutoFillBackground(true);
+}
+
+void PanelContentStack::paintEvent(QPaintEvent *event)
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+ Q_UNUSED(event);
+
+ QPainter painter(this);
+
+ QRect shadowRect = QRect(0, 0, this->rect().width(), m_menuDropShadowTile.height());
+ painter.drawTiledPixmap(shadowRect, m_menuDropShadowTile);
}
void PanelContentStack::resizePanelContentStack(const QSize &size)
qDebug() << __PRETTY_FUNCTION__;
resize(PANEL_WIDTH, size.height() - PANEL_TOP_PADDING - PANEL_BOTTOM_PADDING);
-
- m_panelBase->resize(this->size());
}
#include <QStackedWidget>
-class QVBoxLayout;
-
-class PanelBase;
-
/**
* @brief Stack class for tabbed pabel widgets
*
PanelContentStack(QWidget *parent = 0);
/*******************************************************************************
+ * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
+ ******************************************************************************/
+protected:
+ /**
+ * @brief Draws the panel content base
+ *
+ * @param event Paint event
+ */
+ void paintEvent(QPaintEvent *event);
+
+/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
public slots:
* DATA MEMBERS
*******************************************************************************/
private:
- QVBoxLayout *m_panelVBox; ///< Vertical layout inside the panel
-
- PanelBase *m_panelBase; ///< Widget for panel base
+ QPixmap m_menuDropShadowTile; ///< Pixmap for menu drop shadow
};
#endif // PANELCONTENTSTACK_H