RetroShare/retroshare-gui/src/gui/chat
thunder2 0fbada0eba Applied patch from AsamK and fixed german translation.
Reduced code duplication with avatar picture loading, by creating two new functions that handle image choosing and thumbnail creation.

two new functions:
bool misc::getOpenAvatarPicture(QWidget *parent, QByteArray &image_data)
QPixmap misc::getOpenThumbnailedPicture(QWidget *parent, const QString &caption, int width, int height)

getOpenThumbnailedPicture opens a QFileDialog to let the user choose a picture file. This picture is converted to a thumbnail and returned as a QPixmap.

getOpenAvatarPicture calls getOpenThumbnailedPicture and converts the result to a PNG byte array.

All three avatar loading functions now call getOpenAvatarPicture
Furthermore Channel Logo and Channel Msg thumbnail functions now use getOpenThumbnailedPicture

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4561 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-12 20:27:05 +00:00
..
ChatStyle.cpp Added a basic description of the chat style. 2011-03-12 21:09:53 +00:00
ChatStyle.h Enabled clickable links in forums and messages. 2010-12-30 17:09:32 +00:00
HandleRichText.cpp Moved the fill function of the ForumsDialog to a QThread. 2011-06-07 22:28:07 +00:00
HandleRichText.h Added a new button in the forums dialog to download all links in the selected forum message. 2011-05-15 20:21:14 +00:00
PopupChatDialog.cpp Removed unused parameter warnings in retroshare-gui. 2011-08-12 14:06:29 +00:00
PopupChatDialog.h New dialog for defining own colors for the private chat window. 2011-04-09 22:52:52 +00:00
PopupChatDialog.ui Optimized layout of the private chat window. 2011-07-07 23:24:48 +00:00
PopupChatWindow.cpp Applied patch from AsamK and fixed german translation. 2011-08-12 20:27:05 +00:00
PopupChatWindow.h Added a new image to the private chat window to set the window always on top. 2011-07-08 22:33:26 +00:00
PopupChatWindow.ui Added a new image to the private chat window to set the window always on top. 2011-07-08 22:33:26 +00:00