Commit Graph

26 Commits

Author SHA1 Message Date
felisucoibi
b709e68c72
Update misc.cpp 2019-12-02 11:00:35 +01:00
felisucoibi
2340c8ff20
Update misc.cpp 2019-12-01 12:28:07 +01:00
hunbernd
50ee33b229 RS_ prefix 2018-12-31 22:36:30 +01:00
hunbernd
584b9039c9 Added switch to enable native dialogs at build time
CONFIG+=use_native_dialogs
2018-12-31 22:36:30 +01:00
csoler
bc3a71d3f5
fixed license in util/ lang/ and idle/ 2018-12-27 14:39:10 +01:00
RetroPooh
1f207ba05c create collection dialog filename as dir name 2017-11-14 19:52:48 +03:00
Phenom
40cf76808c Fix compilation and some new warnings. 2016-12-21 21:23:54 +01:00
csoler
8de9ee8b8d made friendly time unit returns empty string when time is 0. Fixes 46y display in search dialog 2016-12-19 23:29:04 +01:00
felisucoibi
628177c302 fix for windows compile 2016-11-16 11:22:23 +01:00
felisucoibi
ddff9f5358 Improved total file size and a small bug with a comma in TB string of file size 2 CLEANED CODE 2016-11-16 11:03:02 +01:00
csoler
8c8cc88503 fixed problems with negative time shifts in DirDetails causing multiple GUI bugs in File Lists and Search 2016-11-14 21:58:58 +01:00
csoler
5a55de5ec8 added missing DontUseNativeDialog flag in misc.cpp 2016-08-04 22:01:30 +02:00
Phenom
6935441e4f Fix other QFileDialog call in misc adding DontUseNativeDialog option. 2016-07-31 16:23:41 +02:00
csoler
1707c07937 added DontUseNativeDialog as default flag in file dialog in order to avoid some crashed when not using it 2016-07-29 21:58:59 +02:00
csoler
6ef761e4e5 added jpeg format to thumbnail creation/loading (patch from cave)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8012 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-03-11 20:20:32 +00:00
csoler
481ee246b5 added avatars to identities.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7875 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-01-25 22:09:12 +00:00
csoler
b593a918a0 optim: changed postfixed ++ into prefix++ for non trivial operators, replaced test on std::list::size() by std::list::empty() (Patch from Phenom, modified)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7627 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-10-21 22:33:02 +00:00
defnax
e65f73a44d Added new Patch from Phenom (AddRSCollectionEditor_v0.6_7386)
Some Improvements : added submenu, Edit and view mode.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7388 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-05-29 14:49:45 +00:00
csoler
fc56b95d3f show fingerprint in ConfCertDialog, and splitted the string with spaces. Removed the use of the ambiguous peer id for both pgp and locations ids
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6900 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-11-09 22:52:26 +00:00
csoler
a9290e9dd7 fixed image resizing for channel thumbnails. Apparently there is a bug in Qt preventing Qt::KeepAspectRatioByExpanding to work correctly
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6800 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-10-04 19:40:29 +00:00
csoler
6e536ae67e fixed typo
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5251 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-23 13:31:28 +00:00
csoler
bad047d7fe fixed stupid bug in friendlyUnits()
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5250 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-23 13:28:04 +00:00
thunder2
ee3677da2b Added and modified patch from AsamK
- Fixed bug in Qt for Windows Vista and higher. Convert path from native separators of filenames from QFileDialog::getOpenFileName(s)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5213 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-11 21:24:55 +00:00
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