mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 09:11:28 -05:00
This commit removed the refresh button and edited some events for the retro share wire.
This commit is contained in:
parent
9c950affcf
commit
726c42852c
@ -67,7 +67,6 @@ WireDialog::WireDialog(QWidget *parent)
|
|||||||
|
|
||||||
connect( ui.toolButton_createAccount, SIGNAL(clicked()), this, SLOT(createGroup()));
|
connect( ui.toolButton_createAccount, SIGNAL(clicked()), this, SLOT(createGroup()));
|
||||||
connect( ui.toolButton_createPulse, SIGNAL(clicked()), this, SLOT(createPulse()));
|
connect( ui.toolButton_createPulse, SIGNAL(clicked()), this, SLOT(createPulse()));
|
||||||
connect( ui.toolButton_refresh, SIGNAL(clicked()), this, SLOT(refreshGroups()));
|
|
||||||
|
|
||||||
connect(ui.comboBox_groupSet, SIGNAL(currentIndexChanged(int)), this, SLOT(selectGroupSet(int)));
|
connect(ui.comboBox_groupSet, SIGNAL(currentIndexChanged(int)), this, SLOT(selectGroupSet(int)));
|
||||||
connect(ui.comboBox_filterTime, SIGNAL(currentIndexChanged(int)), this, SLOT(selectFilterTime(int)));
|
connect(ui.comboBox_filterTime, SIGNAL(currentIndexChanged(int)), this, SLOT(selectFilterTime(int)));
|
||||||
@ -104,28 +103,37 @@ void WireDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> event)
|
|||||||
const RsWireEvent *e = dynamic_cast<const RsWireEvent*>(event.get());
|
const RsWireEvent *e = dynamic_cast<const RsWireEvent*>(event.get());
|
||||||
|
|
||||||
if(e)
|
if(e)
|
||||||
|
{
|
||||||
|
|
||||||
|
#ifdef GXSWIRE_DEBUG
|
||||||
|
RsDbg() << " Refreshing the feed if there is a matching event. "<< std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// The following switch statements refresh the wire feed whenever there is a new event
|
||||||
switch(e->mWireEventCode)
|
switch(e->mWireEventCode)
|
||||||
{
|
{
|
||||||
case RsWireEventCode::NEW_POST: // [[fallthrough]];
|
case RsWireEventCode::NEW_POST:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
case RsWireEventCode::NEW_REPLY: // [[fallthrough]];
|
case RsWireEventCode::NEW_REPLY:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
case RsWireEventCode::NEW_LIKE: // [[fallthrough]];
|
case RsWireEventCode::NEW_LIKE:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
case RsWireEventCode::NEW_REPUBLISH: // [[fallthrough]];
|
case RsWireEventCode::NEW_REPUBLISH:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
case RsWireEventCode::NEW_WIRE: // [[fallthrough]];
|
case RsWireEventCode::POST_UPDATED:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
case RsWireEventCode::FOLLOW_STATUS_CHANGED: // [[fallthrough]];
|
case RsWireEventCode::FOLLOW_STATUS_CHANGED:
|
||||||
refreshGroups();
|
refreshGroups();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ private:
|
|||||||
std::map<RsGxsGroupId, RsWireGroup> mAllGroups;
|
std::map<RsGxsGroupId, RsWireGroup> mAllGroups;
|
||||||
std::vector<RsWireGroup> mOwnGroups;
|
std::vector<RsWireGroup> mOwnGroups;
|
||||||
|
|
||||||
|
// This function and variable below it handle the events for the wire
|
||||||
void handleEvent_main_thread(std::shared_ptr<const RsEvent> event);
|
void handleEvent_main_thread(std::shared_ptr<const RsEvent> event);
|
||||||
RsEventsHandlerId_t mEventHandlerId;
|
RsEventsHandlerId_t mEventHandlerId;
|
||||||
|
|
||||||
|
@ -100,13 +100,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="toolButton_refresh">
|
|
||||||
<property name="text">
|
|
||||||
<string>Refresh</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="RSComboBox" name="groupChooser"/>
|
<widget class="RSComboBox" name="groupChooser"/>
|
||||||
</item>
|
</item>
|
||||||
@ -189,7 +182,6 @@
|
|||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
@ -208,8 +200,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>220</width>
|
<width>224</width>
|
||||||
<height>444</height>
|
<height>465</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="groupsWidget_VL">
|
<layout class="QVBoxLayout" name="groupsWidget_VL">
|
||||||
@ -387,8 +379,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>521</width>
|
<width>523</width>
|
||||||
<height>437</height>
|
<height>462</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user