Commit Graph

1302 Commits

Author SHA1 Message Date
thunder2
e8f5bb5167 PeersDialog: "QPixmap picture" not needed as member
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2900 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 11:17:19 +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
defnax
e5667a915d fixed bug with ShareDialog loading
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2894 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-13 12:11:03 +00:00
defnax
604fd1872a fixed to add a new line when retroshare link is added
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2893 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-13 09:38:24 +00:00
thunder2
946d09cb72 Fixed crash and endles loop with refill in forums
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-12 22:23:05 +00:00
thunder2
b242b73f31 Memory leaks:
- ftController::copyFile -> buffer and file pointer leaks in case of error
- PeersDialog::insertSendList -> new QTreeWidgetItem for all online peers, this function is not ready yet
- PeersDialog::insertPeers -> gpg_item = new QTreeWidgetItem(0); in case of no more accept connection
- pqissl::reset -> missing SSL_free of ssl_connection

Missing return:
- IntroPage::nextId


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2891 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-12 20:10:22 +00:00
leander-256
faace1f322 Memory leak fix
Instantiate the smiley pop-up window (and all its buttons) only once.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2890 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-12 19:03:30 +00:00
leander-256
988c6c31f5 Fixes two problems in the current group chat:
- the parser fails to embed two links in the same sentence
- the parser can potentially put smileys in the middle of <a> tags

Solution:
Since the message is in HTML, it is parsed into a DOM tree, then that DOM tree
is traversed and only the text nodes are parsed (see HandleRichText.cpp for
details).

Bonus fixes:
- missing std:: for endl (which was falling back to its Qt counterpart)
- commenting useless code in PeersDialog::smileyWidgetgroupchat()
- replacing int by size_t
- RetroShare.pro now queries gpgme-config for its include path


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2888 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-12 00:17:10 +00:00
thunder2
6b3f51c626 Bugfix: Attach a file in message dialog inserts the link at current cursor position and does not overwrite the whole message text
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2887 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-11 20:53:21 +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
defnax
2f8d21ab76 clean up some compile warnings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2885 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-10 20:38:59 +00:00
thunder2
c5cebce587 MessagesDialog:
- columns in messages list in MessagesDialog changed to defines
- fixed sort of a non date column with same id, date is used as second compare

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2884 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-10 19:55:59 +00:00
csoler
23a0b60e59 fixed chat bug that was truncating some messages, due to using a uint16_t to store a local size. Totally backward compatible. This fix might also affect blog messages.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2880 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-09 20:06:19 +00:00
thunder2
20908b2c48 Count of new messages in systemtray tooltip corrected
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2872 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-09 08:01:52 +00:00
chrisparker126
4a410fbfb6 removed references to qblogs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2869 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-08 17:03:28 +00:00
chrisparker126
c5e8669ec0 Channels
- removed settings button 
 - deals with hashing of its own files
 
 subfileitem
 
 - absolved from file hashing responsibility 
 - added play button functionality(taken from transfer dialog, thanks)
 
 blog
  
  - removed file attachments feature (only for blogging ), will add pic support later
  
 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-08 16:21:57 +00:00
thunder2
a640995298 Memomry leak:
- Member _settings on some settings pages was not deleted


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2864 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-07 23:58:17 +00:00
thunder2
f239e7e4d4 Improved MessagesDialog:
- corrected calculation of message counts
- p3MsgService::checkOutgoingMessages -> notify when message was sent
- refill of message list without clear, selected messages and scroll position are not changed
- corrected sorting of date with only time for today
- changed context menu in message list

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2863 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-07 22:23:38 +00:00
defnax
c611cdf6b9 set GroupChat default font size to 11 pt.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2860 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-06 17:22:30 +00:00
defnax
5de5cf2fa5 Added a MessagesBox Question when removing a Friend
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2859 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-06 17:04:09 +00:00
thunder2
aae947ecd8 Workaround for erroneously accept of Qt::Key_Delete on QAbstractItemView
see http://bugreports.qt.nokia.com/browse/QTBUG-8270

solved for PeersDialog, MessagesDialog and TransfersDialog


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2858 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-06 14:39:50 +00:00
leander-256
47f97e20b9 Missing include for uint32_t type with GCC 4.4.3
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2857 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-06 13:01:40 +00:00
thunder2
086c5f8e53 Bugfix: show correct signed / unsigned state of forum messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 23:06:05 +00:00
thunder2
c3d92dc472 Source code maintenance
Memory leaks:
- NotifyQt::UpdateGUI -> popup messages (toaster) stay hidden in memory
- p3disc::handleIncoming -> item was not deleted when RsDiscHeartbeat (memory leak every tick)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2852 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 22:03:43 +00:00
defnax
03fa79eda0 disabled not working sound events
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2851 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 12:56:51 +00:00
defnax
c720a32610 Added Sound Notifications changes by callix, for Friend Connects and Chat Messages, need to be set a *.wav file on Sound Settings.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2849 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 11:47:29 +00:00
defnax
8b9b8e9f6b Added stylesheet for MsgItem
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2848 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 00:28:20 +00:00
thunder2
5bb023104d Source code maintenance
Memory leaks:
- SharedFilesDialog::sendLinkToCloud -> new AddLinksDialog
- SharedFilesDialog::addLinkToCloud -> new AddLinksDialog
- ChannelFeed::channelListCustomPopupMenu -> new QAction
- ChannelFeed::createChannel -> new CreateChannel
- ChannelFeed::openMsg -> new GeneralMsgDialog
- ChannelFeed::createMsg -> new CreateChannelMsg
- NewsFeed::openMsg -> new GeneralMsgDialog
- BlogsDialog::openMsg -> new GeneralMsgDialog
- BlogsDialog::createBlog -> new CreateBlog
- BlogsDialog::openMsg -> new GeneralMsgDialog
- BlogsDialog::createMsg -> new CreateBlogMsg
- NewsFeed::deleteFeedItem -> Feed items are not deleted, just switched to hidden

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2847 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-05 00:05:36 +00:00
thunder2
4e1395a14a Source code maintenance
Memory leaks:
- TransfersDialog::insertTransfers -> takeRow

Improvement:
- updating display of DetailsDialog in TransferDialog
  todo: maybe show summary of all selected files, calculating in TransfersDialog::updateDetailsDialog


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2846 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-03 22:44:53 +00:00
defnax
8feeb2adb3 Added Chat Settings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2845 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-03 21:17:36 +00:00
defnax
73a64c9269 fixed Settings icon on ChannelFeed
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2844 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-03 21:04:36 +00:00
csoler
8f4c6894ce correct bug with selection with human readable delegate.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2843 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-03 20:22:38 +00:00
thunder2
fb58beef4f Source code maintenance
Memory leaks:
- PeersDialog::insertPeers -> takeTopLevelItem, takeChild

- activate correct page on creating a new forum or channel from PeersDialog (problems with RS_RELEASE_VERSION)
  new static method to activate a page MainWindow::activatePage

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2842 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-03 00:09:55 +00:00
csoler
bffcbfe467 fixed the sorting of SearchDialog by age and by size, by using proper delegates for displaying the numbers. Removed the SR_REALSIZE_COL column, that is no longer necessary.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2840 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 21:37:54 +00:00
defnax
e0f99aef65 added to display Tooltip's for Previous and Next Button
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2837 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 19:51:35 +00:00
defnax
d2c3c1b64c Fixed Channel Detail Labels, forget some renaming
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2836 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 16:18:51 +00:00
defnax
d516dfbfa8 Set back Unsubscribe Button on ChannelMsgItem only visible for NewsFeed
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2834 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 14:11:56 +00:00
thunder2
8ce338c49c Source code maintenance
Memory leaks:
- NetworkDialog::loadcert -> new QFileDialog
- NetworkDialog::insertConnect -> takeTopLevelItem
- NetworkDialog::on_actionAddFriend_activated -> new QFileDialog
- main -> new StartDialog, new GenCertDialog

to be continued

Info:
Pointer from takeTopLevelItem must be deleted

Can someone convert the StartDialog from QMainWindow to QDialog ?


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2833 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 13:12:46 +00:00
defnax
36573c459d fixed images.qrc path
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2831 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 12:32:42 +00:00
chrisparker126
d4d09c2d87 - removed auto download combo-box
- channels service now will be explicit download if you subscribe
  - the same way with you cannot selectively choose the news that appears
  
 - added settings 
  - aim is where user can choose max d/l size permitable
  

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2830 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 12:27:27 +00:00
chrisparker126
352c4559ad removed support for channels
- this is now explicitly only for forums

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2829 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 12:21:20 +00:00
chrisparker126
bfa2da61f5 new create channel ui - essentailly a copy of createforums explicitly for channels
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2828 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 12:20:30 +00:00
chrisparker126
bb1fe255d3 - removed play adn d/l button (channels is now geared toward auto d/l of files)
- enabled unsubscribe on item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2827 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 12:17:43 +00:00
chrisparker126
5b24a2c50f added channel id for other channels groups so context menu can work for them (already worked for 'own' channel group)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2826 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 11:43:04 +00:00
chrisparker126
564e25908e - create channel now uses own createchannel widget rather than forums
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2825 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 11:41:23 +00:00
joss17
5a98d72376 add the dyndns settings to own profile display tab
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-01 19:26:55 +00:00
thunder2
9cf20fd9fd Changes in ForumsDialog:
- modal window for creating new forum
- refill forum and thread tree
- enabled next and previous button
- set enable/disable state of menu items

Open problem:
- last post time not updated

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2822 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-01 19:03:35 +00:00
csoler
401dac86e9 improved readability of cert generation dialog. Added tooltips, information, and wait cursor
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2821 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-01 15:17:23 +00:00
csoler
fdedc400dc corrected bug in search: files with size > 2Gb would not be added to transfers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2819 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-30 22:17:14 +00:00
thunder2
f88cd1c0aa Show correct state of subscribe button in forum feed
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-29 19:00:27 +00:00