mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
56bdd3b1ea
commit
5d2a649e0a
@ -1,4 +1,5 @@
|
|||||||
CONFIG += qt gui uic qrc resources uitools idle bitdht # framecatcher# blogs
|
CONFIG += qt gui uic qrc resources uitools idle bitdht # framecatcher# blogs
|
||||||
|
#CONFIG += use_links
|
||||||
QT += network xml script opengl
|
QT += network xml script opengl
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
@ -66,11 +67,11 @@ win32-x-g++ {
|
|||||||
OBJECTS_DIR = temp/win32-x-g++/obj
|
OBJECTS_DIR = temp/win32-x-g++/obj
|
||||||
|
|
||||||
LIBS += ../../libretroshare/src/lib.win32xgcc/libretroshare.a
|
LIBS += ../../libretroshare/src/lib.win32xgcc/libretroshare.a
|
||||||
LIBS += ../../../../lib/win32-x-g++-v0.5/libssl.a
|
LIBS += ../../../../lib/win32-x-g++-v0.5/libssl.a
|
||||||
LIBS += ../../../../lib/win32-x-g++-v0.5/libcrypto.a
|
LIBS += ../../../../lib/win32-x-g++-v0.5/libcrypto.a
|
||||||
LIBS += ../../../../lib/win32-x-g++-v0.5/libgpgme.dll.a
|
LIBS += ../../../../lib/win32-x-g++-v0.5/libgpgme.dll.a
|
||||||
LIBS += ../../../../lib/win32-x-g++-v0.5/libminiupnpc.a
|
LIBS += ../../../../lib/win32-x-g++-v0.5/libminiupnpc.a
|
||||||
LIBS += ../../../../lib/win32-x-g++-v0.5/libz.a
|
LIBS += ../../../../lib/win32-x-g++-v0.5/libz.a
|
||||||
LIBS += -L${HOME}/.wine/drive_c/pthreads/lib -lpthreadGCE2
|
LIBS += -L${HOME}/.wine/drive_c/pthreads/lib -lpthreadGCE2
|
||||||
LIBS += -lQtUiTools
|
LIBS += -lQtUiTools
|
||||||
LIBS += -lws2_32 -luuid -lole32 -liphlpapi -lcrypt32 -gdi32
|
LIBS += -lws2_32 -luuid -lole32 -liphlpapi -lcrypt32 -gdi32
|
||||||
@ -93,7 +94,7 @@ win32 {
|
|||||||
#QTPLUGIN += qjpeg
|
#QTPLUGIN += qjpeg
|
||||||
|
|
||||||
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
||||||
LIBS += -L"../../../../lib"
|
LIBS += -L"../../../../lib"
|
||||||
LIBS += -lssl -lcrypto -lgpgme -lpthreadGC2d -lminiupnpc -lz
|
LIBS += -lssl -lcrypto -lgpgme -lpthreadGC2d -lminiupnpc -lz
|
||||||
# added after bitdht
|
# added after bitdht
|
||||||
# LIBS += -lws2_32
|
# LIBS += -lws2_32
|
||||||
@ -112,7 +113,7 @@ win32 {
|
|||||||
|
|
||||||
macx {
|
macx {
|
||||||
# ENABLE THIS OPTION FOR Univeral Binary BUILD.
|
# ENABLE THIS OPTION FOR Univeral Binary BUILD.
|
||||||
# CONFIG += ppc x86
|
# CONFIG += ppc x86
|
||||||
|
|
||||||
CONFIG += version_detail_bash_script
|
CONFIG += version_detail_bash_script
|
||||||
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
||||||
@ -152,12 +153,12 @@ DEPENDPATH += . \
|
|||||||
gui\bwgraph \
|
gui\bwgraph \
|
||||||
gui\chat \
|
gui\chat \
|
||||||
gui\connect \
|
gui\connect \
|
||||||
gui\images \
|
gui\images \
|
||||||
gui\common \
|
gui\common \
|
||||||
gui\toaster \
|
gui\toaster \
|
||||||
gui\help\browser \
|
gui\help\browser \
|
||||||
gui\elastic
|
gui\elastic
|
||||||
|
|
||||||
INCLUDEPATH += ../../libretroshare/src/
|
INCLUDEPATH += ../../libretroshare/src/
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
@ -181,8 +182,6 @@ HEADERS += rshare.h \
|
|||||||
gui/RSHumanReadableDelegate.h \
|
gui/RSHumanReadableDelegate.h \
|
||||||
gui/TurtleRouterDialog.h \
|
gui/TurtleRouterDialog.h \
|
||||||
gui/AboutDialog.h \
|
gui/AboutDialog.h \
|
||||||
gui/AddLinksDialog.h \
|
|
||||||
gui/LinksDialog.h \
|
|
||||||
gui/ForumsDialog.h \
|
gui/ForumsDialog.h \
|
||||||
gui/forums/ForumDetails.h \
|
gui/forums/ForumDetails.h \
|
||||||
gui/forums/EditForumDetails.h \
|
gui/forums/EditForumDetails.h \
|
||||||
@ -195,7 +194,7 @@ HEADERS += rshare.h \
|
|||||||
gui/RemoteDirModel.h \
|
gui/RemoteDirModel.h \
|
||||||
gui/RetroShareLink.h \
|
gui/RetroShareLink.h \
|
||||||
gui/SearchTreeWidget.h \
|
gui/SearchTreeWidget.h \
|
||||||
gui/SendLinkDialog.h \
|
# gui/SendLinkDialog.h \
|
||||||
gui/SearchDialog.h \
|
gui/SearchDialog.h \
|
||||||
gui/SharedFilesDialog.h \
|
gui/SharedFilesDialog.h \
|
||||||
gui/ShareManager.h \
|
gui/ShareManager.h \
|
||||||
@ -222,7 +221,7 @@ HEADERS += rshare.h \
|
|||||||
util/RetroStyleLabel.h \
|
util/RetroStyleLabel.h \
|
||||||
util/dllexport.h \
|
util/dllexport.h \
|
||||||
util/NonCopyable.h \
|
util/NonCopyable.h \
|
||||||
util/rsutildll.h \
|
util/rsutildll.h \
|
||||||
util/dllexport.h \
|
util/dllexport.h \
|
||||||
util/global.h \
|
util/global.h \
|
||||||
util/rsqtutildll.h \
|
util/rsqtutildll.h \
|
||||||
@ -327,14 +326,12 @@ HEADERS += rshare.h \
|
|||||||
FORMS += gui/StartDialog.ui \
|
FORMS += gui/StartDialog.ui \
|
||||||
gui/GenCertDialog.ui \
|
gui/GenCertDialog.ui \
|
||||||
gui/AboutDialog.ui \
|
gui/AboutDialog.ui \
|
||||||
gui/AddLinksDialog.ui \
|
|
||||||
gui/QuickStartWizard.ui \
|
gui/QuickStartWizard.ui \
|
||||||
gui/NetworkDialog.ui \
|
gui/NetworkDialog.ui \
|
||||||
gui/TransfersDialog.ui \
|
gui/TransfersDialog.ui \
|
||||||
gui/ForumsDialog.ui \
|
gui/ForumsDialog.ui \
|
||||||
gui/MainWindow.ui \
|
gui/MainWindow.ui \
|
||||||
gui/TurtleRouterDialog.ui \
|
gui/TurtleRouterDialog.ui \
|
||||||
gui/LinksDialog.ui \
|
|
||||||
gui/forums/CreateForum.ui \
|
gui/forums/CreateForum.ui \
|
||||||
gui/forums/CreateForumMsg.ui \
|
gui/forums/CreateForumMsg.ui \
|
||||||
gui/forums/ForumDetails.ui \
|
gui/forums/ForumDetails.ui \
|
||||||
@ -344,7 +341,7 @@ FORMS += gui/StartDialog.ui \
|
|||||||
gui/MessengerWindow.ui \
|
gui/MessengerWindow.ui \
|
||||||
gui/PeersDialog.ui \
|
gui/PeersDialog.ui \
|
||||||
gui/SearchDialog.ui \
|
gui/SearchDialog.ui \
|
||||||
gui/SendLinkDialog.ui \
|
# gui/SendLinkDialog.ui \
|
||||||
gui/SharedFilesDialog.ui \
|
gui/SharedFilesDialog.ui \
|
||||||
gui/ShareManager.ui \
|
gui/ShareManager.ui \
|
||||||
gui/ShareDialog.ui \
|
gui/ShareDialog.ui \
|
||||||
@ -353,7 +350,7 @@ FORMS += gui/StartDialog.ui \
|
|||||||
gui/HelpDialog.ui \
|
gui/HelpDialog.ui \
|
||||||
gui/InfoDialog.ui \
|
gui/InfoDialog.ui \
|
||||||
gui/DetailsDialog.ui \
|
gui/DetailsDialog.ui \
|
||||||
gui/bwgraph/bwgraph.ui \
|
gui/bwgraph/bwgraph.ui \
|
||||||
gui/profile/ProfileView.ui \
|
gui/profile/ProfileView.ui \
|
||||||
gui/profile/ProfileEdit.ui \
|
gui/profile/ProfileEdit.ui \
|
||||||
gui/profile/ProfileWidget.ui \
|
gui/profile/ProfileWidget.ui \
|
||||||
@ -418,7 +415,6 @@ SOURCES += main.cpp \
|
|||||||
gui/mainpagestack.cpp \
|
gui/mainpagestack.cpp \
|
||||||
gui/TurtleRouterDialog.cpp \
|
gui/TurtleRouterDialog.cpp \
|
||||||
gui/MainWindow.cpp \
|
gui/MainWindow.cpp \
|
||||||
gui/LinksDialog.cpp \
|
|
||||||
gui/ForumsDialog.cpp \
|
gui/ForumsDialog.cpp \
|
||||||
gui/forums/ForumDetails.cpp \
|
gui/forums/ForumDetails.cpp \
|
||||||
gui/forums/EditForumDetails.cpp \
|
gui/forums/EditForumDetails.cpp \
|
||||||
@ -433,8 +429,7 @@ SOURCES += main.cpp \
|
|||||||
gui/RetroShareLink.cpp \
|
gui/RetroShareLink.cpp \
|
||||||
gui/SearchTreeWidget.cpp \
|
gui/SearchTreeWidget.cpp \
|
||||||
gui/SearchDialog.cpp \
|
gui/SearchDialog.cpp \
|
||||||
gui/SendLinkDialog.cpp \
|
# gui/SendLinkDialog.cpp \
|
||||||
gui/AddLinksDialog.cpp \
|
|
||||||
gui/SharedFilesDialog.cpp \
|
gui/SharedFilesDialog.cpp \
|
||||||
gui/ShareManager.cpp \
|
gui/ShareManager.cpp \
|
||||||
gui/ShareDialog.cpp \
|
gui/ShareDialog.cpp \
|
||||||
@ -473,7 +468,7 @@ SOURCES += main.cpp \
|
|||||||
gui/profile/ProfileView.cpp \
|
gui/profile/ProfileView.cpp \
|
||||||
gui/profile/ProfileEdit.cpp \
|
gui/profile/ProfileEdit.cpp \
|
||||||
gui/profile/ProfileWidget.cpp \
|
gui/profile/ProfileWidget.cpp \
|
||||||
gui/profile/StatusMessage.cpp \
|
gui/profile/StatusMessage.cpp \
|
||||||
gui/channels/CreateChannel.cpp \
|
gui/channels/CreateChannel.cpp \
|
||||||
gui/channels/CreateChannelMsg.cpp \
|
gui/channels/CreateChannelMsg.cpp \
|
||||||
gui/channels/ChannelDetails.cpp \
|
gui/channels/ChannelDetails.cpp \
|
||||||
@ -486,7 +481,7 @@ SOURCES += main.cpp \
|
|||||||
gui/connect/ConfCertDialog.cpp \
|
gui/connect/ConfCertDialog.cpp \
|
||||||
gui/msgs/MessageComposer.cpp \
|
gui/msgs/MessageComposer.cpp \
|
||||||
gui/common/vmessagebox.cpp \
|
gui/common/vmessagebox.cpp \
|
||||||
gui/common/rwindow.cpp \
|
gui/common/rwindow.cpp \
|
||||||
gui/common/html.cpp \
|
gui/common/html.cpp \
|
||||||
gui/common/StatusDefs.cpp \
|
gui/common/StatusDefs.cpp \
|
||||||
gui/common/TagDefs.cpp \
|
gui/common/TagDefs.cpp \
|
||||||
@ -503,7 +498,7 @@ SOURCES += main.cpp \
|
|||||||
gui/settings/GeneralPage.cpp \
|
gui/settings/GeneralPage.cpp \
|
||||||
gui/settings/DirectoriesPage.cpp \
|
gui/settings/DirectoriesPage.cpp \
|
||||||
gui/settings/ServerPage.cpp \
|
gui/settings/ServerPage.cpp \
|
||||||
gui/settings/NetworkPage.cpp \
|
gui/settings/NetworkPage.cpp \
|
||||||
gui/settings/NotifyPage.cpp \
|
gui/settings/NotifyPage.cpp \
|
||||||
gui/settings/CryptoPage.cpp \
|
gui/settings/CryptoPage.cpp \
|
||||||
gui/settings/MessagePage.cpp \
|
gui/settings/MessagePage.cpp \
|
||||||
@ -547,8 +542,8 @@ SOURCES += main.cpp \
|
|||||||
gui/feeds/AttachFileItem.cpp \
|
gui/feeds/AttachFileItem.cpp \
|
||||||
gui/connect/ConnectFriendWizard.cpp \
|
gui/connect/ConnectFriendWizard.cpp \
|
||||||
gui/groups/CreateGroup.cpp
|
gui/groups/CreateGroup.cpp
|
||||||
|
|
||||||
RESOURCES += gui/images.qrc lang/lang.qrc gui/help/content/content.qrc
|
RESOURCES += gui/images.qrc lang/lang.qrc gui/help/content/content.qrc
|
||||||
|
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
lang/retroshare_en.ts \
|
lang/retroshare_en.ts \
|
||||||
@ -561,7 +556,7 @@ TRANSLATIONS += \
|
|||||||
lang/retroshare_tr.ts \
|
lang/retroshare_tr.ts \
|
||||||
lang/retroshare_sv.ts \
|
lang/retroshare_sv.ts \
|
||||||
lang/retroshare_zh_CN.ts
|
lang/retroshare_zh_CN.ts
|
||||||
|
|
||||||
unfinishedtranslations {
|
unfinishedtranslations {
|
||||||
|
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
@ -577,21 +572,21 @@ unfinishedtranslations {
|
|||||||
lang/retroshare_sl.ts \
|
lang/retroshare_sl.ts \
|
||||||
lang/retroshare_sr.ts \
|
lang/retroshare_sr.ts \
|
||||||
lang/retroshare_zh_TW.ts
|
lang/retroshare_zh_TW.ts
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Shifted Qt4.4 dependancies to here.
|
# Shifted Qt4.4 dependancies to here.
|
||||||
# qmake CONFIG=pluginmgr
|
# qmake CONFIG=pluginmgr
|
||||||
|
|
||||||
pluginmgr {
|
pluginmgr {
|
||||||
|
|
||||||
SOURCES += gui/PluginsPage.cpp \
|
SOURCES += gui/PluginsPage.cpp \
|
||||||
gui/PluginManagerWidget.cpp \
|
gui/PluginManagerWidget.cpp \
|
||||||
gui/PluginManager.cpp
|
gui/PluginManager.cpp
|
||||||
|
|
||||||
HEADERS += gui/PluginsPage.h \
|
HEADERS += gui/PluginsPage.h \
|
||||||
gui/PluginManagerWidget.h \
|
gui/PluginManagerWidget.h \
|
||||||
gui/PluginManager.h
|
gui/PluginManager.h
|
||||||
|
|
||||||
DEFINES *= PLUGINMGR
|
DEFINES *= PLUGINMGR
|
||||||
|
|
||||||
@ -602,32 +597,44 @@ blogs {
|
|||||||
DEPENDPATH += gui/unfinished \
|
DEPENDPATH += gui/unfinished \
|
||||||
|
|
||||||
HEADERS += gui/unfinished/blogs/BlogsDialog.h \
|
HEADERS += gui/unfinished/blogs/BlogsDialog.h \
|
||||||
gui/unfinished/blogs/CreateBlog.h \
|
gui/unfinished/blogs/CreateBlog.h \
|
||||||
gui/unfinished/blogs/CreateBlogMsg.h \
|
gui/unfinished/blogs/CreateBlogMsg.h \
|
||||||
gui/unfinished/blogs/BlogsMsgItem.h \
|
gui/unfinished/blogs/BlogsMsgItem.h \
|
||||||
gui/unfinished/blogs/BlogDetails.h \
|
gui/unfinished/blogs/BlogDetails.h \
|
||||||
gui/feeds/BlogNewItem.h \
|
gui/feeds/BlogNewItem.h \
|
||||||
gui/feeds/BlogMsgItem.h \
|
gui/feeds/BlogMsgItem.h \
|
||||||
|
|
||||||
FORMS += gui/unfinished/blogs/BlogsDialog.ui \
|
FORMS += gui/unfinished/blogs/BlogsDialog.ui \
|
||||||
gui/unfinished/blogs/CreateBlog.ui \
|
gui/unfinished/blogs/CreateBlog.ui \
|
||||||
gui/unfinished/blogs/CreateBlogMsg.ui \
|
gui/unfinished/blogs/CreateBlogMsg.ui \
|
||||||
gui/unfinished/blogs/BlogsMsgItem.ui \
|
gui/unfinished/blogs/BlogsMsgItem.ui \
|
||||||
gui/unfinished/blogs/BlogDetails.ui \
|
gui/unfinished/blogs/BlogDetails.ui \
|
||||||
gui/feeds/BlogNewItem.ui \
|
gui/feeds/BlogNewItem.ui \
|
||||||
gui/feeds/BlogMsgItem.ui \
|
gui/feeds/BlogMsgItem.ui \
|
||||||
|
|
||||||
SOURCES += gui/unfinished/blogs/BlogsDialog.cpp \
|
SOURCES += gui/unfinished/blogs/BlogsDialog.cpp \
|
||||||
gui/unfinished/blogs/CreateBlog.cpp \
|
gui/unfinished/blogs/CreateBlog.cpp \
|
||||||
gui/unfinished/blogs/CreateBlogMsg.cpp \
|
gui/unfinished/blogs/CreateBlogMsg.cpp \
|
||||||
gui/unfinished/blogs/BlogsMsgItem.cpp \
|
gui/unfinished/blogs/BlogsMsgItem.cpp \
|
||||||
gui/unfinished/blogs/BlogDetails.cpp \
|
gui/unfinished/blogs/BlogDetails.cpp \
|
||||||
gui/feeds/BlogNewItem.cpp \
|
gui/feeds/BlogNewItem.cpp \
|
||||||
gui/feeds/BlogMsgItem.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 {
|
unfinished {
|
||||||
|
|
||||||
@ -640,7 +647,7 @@ HEADERS += gui/unfinished/ApplicationWindow.h \
|
|||||||
gui/unfinished/PhotoDialog.h \
|
gui/unfinished/PhotoDialog.h \
|
||||||
gui/unfinished/PhotoShow.h \
|
gui/unfinished/PhotoShow.h \
|
||||||
gui/unfinished/StatisticDialog.h
|
gui/unfinished/StatisticDialog.h
|
||||||
|
|
||||||
|
|
||||||
FORMS += gui/unfinished/ApplicationWindow.ui \
|
FORMS += gui/unfinished/ApplicationWindow.ui \
|
||||||
gui/unfinished/CalDialog.ui \
|
gui/unfinished/CalDialog.ui \
|
||||||
@ -649,7 +656,7 @@ FORMS += gui/unfinished/ApplicationWindow.ui \
|
|||||||
gui/unfinished/PhotoDialog.ui \
|
gui/unfinished/PhotoDialog.ui \
|
||||||
gui/unfinished/PhotoShow.ui \
|
gui/unfinished/PhotoShow.ui \
|
||||||
gui/unfinished/StatisticDialog.ui
|
gui/unfinished/StatisticDialog.ui
|
||||||
|
|
||||||
SOURCES += gui/unfinished/ApplicationWindow.cpp \
|
SOURCES += gui/unfinished/ApplicationWindow.cpp \
|
||||||
gui/unfinished/CalDialog.cpp \
|
gui/unfinished/CalDialog.cpp \
|
||||||
gui/unfinished/ExampleDialog.cpp \
|
gui/unfinished/ExampleDialog.cpp \
|
||||||
@ -664,9 +671,9 @@ SOURCES += gui/unfinished/ApplicationWindow.cpp \
|
|||||||
idle {
|
idle {
|
||||||
|
|
||||||
HEADERS += idle/idle.h
|
HEADERS += idle/idle.h
|
||||||
|
|
||||||
SOURCES += idle/idle.cpp \
|
SOURCES += idle/idle.cpp \
|
||||||
idle/idle_platform.cpp
|
idle/idle_platform.cpp
|
||||||
}
|
}
|
||||||
|
|
||||||
framecatcher {
|
framecatcher {
|
||||||
@ -680,8 +687,8 @@ LIBS += -lxine
|
|||||||
DEFINES *= CHANNELS_FRAME_CATCHER
|
DEFINES *= CHANNELS_FRAME_CATCHER
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minimal {
|
minimal {
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
|
@ -43,7 +43,9 @@
|
|||||||
#include "PluginsPage.h"
|
#include "PluginsPage.h"
|
||||||
#include "ShareManager.h"
|
#include "ShareManager.h"
|
||||||
#include "NetworkView.h"
|
#include "NetworkView.h"
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
#include "LinksDialog.h"
|
#include "LinksDialog.h"
|
||||||
|
#endif
|
||||||
#include "ForumsDialog.h"
|
#include "ForumsDialog.h"
|
||||||
#include "PeersDialog.h"
|
#include "PeersDialog.h"
|
||||||
#include "HelpDialog.h"
|
#include "HelpDialog.h"
|
||||||
@ -222,25 +224,25 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||||||
ui.stackPages->add(channelFeed = new ChannelFeed(ui.stackPages),
|
ui.stackPages->add(channelFeed = new ChannelFeed(ui.stackPages),
|
||||||
channelAction = createPageAction(QIcon(IMAGE_CHANNELS), tr("Channels"), grp));
|
channelAction = createPageAction(QIcon(IMAGE_CHANNELS), tr("Channels"), grp));
|
||||||
|
|
||||||
#ifdef BLOGS
|
#ifdef BLOGS
|
||||||
ui.stackPages->add(blogsFeed = new BlogsDialog(ui.stackPages),
|
ui.stackPages->add(blogsFeed = new BlogsDialog(ui.stackPages),
|
||||||
createPageAction(QIcon(IMAGE_BLOGS), tr("Blogs"), grp));
|
createPageAction(QIcon(IMAGE_BLOGS), tr("Blogs"), grp));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui.stackPages->add(forumsDialog = new ForumsDialog(ui.stackPages),
|
ui.stackPages->add(forumsDialog = new ForumsDialog(ui.stackPages),
|
||||||
forumAction = createPageAction(QIcon(IMAGE_FORUMS), tr("Forums"), grp));
|
forumAction = createPageAction(QIcon(IMAGE_FORUMS), tr("Forums"), grp));
|
||||||
|
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
||||||
createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), grp));
|
createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), grp));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifndef RS_RELEASE_VERSION
|
||||||
#ifdef PLUGINMGR
|
#ifdef PLUGINMGR
|
||||||
ui.stackPages->add(pluginsPage = new PluginsPage(ui.stackPages),
|
ui.stackPages->add(pluginsPage = new PluginsPage(ui.stackPages),
|
||||||
createPageAction(QIcon(IMAGE_PLUGINS), tr("Plugins"), grp));
|
createPageAction(QIcon(IMAGE_PLUGINS), tr("Plugins"), grp));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Create the toolbar */
|
/* Create the toolbar */
|
||||||
ui.toolBar->addActions(grp->actions());
|
ui.toolBar->addActions(grp->actions());
|
||||||
@ -637,7 +639,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
|
|||||||
case Messages:
|
case Messages:
|
||||||
Page = _instance->messagesDialog;
|
Page = _instance->messagesDialog;
|
||||||
break;
|
break;
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
case Links:
|
case Links:
|
||||||
Page = _instance->linksDialog;
|
Page = _instance->linksDialog;
|
||||||
break;
|
break;
|
||||||
@ -691,7 +693,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
|
|||||||
if (page == _instance->messagesDialog) {
|
if (page == _instance->messagesDialog) {
|
||||||
return Messages;
|
return Messages;
|
||||||
}
|
}
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
if (page == _instance->linksDialog) {
|
if (page == _instance->linksDialog) {
|
||||||
return Links;
|
return Links;
|
||||||
}
|
}
|
||||||
@ -731,7 +733,7 @@ void MainWindow::addAction(QAction *action, const char *slot)
|
|||||||
return _instance->sharedfilesDialog;
|
return _instance->sharedfilesDialog;
|
||||||
case Messages:
|
case Messages:
|
||||||
return _instance->messagesDialog;
|
return _instance->messagesDialog;
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
case Links:
|
case Links:
|
||||||
return _instance->linksDialog;
|
return _instance->linksDialog;
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,7 +49,7 @@ class PluginsPage;
|
|||||||
class ChannelFeed;
|
class ChannelFeed;
|
||||||
class BandwidthGraph;
|
class BandwidthGraph;
|
||||||
|
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
class LinksDialog;
|
class LinksDialog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ public:
|
|||||||
#ifdef BLOGS
|
#ifdef BLOGS
|
||||||
Blogs = 8, /** Blogs page. */
|
Blogs = 8, /** Blogs page. */
|
||||||
#endif
|
#endif
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
Links = 9, /** Links page. */
|
Links = 9, /** Links page. */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -117,7 +117,7 @@ public:
|
|||||||
ChannelFeed *channelFeed;
|
ChannelFeed *channelFeed;
|
||||||
Idle *idle;
|
Idle *idle;
|
||||||
|
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
LinksDialog *linksDialog;
|
LinksDialog *linksDialog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -31,7 +31,9 @@
|
|||||||
#include "util/RsAction.h"
|
#include "util/RsAction.h"
|
||||||
#include "msgs/MessageComposer.h"
|
#include "msgs/MessageComposer.h"
|
||||||
#include "settings/rsharesettings.h"
|
#include "settings/rsharesettings.h"
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
#include "AddLinksDialog.h"
|
#include "AddLinksDialog.h"
|
||||||
|
#endif
|
||||||
#include "RetroShareLink.h"
|
#include "RetroShareLink.h"
|
||||||
#include "RemoteDirModel.h"
|
#include "RemoteDirModel.h"
|
||||||
#include "common/PeerDefs.h"
|
#include "common/PeerDefs.h"
|
||||||
@ -202,10 +204,12 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
|
|||||||
connect( sendlinkAct , SIGNAL( triggered() ), this, SLOT( sendLinkTo( ) ) );
|
connect( sendlinkAct , SIGNAL( triggered() ), this, SLOT( sendLinkTo( ) ) );
|
||||||
sendhtmllinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links (HTML)" ), this );
|
sendhtmllinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links (HTML)" ), this );
|
||||||
connect( sendhtmllinkAct , SIGNAL( triggered() ), this, SLOT( sendHtmlLinkTo( ) ) );
|
connect( sendhtmllinkAct , SIGNAL( triggered() ), this, SLOT( sendHtmlLinkTo( ) ) );
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
sendlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links to Cloud" ), this );
|
sendlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Links to Cloud" ), this );
|
||||||
connect( sendlinkCloudAct , SIGNAL( triggered() ), this, SLOT( sendLinkToCloud( ) ) );
|
connect( sendlinkCloudAct , SIGNAL( triggered() ), this, SLOT( sendLinkToCloud( ) ) );
|
||||||
addlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Add Links to Cloud" ), this );
|
addlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Add Links to Cloud" ), this );
|
||||||
connect( addlinkCloudAct , SIGNAL( triggered() ), this, SLOT( addLinkToCloud( ) ) );
|
connect( addlinkCloudAct , SIGNAL( triggered() ), this, SLOT( addLinkToCloud( ) ) );
|
||||||
|
#endif
|
||||||
openfileAct = new QAction(QIcon(IMAGE_OPENFILE), tr("Open File"), this);
|
openfileAct = new QAction(QIcon(IMAGE_OPENFILE), tr("Open File"), this);
|
||||||
connect(openfileAct, SIGNAL(triggered()), this, SLOT(openfile()));
|
connect(openfileAct, SIGNAL(triggered()), this, SLOT(openfile()));
|
||||||
openfolderAct = new QAction(QIcon(IMAGE_OPENFOLDER), tr("Open Folder"), this);
|
openfolderAct = new QAction(QIcon(IMAGE_OPENFOLDER), tr("Open Folder"), this);
|
||||||
@ -494,6 +498,7 @@ void SharedFilesDialog::sendHtmlLinkTo()
|
|||||||
//
|
//
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
void SharedFilesDialog::sendLinkToCloud()
|
void SharedFilesDialog::sendLinkToCloud()
|
||||||
{
|
{
|
||||||
copyLinkLocal ();
|
copyLinkLocal ();
|
||||||
@ -516,6 +521,7 @@ void SharedFilesDialog::addLinkToCloud()
|
|||||||
|
|
||||||
/* window will destroy itself! */
|
/* window will destroy itself! */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void SharedFilesDialog::playselectedfiles()
|
void SharedFilesDialog::playselectedfiles()
|
||||||
{
|
{
|
||||||
@ -680,7 +686,7 @@ void SharedFilesDialog::sharedDirTreeWidgetContextMenu( QPoint point )
|
|||||||
contextMnu.addAction(sendlinkAct);
|
contextMnu.addAction(sendlinkAct);
|
||||||
// contextMnu.addAction(sendhtmllinkAct);
|
// contextMnu.addAction(sendhtmllinkAct);
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
#ifndef RS_RELEASE_VERSION
|
#ifdef RS_USE_LINKS
|
||||||
contextMnu.addAction(sendlinkCloudAct);
|
contextMnu.addAction(sendlinkCloudAct);
|
||||||
contextMnu.addAction(addlinkCloudAct);
|
contextMnu.addAction(addlinkCloudAct);
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
|
@ -64,8 +64,10 @@ private slots:
|
|||||||
void sendLinkTo();
|
void sendLinkTo();
|
||||||
void sendremoteLinkTo();
|
void sendremoteLinkTo();
|
||||||
void sendHtmlLinkTo();
|
void sendHtmlLinkTo();
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
void sendLinkToCloud();
|
void sendLinkToCloud();
|
||||||
void addLinkToCloud();
|
void addLinkToCloud();
|
||||||
|
#endif
|
||||||
|
|
||||||
void showFrame(bool show);
|
void showFrame(bool show);
|
||||||
void showFrameRemote(bool show);
|
void showFrameRemote(bool show);
|
||||||
@ -106,8 +108,10 @@ private:
|
|||||||
QAction* copylinklocalAct;
|
QAction* copylinklocalAct;
|
||||||
QAction* sendlinkAct;
|
QAction* sendlinkAct;
|
||||||
QAction* sendhtmllinkAct;
|
QAction* sendhtmllinkAct;
|
||||||
|
#ifdef RS_USE_LINKS
|
||||||
QAction* sendlinkCloudAct;
|
QAction* sendlinkCloudAct;
|
||||||
QAction* addlinkCloudAct;
|
QAction* addlinkCloudAct;
|
||||||
|
#endif
|
||||||
QAction* sendchatlinkAct;
|
QAction* sendchatlinkAct;
|
||||||
QAction* copylinklocalhtmlAct;
|
QAction* copylinklocalhtmlAct;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user