Commit Graph

11 Commits

Author SHA1 Message Date
thunder2
4cb844c44d Removed most of the usages of std::ostringstream in the gui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-28 18:02:49 +00:00
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
thunder2
f7252fd693 Added three new methods on misc: getOpenFileName, getOpenFileNames and getSaveFileName. Please use this rather than QFileDialog.
Added save and restore of the last used directories for the following types
- Extra files
- Certificates
- History
- Images
- Messages
- Blogs (not tested)
It is easy to change.

Added attach of multiple files at once in CreateForumMsg.
The RetroShare links of the added files in CreateForumMsg are added with new style and as anchor with size information.
Added translation to some file dialogs.
Removed (commented out) not needed methods in NetworkDialog.
Fixed handling of filenames with umlauts when adding extra files.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3894 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-12-03 00:54:40 +00:00
thunder2
b79341503e Removed new lines of the QLineEdit input fields after input in forum, channel, message and group.
Removed size hint of he trees to show erroneous texts.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3768 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-09 19:57:05 +00:00
thunder2
f3ec123b88 Show the user count of DHT in an userfriendly format.
Hide user count when DHT is off.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3761 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-08 12:25:49 +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
6b2292e64f fixed header misc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2609 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-23 00:36:47 +00:00
defnax
12450ececa added years to userFriendlyDuration
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1687 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-25 16:19:58 +00:00
defnax
0aeea4724a set days from 100 to 365 days.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1685 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-25 12:32:05 +00:00
defnax
5ecf99e8aa * Fixed to Show the Age in this format :. 23d 21h 23m
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@820 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-18 14:38:30 +00:00
defnax
27cfb255eb * Added Formating for File Size KIB,MIB,GIB and for AGE 1d2h3m
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@818 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-18 01:42:17 +00:00