RetroShare/retroshare-gui/src/util
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
..
dllexport.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
EventFilter.cpp Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
EventFilter.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
EventReceiver.cpp Removed unused parameter warnings in retroshare-gui. 2011-08-12 14:06:29 +00:00
EventReceiver.h Fixed wrong size of the transfered link from the command line in EventReceiver. 2011-04-18 22:15:24 +00:00
framecatcher.cpp introduced frame catcher to channels, add framecatcher in Retroshare.pro to build it in 2010-11-19 00:47:18 +00:00
framecatcher.h introduced frame catcher to channels, add framecatcher in Retroshare.pro to build it in 2010-11-19 00:47:18 +00:00
global.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
Interface.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
log.cpp -added Log feature for QT . 2008-08-15 17:49:57 +00:00
log.h -added Log feature for QT . 2008-08-15 17:49:57 +00:00
misc.cpp Applied patch from AsamK and fixed german translation. 2011-08-12 20:27:05 +00:00
misc.h Applied patch from AsamK and fixed german translation. 2011-08-12 20:27:05 +00:00
MouseEventFilter.cpp Minor fixes to compile with GCC 4 under Linux 2008-11-02 15:20:42 +00:00
MouseEventFilter.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
NonCopyable.cpp Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
NonCopyable.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
PixmapMerging.cpp Removed the single notify systray icon (combined icon) and combined it with the normal RetroShare systray icon. 2011-07-13 19:24:33 +00:00
PixmapMerging.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
printpreview.cpp Added Print Button 2008-03-26 14:22:51 +00:00
printpreview.h Added Print Button 2008-03-26 14:22:51 +00:00
RetroStyleLabel.cpp Removed unused parameter warnings in retroshare-gui. 2011-08-12 14:06:29 +00:00
RetroStyleLabel.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
RsAction.cpp Removed unused parameter warnings in retroshare-gui. 2011-08-12 14:06:29 +00:00
RsAction.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
rsqtutildll.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
rsutildll.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
rsversion.cpp set different icon and Text label when creating Channels from ChannelFeed. 2009-08-14 11:49:15 +00:00
rsversion.h update changelog and rsversion 2011-08-10 21:49:17 +00:00
rsversion.in added for windows compile and revision bat files, and template rsversion.in 2010-06-01 23:03:12 +00:00
stringutil.cpp -added Log feature for QT . 2008-08-15 17:49:57 +00:00
stringutil.h -added Log feature for QT . 2008-08-15 17:49:57 +00:00
Widget.cpp Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
Widget.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
WidgetBackgroundImage.cpp Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
WidgetBackgroundImage.h Created V0.3.x branch and moved the head into the trunk directory. 2007-11-15 03:18:48 +00:00
win32.cpp Removed unused parameter warnings in retroshare-gui. 2011-08-12 14:06:29 +00:00
win32.h * Cleaned up fonts for MacOSX. 2008-08-16 17:10:01 +00:00