mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
GXS:
- added three new classes for automatic refresh of ui - RsGxsUpdateBroadcastBase - RsGxsUpdateBroadcastWidget - RsGxsUpdateBroadcastPage - prevent call to :singleShot on RsProtectedTimer - extend RsGxsUpdateBroadcast - added automatic refresh to Identity and Forums (except subscribe/unsubscribe) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6503 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
14890ef007
commit
621c8037bc
19 changed files with 551 additions and 255 deletions
|
@ -58,7 +58,6 @@
|
|||
* Transformation Notes:
|
||||
* there are still a couple of things that the new forums differ from Old version.
|
||||
* these will need to be addressed in the future.
|
||||
* -> Missing Messages are not handled yet.
|
||||
* -> Child TS (for sorting) is not handled by GXS, this will probably have to be done in the GUI.
|
||||
* -> Need to handle IDs properly.
|
||||
* -> Popularity not handled in GXS yet.
|
||||
|
@ -67,7 +66,7 @@
|
|||
|
||||
/** Constructor */
|
||||
GxsForumsDialog::GxsForumsDialog(QWidget *parent)
|
||||
: RsAutoUpdatePage(1000,parent)
|
||||
: RsGxsUpdateBroadcastPage(rsGxsForums, parent)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
@ -111,11 +110,6 @@ GxsForumsDialog::GxsForumsDialog(QWidget *parent)
|
|||
processSettings(true);
|
||||
|
||||
settingsChanged();
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
GxsForumsDialog::~GxsForumsDialog()
|
||||
|
@ -135,12 +129,11 @@ void GxsForumsDialog::todo()
|
|||
{
|
||||
QMessageBox::information(this, "Todo",
|
||||
"<b>Open points:</b><ul>"
|
||||
"<li>Automatic update"
|
||||
"<li>Automatic refresh after subscribe/unsubscibe"
|
||||
"<li>Restore forum keys"
|
||||
"<li>Display AUTHD"
|
||||
"<li>Copy/navigate forum link"
|
||||
"<li>Display count of unread messages"
|
||||
"<li>Show missing messages"
|
||||
"<li>Show/Edit forum details"
|
||||
"<li>Don't show own posts as unread"
|
||||
"<li>Remove messages"
|
||||
|
@ -266,35 +259,10 @@ void GxsForumsDialog::restoreForumKeys(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void GxsForumsDialog::updateDisplay()
|
||||
void GxsForumsDialog::updateDisplay(bool /*initialFill*/)
|
||||
{
|
||||
std::list<std::string> forumIds;
|
||||
std::list<std::string>::iterator it;
|
||||
if (!rsGxsForums)
|
||||
return;
|
||||
|
||||
#if 0
|
||||
// TODO groupsChanged... HACK XXX.
|
||||
if ((rsGxsForums->groupsChanged(forumIds)) || (rsGxsForums->updated()))
|
||||
{
|
||||
/* update Forums List */
|
||||
insertForums();
|
||||
|
||||
it = std::find(forumIds.begin(), forumIds.end(), mCurrForumId);
|
||||
if (it != forumIds.end())
|
||||
{
|
||||
/* update threads as well */
|
||||
insertThreads();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* The proper version (above) can be done with a data request -> TODO */
|
||||
if (rsGxsForums->updated())
|
||||
{
|
||||
/* update Forums List */
|
||||
insertForums();
|
||||
}
|
||||
/* Update forums list */
|
||||
insertForums();
|
||||
}
|
||||
|
||||
// HACK until update works.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue