Commit Graph

368 Commits

Author SHA1 Message Date
defnax
ef5aebd2ea forum composer changes for better look & feel
* Added PlaceHolder text for title & message text.
* Set default font family to "MS Sans Serif"
* Fixed to get work Place Holder text on QTextEdit, seems there was a second unwanted line
2019-12-29 22:28:17 +01:00
csoler
af0161054f
fixed shifting bug in forums when setting a post as read, caused by wrong calculation of parent index 2019-10-14 22:24:36 +02:00
csoler
77d56916a0
fixed display in forum flat view 2019-10-14 20:27:53 +02:00
csoler
4abdd3165b
Merge pull request #1668 from defnax/some-changes-for-the-feed-items
Some changes for the feed items
2019-10-12 23:48:59 +02:00
defnax
32718c673f Changed the toolbar icons & hide hashing groupbox by default
* Changed the toolbar icons
* Hide the hashing group box when there is no file attached
* Show the warning text color in red when the size is too  big
2019-10-12 22:32:14 +02:00
defnax
2df4a1a3e8 changed icons on othe feeds too
* changed the icons on other feeds too
* Show on Forum Message Feed the Avatars
2019-10-09 18:06:30 +02:00
csoler
398c943f40
fixed bug causing crash when forum being displayed is deleted 2019-10-06 00:12:28 +02:00
defnax
25e966d039 added atach picture button to forum post 2019-09-29 17:32:14 +02:00
Phenom
5cb5954882 Fix clang warning for
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
1266:13: warning: function 'recursPrintModel' is not needed and will not
be emitted [-Wunneeded-internal-declaration]
static void recursPrintModel(const std::vector<ForumModelPostEntry>&
entries,ForumModelIndex index,int depth)
            ^
2019-04-04 21:20:25 +02:00
Phenom
d96b9b054b Fix clang warnings for
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
106:53: warning: unused parameter 'parent' [-Wunused-parameter]
int RsGxsForumModel::columnCount(const QModelIndex &parent) const
                                                    ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:245:3:
warning: add explicit braces to avoid dangling else [-Wdangling-else]
                else
                ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
248:12: warning: comparison of integers of different signs: 'int' and
'std::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
    if(row >= mPosts[entry].mChildren.size())
       ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
299:67: warning: unused parameter 'orientation' [-Wunused-parameter]
QVariant RsGxsForumModel::headerData(int section, Qt::Orientation
orientation, int role) const
                                                                  ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
398:77: warning: unused parameter 'column' [-Wunused-parameter]
QVariant RsGxsForumModel::textColorRole(const ForumModelPostEntry&
fmpe,int column) const
                                                                            ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
419:74: warning: unused parameter 'column' [-Wunused-parameter]
QVariant RsGxsForumModel::filterRole(const ForumModelPostEntry& fmpe,int
column) const
                                                                         ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
498:75: warning: unused parameter 'column' [-Wunused-parameter]
QVariant RsGxsForumModel::missingRole(const ForumModelPostEntry&
fmpe,int column) const
                                                                          ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
540:74: warning: unused parameter 'column' [-Wunused-parameter]
QVariant RsGxsForumModel::pinnedRole(const ForumModelPostEntry& fmpe,int
column) const
                                                                         ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
548:78: warning: unused parameter 'column' [-Wunused-parameter]
QVariant RsGxsForumModel::backgroundRole(const ForumModelPostEntry&
fmpe,int column) const
                                                                             ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
806:111: warning: unused parameter 'useChildTS' [-Wunused-parameter]
void RsGxsForumModel::convertMsgToPostEntry(const RsGxsForumGroup&
mForumGroup,const RsMsgMetaData& msg, bool useChildTS,
ForumModelPostEntry& fentry)
                                                                                                              ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:828:7:
warning: unused variable 'redacted' [-Wunused-variable]
        bool redacted = false;
             ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:880:6:
warning: unused variable 'pos' [-Wunused-variable]
        int pos = 0;
            ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:879:6:
warning: unused variable 'count' [-Wunused-variable]
        int count = msgs.size();
            ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:882:6:
warning: unused variable 'step' [-Wunused-variable]
        int step = 0;
            ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
949:26: warning: comparison of integers of different signs: 'int32_t'
(aka 'int') and 'std::vector::size_type' (aka 'unsigned long') [-Wsign-
compare]
        for(int32_t i=0;i<v.size();++i)
                        ~^~~~~~~~~
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
959:23: warning: comparison of integers of different signs: 'int32_t'
(aka 'int') and 'std::vector::size_type' (aka 'unsigned long') [-Wsign-
compare]
                                        for(int32_t j=0;j<it2-
>second.size();++j)
                                                        ~^~~~~~~~~~~~~~~~~~~
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
991:26: warning: comparison of integers of different signs: 'int32_t'
(aka 'int') and 'std::vector::size_type' (aka 'unsigned long') [-Wsign-
compare]
        for(int32_t i=1;i<it->second.size();++i)
                        ~^~~~~~~~~~~~~~~~~~
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp:
1005:22: warning: comparison of integers of different signs: 'int' and
'std::vector::size_type' (aka 'unsigned long') [-Wsign-compare]
        for(int i=1;i<it->second.size();++i)
                    ~^~~~~~~~~~~~~~~~~~
../../../trunk/retroshare-gui/src/gui/gxsforums/
GxsForumThreadWidget.cpp:1038:13: warning: unused function
'cleanupItems' [-Wunused-function]
static void cleanupItems (QList<QTreeWidgetItem *> &items)
            ^
2019-04-04 21:20:25 +02:00
Phenom
9310be075d Fix clang warning for
../../../trunk/retroshare-gui/src/gui/Posted/PostedDialog.cpp:99:10:
warning: enumeration value 'ICON_SEARCH' not handled in switch [-
Wswitch]
        switch (type) {
                ^
2019-04-04 21:20:25 +02:00
G10h4ck
f4e13975b0
Merge pull request #1478 from G10h4ck/jsonapi
extend JSON API to identities, circles and reputation
2019-03-23 09:11:05 -03:00
csoler
431fbf4124
fixed bug causing ipossibility to pin/unpin forum posts 2019-03-20 23:23:13 +01:00
csoler
450fcbb0e7
Merge pull request #1459 from defnax/master
Improved Posted Links & Subscribe button look like Youtube/Reddit style
2019-03-19 23:44:14 +01:00
Gioacchino Mazzurco
5ff4ebbd12
Fix retroshare-gui compilation after RsReputations refactoring 2019-02-16 11:42:22 -03:00
Phenom
bb01198772 Fix Warnings for 'ForumModelPostEntry' defined as a struct here but
previously declared as a class

In file included from ../../../trunk/retroshare-gui/src/gui/gxsforums/
GxsForumThreadWidget.cpp:31:
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumModel.h:34:1:
warning: 'ForumModelPostEntry' defined as a struct here but previously
declared as a class [-Wmismatched-tags]
struct ForumModelPostEntry
^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.h:
39:1: note: did you mean struct here?
class ForumModelPostEntry;
^~~~~
struct
2019-02-15 00:04:00 +01:00
Phenom
a9962c1d2c Fix Warnings for class 'RsGxsForumMsg' was previously declared as a
struct

In file included from ../../../trunk/retroshare-gui/src/gui/gxsforums/
GxsForumsDialog.cpp:23:
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.h:
33:1: warning: class 'RsGxsForumMsg' was previously declared as a struct
[-Wmismatched-tags]
class RsGxsForumMsg;
^
../../../trunk/libretroshare/src/retroshare/rsgxsforums.h:83:8: note:
previous use is here
struct RsGxsForumMsg : RsSerializable
       ^
../../../trunk/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.h:
33:1: note: did you mean struct here?
class RsGxsForumMsg;
^~~~~
struct
2019-02-15 00:02:12 +01:00
Phenom
b80d7cb5ae Fix Warnings for class 'RsGxsForumGroup' was previously declared as a
struct

../../../trunk/retroshare-gui/src/gui/msgs/MessageComposer.h:40:1:
warning: class 'RsGxsForumGroup' was previously declared as a struct [-
Wmismatched-tags]
class RsGxsForumGroup;
^
../../../trunk/libretroshare/src/retroshare/rsgxsforums.h:55:8: note:
previous use is here
struct RsGxsForumGroup : RsSerializable
       ^
../../../trunk/retroshare-gui/src/gui/msgs/MessageComposer.h:40:1: note:
did you mean struct here?
class RsGxsForumGroup;
^~~~~
struct
2019-02-14 23:15:54 +01:00
defnax
405535750a
Merge pull request #6 from RetroShare/master
merge with master
2019-01-28 12:09:17 +01:00
csoler
b401026914
removed debug info from forum thread handling 2019-01-27 20:34:22 +01:00
csoler
0816c44d10
fixed bug causing link to forum post not to load the post on click if another forum is currently loaed 2019-01-27 20:03:23 +01:00
defnax
ef451b9b92
Merge pull request #5 from RetroShare/master
update to latest master
2019-01-23 15:28:26 +01:00
csoler
9c24f5c718
Revert "removed HeaderFrame where it's not needed" 2019-01-19 22:36:19 +01:00
defnax
36022edbc1
Merge pull request #4 from RetroShare/master
update fork
2019-01-19 17:19:34 +01:00
zapek
bb038ab3e0 removed HeaderFrame where it's not needed; changed the font of top
tooltips to be the same
2019-01-18 23:30:52 +01:00
defnax
c25d222d86 fixed stylsheet and spacing 2019-01-15 21:26:50 +01:00
csoler
d143f761cf
Merge pull request #1462 from csoler/v0.6-ImprovedGUI
fixed not working setAsReadOnActivate preferences/forum button
2019-01-14 23:53:04 +01:00
csoler
104e122102
fixed not working setAsReadOnActivate preferences/forum button 2019-01-14 23:51:53 +01:00
csoler
05313a5364
Merge pull request #1460 from csoler/v0.6-ImprovedGUI
V0.6 improved gui
2019-01-13 23:24:28 +01:00
csoler
c04821d91c
fixed ghost unread forum posts problems by setting read status of all versions of the same post at once. WARNING: this will not remove ghost posts that are already here unless the user reads them again 2019-01-13 15:19:07 +01:00
defnax
6c0c42c8ad Improved Subscribe Button look and feel
* Improved Subscribe Button look and feel with stylsheet
* Removed icons from Subscribe button
* Subcribe button hided on posted too when subscribed
2019-01-12 22:20:00 +01:00
defnax
2d096e3179 Improved Create comment dialog for channel/posted comments replies
*Improved Create comment dialog for channel/posted comment replies
*Update forum icons use the new flat one green/black
*Changed the context menu icon for Pin post
*Fixed for "new thread" dialog the title icon
*Added new circle icons for later to use
2019-01-10 00:12:38 +01:00
csoler
e09b416674
automatically add moderator rights to the owner of a forum 2018-12-24 11:47:33 +01:00
Gioacchino Mazzurco
5e4006b7e6
Merge branch 'v0.6.5' 2018-12-23 11:48:35 +01:00
csoler
bc7249e4b9
Merge pull request #1435 from defnax/master
Added new flat icons for the forums & posted group tree
2018-12-22 21:44:54 +01:00
defnax
f63ae7efbb Added new flat icons for the forums & posted group tree
Added new icons for the forums & posted group tree
2018-12-20 18:42:51 +01:00
Gioacchino Mazzurco
d19531cfcc
Fix compilation of forum API 2018-12-16 17:40:47 +01:00
csoler
117c19b104
fixed a few problems in jumping to next unread post 2018-12-14 22:09:02 +01:00
csoler
348f88b6ec
partially fixed async navigate action in forums 2018-12-13 21:02:32 +01:00
csoler
39b7bc818b
added more debug info to figure out why some posts are not displayed 2018-12-12 21:31:54 +01:00
csoler
a114856b77
changed code to create msg data map using MsgMeta instead of full Msg and added the handles to request MsgMeta data in forums 2018-12-12 11:33:38 +01:00
csoler
8f9c9295b2
added proper timeout of 5 secs to all forum async-ed interactions 2018-12-11 22:06:45 +01:00
csoler
b38c635649
restored display of forum summary when browsing forums 2018-12-10 22:51:09 +01:00
csoler
1dda7c5b34
removed mUpdating variable which was used for a safety test that is not relevant anymore and caused problems 2018-12-09 23:25:59 +01:00
csoler
34f51fff9c
made next unread post arrow also work when no post is selected 2018-12-09 23:18:50 +01:00
csoler
983ac7dda9
improved icons in forums and removed - button because it is not useful 2018-12-09 21:22:18 +01:00
csoler
27264cea0a
fixed icons and buttons in forums 2018-12-09 17:35:31 +01:00
csoler
a6ed2b26ec
fixed author name placement and icon size when loading ID data in forums 2018-12-09 16:34:43 +01:00
csoler
d7b5c9766c
fixed missing filterAcceptsRow() in forum proxy model 2018-12-09 13:54:30 +01:00
csoler
d5928ca84e
fixed message loading bug due to currentIndex() not being ready when insertMessage() is called 2018-12-08 22:19:39 +01:00