ui/zoombuttonpanel.cpp \
ui/searchdialog.cpp \
ui/panelbar.cpp \
+ ui/panelbase.cpp \
ui/panelcontentstack.cpp \
ui/paneltab.cpp \
ui/paneltabbar.cpp \
ui/listitemdelegate.h \
ui/searchdialog.h \
ui/panelbar.h \
+ ui/panelbase.h \
ui/panelcommon.h \
ui/panelcontentstack.h \
ui/paneltab.h \
#include "friendlistpanel.h"
FriendListPanel::FriendListPanel(QWidget *parent)
- : QWidget(parent),
+ : PanelBase(parent),
m_mainWindowIsTopmost(false),
m_somePanelIsOpen(false)
{
#ifndef FRIENDLISTPANEL_H
#define FRIENDLISTPANEL_H
-#include <QWidget>
+#include "panelbase.h"
class QLabel;
class QLineEdit;
* @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
* @author Sami Rämö - sami.ramo (at) ixonos.com
*/
-class FriendListPanel : public QWidget
+class FriendListPanel : public PanelBase
{
Q_OBJECT
*/
void routeToFriend(const GeoCoordinate &coordinates);
- /**
- * @brief Signal for requesting a panel to be opened
- *
- * @param widget Pointer to the widget that emitted the signal
- */
- void showPanelRequested(QWidget *widget);
-
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
--- /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 "panelbase.h"
+
+PanelBase::PanelBase(QWidget *parent)
+ : QWidget(parent)
+{
+ qDebug() << __PRETTY_FUNCTION__;
+}
--- /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 <QWidget>
+
+class ImageButton;
+
+/**
+ * @brief Base class for panels
+ *
+ * @author Pekka Nissinen - pekka.nissinen@ixonos.com
+ */
+class PanelBase : public QWidget
+{
+ Q_OBJECT
+
+public:
+ /**
+ * @brief Constructor
+ *
+ * @param parent Parent
+ */
+ PanelBase(QWidget *parent = 0);
+
+/*******************************************************************************
+ * SIGNALS
+ ******************************************************************************/
+signals:
+ /**
+ * @brief Signal for requesting a panel to be opened
+ *
+ * @param widget Pointer to the widget that emitted the signal
+ */
+ void showPanelRequested(QWidget *widget);
+
+/*******************************************************************************
+ * DATA MEMBERS
+ ******************************************************************************/
+protected:
+ QList<ImageButton *> m_contextButtonList;
+};
+#endif // PANELBASE_H
#include <QScrollArea>
#include <QVBoxLayout>
+#include "imagebutton.h"
#include "panelcommon.h"
#include "userinfo.h"
#include "userinfopanel.h"
UserInfoPanel::UserInfoPanel(QWidget *parent)
- : QWidget(parent)
+ : PanelBase(parent)
{
qDebug() << __PRETTY_FUNCTION__;
#ifndef USERPANEL_H
#define USERPANEL_H
-#include <QWidget>
-
+#include "panelbase.h"
#include "user/user.h"
class UserInfo;
* @author Katri Kaikkonen - katri.kaikkonen (at) ixonos.com
* @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
*/
-class UserInfoPanel : public QWidget
+class UserInfoPanel : public PanelBase
{
Q_OBJECT