mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
tag feature in MessagesDialog
its disabled until the msgId is static uncomment the define STATIC_MSGID in MessagesDialog.h for testing git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3010 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3ff6fce00f
commit
5b4985e3d3
11 changed files with 822 additions and 167 deletions
|
@ -515,6 +515,42 @@ void MainWindow::addAction(QAction *action, const char *slot)
|
|||
}
|
||||
}
|
||||
|
||||
/** get page */
|
||||
/*static*/ MainPage *MainWindow::getPage (Page page)
|
||||
{
|
||||
if (_instance == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
switch (page) {
|
||||
case Network:
|
||||
return _instance->networkDialog;
|
||||
case Friends:
|
||||
return _instance->peersDialog;
|
||||
case Search:
|
||||
return _instance->searchDialog;
|
||||
case Transfers:
|
||||
return _instance->transfersDialog;
|
||||
case SharedDirectories:
|
||||
return _instance->sharedfilesDialog;
|
||||
case Messages:
|
||||
return _instance->messagesDialog;
|
||||
#ifndef RS_RELEASE_VERSION
|
||||
case Links:
|
||||
return _instance->linksDialog;
|
||||
case Channels:
|
||||
return _instance->channelFeed;
|
||||
#endif
|
||||
case Forums:
|
||||
return _instance->forumsDialog;
|
||||
#ifdef BLOGS
|
||||
case Blogs:
|
||||
return _instance->blogsFeed;
|
||||
#endif
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/***** TOOL BAR FUNCTIONS *****/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue