Commit Graph

145 Commits

Author SHA1 Message Date
leander-256
4dc30963cb Fix GCC 4.5 errors, which does not accept any more calling the constructor like
this: C::C()

For a more detailed and correct explanation see Harald van Dijk's comment here:
http://blog.flameeyes.eu/2010/06/02/tinderbox-summary-for-may-2010-gcc-4-5-berkeley-db-5-0-libpng-1-4


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3132 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-14 11:57:22 +00:00
thunder2
0d1eaba890 p3StatusService::getStatusQueue
- memory leak -> "RsItem* item" was not freed, when "dynamic_cast<RsStatusItem*>" failed
- optimized return of std::list as parameter and not as return. return will copy the list and its not necessary

p3StatusService::getStatus
- memory leak -> items in "std::list<RsStatusItem* > status_items" was not freed
- potential crash, when receiving a status for an unknown peer

p3Peers::getPeerDetails
- optimized - call to "AuthSSL::getAuthSSL()->OwnId()" only once
- optimized - add ip addresses directly to "d.ipAddressList"

PeersDialog::insertPeers
- fixed possible crash, when ssl child has disappeared and was removed from tree, there was a missing continue

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3125 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-13 12:26:23 +00:00
thunder2
b715a577b0 changed sort to case insensitive in peers tree
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-11 23:28:05 +00:00
thunder2
b343b9699c improvements PeersDialog
- save and load state of peer tree and splitter
- removed maximum length of dynamic dns line edit
- sort peers (only top level items) after internal value of state, not the name

cleaned some include files

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3087 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-08 21:38:36 +00:00
defnax
749945dda8 added a idle icon
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3076 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 23:27:08 +00:00
defnax
3056ec0875 Added to display Friends rsstatus on PeersDialog, icon and color change when Friend is Idle, Away or Busy
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3075 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 22:42:32 +00:00
thunder2
74978b77b7 some optimizations in PeersDialog::insertPeers
do not call too much into the libretroshare

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3031 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-29 21:56:34 +00:00
defnax
b99617d523 clean up unused functions in PeersDialog and set minimum size for items to 26.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2998 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-25 15:47:12 +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
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
a8c4b3b107 - moved the chat setting to the section [Chat]
- cleaned some comments of the settings classes

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2940 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-18 18:02:51 +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
defnax
24e4058bee store the font change on PeersDialog too
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2907 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 16:54:30 +00:00
defnax
47de2af50c added storing and loading Chat Font
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2903 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 12:42:31 +00:00
csoler
bed286030e suppressed weird characters at the beginnign of this file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2902 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 11:48:20 +00:00
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
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
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
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
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
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
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
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
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
defnax
c91bc09c74 Added functionality to save a Privat Chat session and GroupChat History via ToolButton
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2807 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-27 22:08:38 +00:00
chrisparker126
76a4c34440 rsstatus
-implemented simple rsStatus for messenger window
- fixed minor bug with messenger window (starts new pop-up chat dialog when peer responds, if private chat started from messenger window) solution: messenger windows start peers dialogs pop-up chat dialog instead


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-15 12:02:23 +00:00
csoler
f8d6590952 ported v0.5.0 commits 2561,2562 and 2574 to trunk
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2575 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-17 15:34:36 +00:00
csoler
0705d9dfc7 added paste multiple links
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2516 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-10 23:09:35 +00:00
csoler
a657def956 cleaned the RS link code, factorized the parsing into a single class. Still missing: copy/paste of multiple links
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2514 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-10 21:38:26 +00:00
joss17
6c686496a9 reengineered the network dialog insert connect method
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2492 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-06 21:30:18 +00:00
defnax
63d8de8848 fixed to display pasted plaintext retroshare link in public chat in html format to get click able.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2483 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-04 16:44:20 +00:00
csoler
6943dbc9ac added smotth interpolation flag to image scaling
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2398 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-23 14:11:47 +00:00
defnax
e6678bdf9a added to can use *.gif pictures now too for Avatars.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2387 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-22 12:53:24 +00:00
csoler
5263a49038 fixed bug in clink on link in group chat
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2372 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-19 19:37:24 +00:00
defnax
459c364636 Added action to GroupChats Button Menu for disable/enable Emoticon's, not yet stored
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2371 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-19 18:33:35 +00:00
joss17
4435ccf228 remove a bug in peersdialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2317 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-14 14:17:58 +00:00
joss17
46933bf791 still log cleanings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-10 21:53:37 +00:00
joss17
b46cf457db further log cleanings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2271 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-10 10:56:54 +00:00
joss17
1c51a0faab still further log cleanings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2240 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-08 16:42:26 +00:00
joss17
6f1e4623ab further log cleanings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2239 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-08 14:06:43 +00:00
joss17
5aff139382 further log cleanings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2235 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-07 23:01:46 +00:00
joss17
db225bdcb7 re implement chat parsing for urls. External web browser call might not work on some systems
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2224 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-07 12:36:37 +00:00
joss17
d8ae27123e gui cleaning
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2214 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-06 20:49:24 +00:00
defnax
d490f6b0fe fixes on QMessagesBox's to show a default window icon
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2196 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-04 23:12:35 +00:00
defnax
3b1fe9db02 added required libgpgme and libgpg-error to installer script
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2193 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-04 21:21:56 +00:00