From 02f08644ac6270f5db18eeaa0177a5dcdd0ff2b8 Mon Sep 17 00:00:00 2001 From: beardog_uk Date: Sun, 1 Feb 2009 16:20:15 +0000 Subject: [PATCH] plugin system: first demo version git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@969 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MainWindow.cpp | 2 ++ retroshare-gui/src/gui/MainWindow.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index 0b8bbdb3d..b462d515c 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -169,6 +169,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags) /* Create the Main pages and actions */ QActionGroup *grp = new QActionGroup(this); + ui.stackPages->add(pluginsPage = new PluginsPage(ui.stackPages), + createPageAction(QIcon(IMAGE_NETWORK), tr("Plugins"), grp)); NewsFeed *newsFeed = NULL; ui.stackPages->add(newsFeed = new NewsFeed(ui.stackPages), diff --git a/retroshare-gui/src/gui/MainWindow.h b/retroshare-gui/src/gui/MainWindow.h index acb0ffbd2..78324abb8 100644 --- a/retroshare-gui/src/gui/MainWindow.h +++ b/retroshare-gui/src/gui/MainWindow.h @@ -38,6 +38,7 @@ #include "StatisticDialog.h" #include "MessengerWindow.h" #include "ApplicationWindow.h" +#include "PluginsPage.h" #include "Preferences/PreferencesWindow.h" #include "Settings/gsettingswin.h" @@ -76,7 +77,8 @@ public: Messages, /** Messages page. */ Links, /** Links page. */ Channels, /** Channels page. */ - Forums /** Forums page. */ + Forums , /** Forums page. */ + Plugins }; @@ -103,6 +105,7 @@ public: //StatisticDialog *statisticDialog; MessengerWindow *messengerWindow; ApplicationWindow *applicationWindow; + PluginsPage* pluginsPage ; SMPlayer * mSMPlayer;