Commit Graph

119 Commits

Author SHA1 Message Date
thunder2
ae4f43d9e8 Added smiley support for messages.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3774 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-10 13:35:38 +00:00
thunder2
e20e9a529a Add spacing again for forums, messages and channels.
Added a new base class "RSItemDelegate" for adding a spacing for the item and remove the focus rectangle of the empty text for items with only an icon.
Removed existing classes "ForumsItemDelegate" and "MessagesItemDelegate".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3771 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-09 23:56:02 +00:00
thunder2
dd4c43cf7d Removed menus with friends in SharedFilesDialog.
Add a single action to send files as message.
Add send as message to the remote files too.
The files are now send as recommended files.
Disable context menus for the person item.
Auto hide the AttachFileItem in all dialogs after the successfully finish of the hash.
Removed the column source of the files in messages.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3759 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-07 21:33:48 +00:00
thunder2
3c65283f8f - Change methods of RsMsgs from "std::string" to "const std::string&"
- Fixed sent messages doesn't get the flag RS_MSG_FLAGS_NEW
- Rework reply and forward message, now the replied or forwarded message gets the state and not the answer itself
- Added RsMsgParentId (with test) to save the parent of the message in draft
- Change methods of MessageComposer from "std::string" to "QString"
- Show image in the message row in MessagesDialog again
- Fixed umlauts in recommended files in MessageComposer
- Renamed tab "Live Chat" in "Group Chat"
- Fixed german translation

recompile of the GUI needed

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3741 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-02 21:11:11 +00:00
thunder2
5cc222d251 Show tags as label in MessagesDialog.
Fixed german language.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3728 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-10-31 19:37:05 +00:00
thunder2
89ca27ef66 Check for empty recipient and empty subject in MessageComposer.
Added context menu for empty trash in MessagesDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3720 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-10-29 20:57:23 +00:00
thunder2
de16f6c72d New class for working with peer names (rsid, name + location, ...) - PeerDefs.
Show the location in brackets - "name (location)" (defined now in PeerDefs).
Renamed head of context menu in PeersDialog for ssl items.
Fixed german translation.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3553 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-09-28 20:33:34 +00:00
thunder2
e8d22e2940 Show Cc and Bcc in MessagesDialog if available.
Send message to friend with a click on To, Cc or Bcc label.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-09-28 00:03:12 +00:00
thunder2
627b0ca54a Reworked MessageComposer
- Added To, Cc, Bcc and Recommend friends
- Added group support
- Show state of the friends in real time
- Save state of the window in profile
- Translated into german

Added "Message group" to PeersDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3541 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-09-27 21:05:52 +00:00
csoler
b0f0e4c380 Added sources to RS link download (now works for copy links from browsable only files). Removed unused optional list of sources from RetroShareLink::process()
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3539 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-09-24 21:01:13 +00:00
thunder2
5e2921ae98 Cleaned ForumsDialog and MessagesDialog and updated german translation.
New class for working with tag translation - TagDefs.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3476 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-09-12 22:17:17 +00:00
thunder2
52183a0c75 Moved the tag feature in messages from the gui to the libretroshare.
Changed rsmsg interface and item classes so need full recompile.
Created new notifier for tag changes - NOTIFY_LIST_MESSAGE_TAGS.
Changed serialiser tests for message items.

After that all tags are reset to standard and all assigned tags to messages are lost.
Please delete the file msg_locale.cfg in your profile directory.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3381 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-22 22:12:26 +00:00
thunder2
32afd370bb Moved notify of new messages in MainWindow from QTimer to signal messagesChanged.
Show own tray icon for new messages.
Removed unused member p3Forums::mForumsChanged.
The message service send a notify on p3MsgService::markMsgIdRead too.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3353 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-09 12:16:21 +00:00
thunder2
86ae9983d1 New read status for forum messages.
New mail messages are marked with a new icon in front of the title.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3352 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-08 22:58:10 +00:00
leander-256
4bb4fc11e2 This intimidating patch renames libretroshare/src/rsiface/ to
libretroshare/src/retroshare/

All the relevant headers have been modified to reflect that change.

This allows installation of libretroshare on a system, headers will
be put in $WHEREVER/retroshare/ and we keep the ability to compile
against them, be it on the system or in the SVN tree.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3342 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-06 09:40:23 +00:00
thunder2
569ac25843 cleaned include files
- removed some dependencies between other header files
- removed many includes of <QtGui> and replaced it with only needed files

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3312 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-23 18:52:58 +00:00
thunder2
daf0ea50ee PeersDialog/MessengerWindow:
- send recommended friend as message
- paste recommended friends as "retroshare://person|..." from clipboard

reworked retroshare link handling
- added new type -> retroshare://person|<name>|<hash>
- added processing of links to RetroShareLink and RSLinkClipboard and removed all processing in anchorClicked of QTextBrowser 
- fixed parseClipboard to handle all found links in clipboard
- disabled the processing of the clickable links (RetroShareLink::processUrl), because QUrl can't handle the RetroShare links properly

removed memory leaks of the QAction in some context menus


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3292 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-15 11:25:34 +00:00
leander-256
36a9159884 Fixes two compiler warnings:
- call of GeneralPage() with null pointer rather than the boolean false
- decomposition of a suspicious line into safe expressions (problem related to
  sequence points)


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-09 01:10:27 +00:00
thunder2
73bfabd733 MessagesDialog: removed hidden columns msgid and srcid and store them in data (Qt::UserRole) of the first column
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3203 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 12:17:46 +00:00
defnax
c40bb75062 fixed column count for messages file list
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3194 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-23 14:09:29 +00:00
defnax
051ce984ed set TextAlignment for Attachments AlignCenter
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3171 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-19 18:06:04 +00:00
defnax
76c6989164 added to store the listSplitter state to settings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3168 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-19 17:46:19 +00:00
thunder2
5b1fae0123 all messages in MessagesDialog are now editable from context menu or with double click
changes from defnax with some corrections from me

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3135 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-14 18:16:32 +00:00
defnax
1d4a02141f Added to use only one Label for Total Count, count selected Box on Total Label
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3114 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-12 15:11:42 +00:00
thunder2
342768e626 improvements messages:
- save msgId in configuration file
- enable previous improvements read/unread state and tags

new function for creating backups of a file
bool createBackup (std::string sFilename, unsigned int nCount = 5);

currently its only available for windows compile. maybe there is a linux developer who change it for linux.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-04 23:39:33 +00:00
defnax
dd7e074791 added TabWidget to Messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3058 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-03 23:41:46 +00:00
thunder2
08ea7232f7 bugfix in MessageDialog, rs could crash when removing two or more messages at once
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3057 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-03 22:12:07 +00:00
thunder2
f06ed5fbed the default tags can be reset to standard in the settings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3053 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-02 12:11:09 +00:00
defnax
141fdbe6fe reorder the default tags
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3052 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-02 00:26:15 +00:00
defnax
d7816689e4 added for tag list items default folder icon
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3051 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-01 23:27:34 +00:00
thunder2
7c73ecef47 improvements MessagesDialog:
- filled tag list and filter the messages after the selected tag
- state of tag list is saved in settings

bugfix MessagesDialog:
- remove tag with uncheck of menu item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3048 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-01 22:14:52 +00:00
defnax
647c08c8da Added Folders and Tags Header Buttons, and moved "Total Inbox" and "Total Sent" to the Bottom into a QLabel.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3043 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-31 21:27:57 +00:00
thunder2
3fdd570f62 the tags are colored in the menu with style cleanlooks
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-30 00:00:15 +00:00
defnax
6dd4e0e617 fixed wrong spelling
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3021 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-28 17:29:21 +00:00
thunder2
c8a805b8e7 added trash in msgservice and trash folder in MessagesDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3020 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-28 14:42:54 +00:00
thunder2
5b4985e3d3 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
2010-05-27 19:48:52 +00:00
defnax
79688674ec changed Messages Context menu order
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3006 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-26 15:20:31 +00:00
thunder2
12af62d54f disabled the new read/unread state in MessagesDialog
reason: the member msgId is not static yet

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2996 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-25 12:05:14 +00:00
thunder2
b0c1467abe improvement MessagesDialog:
- enabled draft box

bugfix MessagesDialog:
- correct from and to in list and message header

changes MessageComposer:
- cleaned channel part


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2994 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-25 09:32:14 +00:00
defnax
1fb7fb005c rename class and source ChanMsgDialog to MessageComposer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2978 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 19:13:41 +00:00
defnax
75349f4fe8 fixed to use ", " instead ";" to for distance to next peer name
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2977 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 18:31:40 +00:00
defnax
718ed562ca set for Attachments column to display a icon and fixed size
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2976 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 18:17:08 +00:00
thunder2
cef2c1218f improvements MessagesDialog:
- new read/unread state - stored locally
- show all recipients in Outbox, Sentbox and Draftbox


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2975 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 17:21:30 +00:00
thunder2
6baf56285b reworked settings
now there is only one global object for loading and saving settings

RshareSettings *Settings;

the class RSettings can be used too, but it is not prefered, because the default settings has no affect

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2964 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-20 21:53:27 +00:00
thunder2
8673924374 removed unnecessary method
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2950 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-19 19:44:06 +00:00
thunder2
4cf10ee99a fixed compiling error, damn case sensitive file names
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2947 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-18 22:41:44 +00:00
thunder2
71b3783a9a improved MessagesDialog:
- saved state of files view, filter column, state of message tree and splitter position
- initial selection of inbox
- new filter mode: content

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2946 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-18 22:37:18 +00:00
thunder2
c3c6480f4b changed the usage of "QMenu*" to a local "QMenu"
removed usage of "new QMouseEvent", it was a memory leak
cleaned some includes

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2910 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 20:55:44 +00:00
thunder2
84a87fa11b New methods for calculating the count of peers and messages. It should be faster than getting all data in std::list.
Now used in MainWindow.cpp, MessagesDialog.cpp and peerstatus.cpp

void p3Peers::getPeerCount (unsigned int *pnFriendCount, unsigned int *pnOnlineCount);
void p3Msgs::getMessageCount(unsigned int *pnInbox, unsigned int *pnInboxNew, unsigned int *pnOutbox, unsigned int *pnDraftbox, unsigned int *pnSentbox);


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2898 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-13 19:20:40 +00:00
thunder2
0c46da0dd2 Changed settings to local variable, no more as pointer on all classes.
RshareSettings settings;
settings.value(...);

It should lower memory usage and removes memory leaks.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-11 20:02:52 +00:00