Removed the GUI part of the links cloud from building. You can add it again with

CONFIG += use_links

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3837 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-20 20:58:35 +00:00
parent 56bdd3b1ea
commit 5d2a649e0a
5 changed files with 81 additions and 62 deletions

View File

@ -1,4 +1,5 @@
CONFIG += qt gui uic qrc resources uitools idle bitdht # framecatcher# blogs
#CONFIG += use_links
QT += network xml script opengl
TEMPLATE = app
@ -181,8 +182,6 @@ HEADERS += rshare.h \
gui/RSHumanReadableDelegate.h \
gui/TurtleRouterDialog.h \
gui/AboutDialog.h \
gui/AddLinksDialog.h \
gui/LinksDialog.h \
gui/ForumsDialog.h \
gui/forums/ForumDetails.h \
gui/forums/EditForumDetails.h \
@ -195,7 +194,7 @@ HEADERS += rshare.h \
gui/RemoteDirModel.h \
gui/RetroShareLink.h \
gui/SearchTreeWidget.h \
gui/SendLinkDialog.h \
# gui/SendLinkDialog.h \
gui/SearchDialog.h \
gui/SharedFilesDialog.h \
gui/ShareManager.h \
@ -327,14 +326,12 @@ HEADERS += rshare.h \
FORMS += gui/StartDialog.ui \
gui/GenCertDialog.ui \
gui/AboutDialog.ui \
gui/AddLinksDialog.ui \
gui/QuickStartWizard.ui \
gui/NetworkDialog.ui \
gui/TransfersDialog.ui \
gui/ForumsDialog.ui \
gui/MainWindow.ui \
gui/TurtleRouterDialog.ui \
gui/LinksDialog.ui \
gui/forums/CreateForum.ui \
gui/forums/CreateForumMsg.ui \
gui/forums/ForumDetails.ui \
@ -344,7 +341,7 @@ FORMS += gui/StartDialog.ui \
gui/MessengerWindow.ui \
gui/PeersDialog.ui \
gui/SearchDialog.ui \
gui/SendLinkDialog.ui \
# gui/SendLinkDialog.ui \
gui/SharedFilesDialog.ui \
gui/ShareManager.ui \
gui/ShareDialog.ui \
@ -418,7 +415,6 @@ SOURCES += main.cpp \
gui/mainpagestack.cpp \
gui/TurtleRouterDialog.cpp \
gui/MainWindow.cpp \
gui/LinksDialog.cpp \
gui/ForumsDialog.cpp \
gui/forums/ForumDetails.cpp \
gui/forums/EditForumDetails.cpp \
@ -433,8 +429,7 @@ SOURCES += main.cpp \
gui/RetroShareLink.cpp \
gui/SearchTreeWidget.cpp \
gui/SearchDialog.cpp \
gui/SendLinkDialog.cpp \
gui/AddLinksDialog.cpp \
# gui/SendLinkDialog.cpp \
gui/SharedFilesDialog.cpp \
gui/ShareManager.cpp \
gui/ShareDialog.cpp \
@ -606,28 +601,40 @@ HEADERS += gui/unfinished/blogs/BlogsDialog.h \
gui/unfinished/blogs/CreateBlogMsg.h \
gui/unfinished/blogs/BlogsMsgItem.h \
gui/unfinished/blogs/BlogDetails.h \
gui/feeds/BlogNewItem.h \
gui/feeds/BlogMsgItem.h \
gui/feeds/BlogNewItem.h \
gui/feeds/BlogMsgItem.h \
FORMS += gui/unfinished/blogs/BlogsDialog.ui \
gui/unfinished/blogs/CreateBlog.ui \
gui/unfinished/blogs/CreateBlogMsg.ui \
gui/unfinished/blogs/BlogsMsgItem.ui \
gui/unfinished/blogs/BlogDetails.ui \
gui/feeds/BlogNewItem.ui \
gui/feeds/BlogMsgItem.ui \
gui/feeds/BlogNewItem.ui \
gui/feeds/BlogMsgItem.ui \
SOURCES += gui/unfinished/blogs/BlogsDialog.cpp \
gui/unfinished/blogs/CreateBlog.cpp \
gui/unfinished/blogs/CreateBlogMsg.cpp \
gui/unfinished/blogs/BlogsMsgItem.cpp \
gui/unfinished/blogs/BlogDetails.cpp \
gui/feeds/BlogNewItem.cpp \
gui/feeds/BlogMsgItem.cpp \
gui/feeds/BlogNewItem.cpp \
gui/feeds/BlogMsgItem.cpp \
DEFINES *= BLOGS
DEFINES += BLOGS
}
use_links {
HEADERS += gui/AddLinksDialog.h \
gui/LinksDialog.h
FORMS += gui/AddLinksDialog.ui \
gui/LinksDialog.ui
SOURCES += gui/AddLinksDialog.cpp \
gui/LinksDialog.cpp
DEFINES += RS_USE_LINKS
}
unfinished {

View File

@ -43,7 +43,9 @@
#include "PluginsPage.h"
#include "ShareManager.h"
#include "NetworkView.h"
#ifdef RS_USE_LINKS
#include "LinksDialog.h"
#endif
#include "ForumsDialog.h"
#include "PeersDialog.h"
#include "HelpDialog.h"
@ -222,25 +224,25 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
ui.stackPages->add(channelFeed = new ChannelFeed(ui.stackPages),
channelAction = createPageAction(QIcon(IMAGE_CHANNELS), tr("Channels"), grp));
#ifdef BLOGS
#ifdef BLOGS
ui.stackPages->add(blogsFeed = new BlogsDialog(ui.stackPages),
createPageAction(QIcon(IMAGE_BLOGS), tr("Blogs"), grp));
#endif
#endif
ui.stackPages->add(forumsDialog = new ForumsDialog(ui.stackPages),
forumAction = createPageAction(QIcon(IMAGE_FORUMS), tr("Forums"), grp));
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), grp));
#endif
#endif
#ifndef RS_RELEASE_VERSION
#ifdef PLUGINMGR
#ifndef RS_RELEASE_VERSION
#ifdef PLUGINMGR
ui.stackPages->add(pluginsPage = new PluginsPage(ui.stackPages),
createPageAction(QIcon(IMAGE_PLUGINS), tr("Plugins"), grp));
#endif
#endif
#endif
#endif
/* Create the toolbar */
ui.toolBar->addActions(grp->actions());
@ -637,7 +639,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
case Messages:
Page = _instance->messagesDialog;
break;
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
case Links:
Page = _instance->linksDialog;
break;
@ -691,7 +693,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
if (page == _instance->messagesDialog) {
return Messages;
}
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
if (page == _instance->linksDialog) {
return Links;
}
@ -731,7 +733,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
return _instance->sharedfilesDialog;
case Messages:
return _instance->messagesDialog;
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
case Links:
return _instance->linksDialog;
#endif

View File

@ -49,7 +49,7 @@ class PluginsPage;
class ChannelFeed;
class BandwidthGraph;
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
class LinksDialog;
#endif
@ -80,7 +80,7 @@ public:
#ifdef BLOGS
Blogs = 8, /** Blogs page. */
#endif
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
Links = 9, /** Links page. */
#endif
};
@ -117,7 +117,7 @@ public:
ChannelFeed *channelFeed;
Idle *idle;
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
LinksDialog *linksDialog;
#endif

View File

@ -31,7 +31,9 @@
#include "util/RsAction.h"
#include "msgs/MessageComposer.h"
#include "settings/rsharesettings.h"
#ifdef RS_USE_LINKS
#include "AddLinksDialog.h"
#endif
#include "RetroShareLink.h"
#include "RemoteDirModel.h"
#include "common/PeerDefs.h"
@ -202,10 +204,12 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
connect( sendlinkAct , SIGNAL( triggered() ), this, SLOT( sendLinkTo( ) ) );
sendhtmllinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links (HTML)" ), this );
connect( sendhtmllinkAct , SIGNAL( triggered() ), this, SLOT( sendHtmlLinkTo( ) ) );
#ifdef RS_USE_LINKS
sendlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links to Cloud" ), this );
connect( sendlinkCloudAct , SIGNAL( triggered() ), this, SLOT( sendLinkToCloud( ) ) );
addlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Add Links to Cloud" ), this );
connect( addlinkCloudAct , SIGNAL( triggered() ), this, SLOT( addLinkToCloud( ) ) );
#endif
openfileAct = new QAction(QIcon(IMAGE_OPENFILE), tr("Open File"), this);
connect(openfileAct, SIGNAL(triggered()), this, SLOT(openfile()));
openfolderAct = new QAction(QIcon(IMAGE_OPENFOLDER), tr("Open Folder"), this);
@ -494,6 +498,7 @@ void SharedFilesDialog::sendHtmlLinkTo()
//
//}
#ifdef RS_USE_LINKS
void SharedFilesDialog::sendLinkToCloud()
{
copyLinkLocal ();
@ -516,6 +521,7 @@ void SharedFilesDialog::addLinkToCloud()
/* window will destroy itself! */
}
#endif
void SharedFilesDialog::playselectedfiles()
{
@ -680,7 +686,7 @@ void SharedFilesDialog::sharedDirTreeWidgetContextMenu( QPoint point )
contextMnu.addAction(sendlinkAct);
// contextMnu.addAction(sendhtmllinkAct);
contextMnu.addSeparator();
#ifndef RS_RELEASE_VERSION
#ifdef RS_USE_LINKS
contextMnu.addAction(sendlinkCloudAct);
contextMnu.addAction(addlinkCloudAct);
contextMnu.addSeparator();

View File

@ -64,8 +64,10 @@ private slots:
void sendLinkTo();
void sendremoteLinkTo();
void sendHtmlLinkTo();
#ifdef RS_USE_LINKS
void sendLinkToCloud();
void addLinkToCloud();
#endif
void showFrame(bool show);
void showFrameRemote(bool show);
@ -106,8 +108,10 @@ private:
QAction* copylinklocalAct;
QAction* sendlinkAct;
QAction* sendhtmllinkAct;
#ifdef RS_USE_LINKS
QAction* sendlinkCloudAct;
QAction* addlinkCloudAct;
#endif
QAction* sendchatlinkAct;
QAction* copylinklocalhtmlAct;