Commit Graph

42 Commits

Author SHA1 Message Date
wmayer
e993a9f982 pre-select name filter in import/export file dialog 2019-07-21 12:33:42 +02:00
Mateusz Skowroński
ac508516da Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
wmayer
3294fbfe94 do not make default suffix lower case 2018-12-29 13:52:28 +01:00
wmayer
64b7dc1c41 add runtime option to choose between native and Qt file dialogs 2018-11-30 12:37:26 +01:00
wmayer
338cd1adda If option USE_QT_FILEDIALOG is used then for Qt5 we still have to set QFileDialog::DontUseNativeDialog 2018-11-28 15:50:21 +01:00
wandererfan
f0bc36e6ff Gui::FileChooser respect Qt Dialog Flag
- Gui::FileChooser was not respecting the USE_QT_FILEDIALOG
  compile flag.
2018-09-23 19:37:19 +02:00
luz.paz
9167064fc1 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
Mateusz Skowroński
ed671ef65e Fix issue with working directory. 2017-11-12 14:29:56 -02:00
wmayer
8e694c3820 add cmake option to use Qt or native file dialogs 2017-10-12 16:01:24 +02:00
Przemo Firszt
7dc84d42ea Enable native file dialog by default on linux
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2017-10-08 19:17:04 +02:00
wmayer
8916b9e89d add define to better control if native or Qt file dialogs should be used 2017-10-01 17:28:21 +02:00
Peter Lama
991573f1fc Fix macOS button layout in property editor
The size of the "..." button calculated by QMacStyle was not correct,
causing other widgets in the layout to be clipped.

Also, set the size of all "..." buttons the same way.
2017-09-26 10:56:55 -03:00
Mateusz Skowroński
14ec65c9e0 Fix crash in Gui::FileOptionsDialog while using Qt5. 2016-12-25 02:35:38 +01:00
wmayer
11ffc5bca9 Linux specific Qt5 port 2016-12-13 19:47:32 +01:00
wmayer
c2479b2fb4 issue #0001588: File browser dialogs initial starting directory ignores current working directory 2016-10-16 18:03:45 +02:00
wmayer
d1fe837e55 issue #0001588: File browser dialogs initial starting directory ignores current working directory 2016-10-16 17:35:08 +02:00
wmayer
7fdf39244d set directory of file dialog when opening file by double-click, recent files list or drag and drop 2016-10-16 14:47:13 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
4982dba1fa + fix Debian bug #811200 2016-02-15 23:01:40 +01:00
Mateusz Skowroński
f48f0f69be Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Mateusz Skowroński
9fe645d660 QFileDialog::selectFilter() is obsolete in Qt4. Replace it with selectNameFilter().
This change is Qt4/Qt5 neutral.
2015-12-24 12:49:08 +01:00
Mateusz Skowroński
984f4e335b QFileDialog::filters() is obsolete in Qt4. Replace it with nameFilters().
This change is Qt4/Qt5 neutral.
2015-12-24 12:48:49 +01:00
Mateusz Skowroński
eef82c47e7 QFileDialg::selectedFilter() is obsolete in Qt4. Replace it with selectedNameFilter().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:46 +01:00
Mateusz Skowroński
25e68f180c QFileDialg::setFilters() is obsolete in Qt4. Replace it with setNameFilters().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:45 +01:00
wmayer
2180f02f1c + fix comment, convert native separators to UNIX separators 2015-10-25 14:16:38 +01:00
Przemo Firszt
a4c8a562ff GUI: improve App::PropertyPath directory selector
Editing direcotry in lineEdit was open to escaped character problems
i.e. \t or \n which can be pert of notmal directory path were converted
to tab or new line. Also leaving the lineEdit without hitting Enter was
discarding changes.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:19 +01:00
Przemo Firszt
22451eb9ac GUI: Add completer to directory selector
Directory selector now suggest directory names

Probably similar fixes should be applied to FileChooser in File mode

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:51 +02:00
wmayer
3c1e303400 + fixes #0002209: Files that have a dot in name do not get the extension 2015-09-13 21:25:18 +02:00
wmayer
7eaf6cba47 + fixes #0001928: The export CAD dialog in PartGui always adds an extension to the filename 2015-01-20 21:38:38 +01:00
Michael Georg Hansen
330700af04 Use the FreeCAD's working directory as initial directory for FileChooser. 2015-01-05 23:01:52 +01:00
wmayer
a8f007ba12 + fixes #0001760: FC fails to load a *.FCStd file if the filename lacks the *.FCStd file extension 2014-12-30 00:31:39 +01:00
wmayer
7356dbd283 + fixes #0001877: associate a grayed out icon with Freecad's backup files (fcstd1) 2014-12-28 23:54:08 +01:00
wmayer
de62919885 + fix gradient background issue when creating snapshot, remove superfluous signal from FileOptionsDialog 2014-11-08 14:50:27 +01:00
wmayer
3d7c8808bb + fixes #0001400: Revert back to using native file dialog on Mac OS X 2014-02-12 10:50:02 +01:00
wmayer
2cbf57259f + Use new icons in Mesh workbench 2013-12-20 16:28:14 +01:00
wmayer
6deb50ba57 Replace native file dialog with Qt's file dialog on Linux 2013-06-29 15:11:48 +02:00
wmayer
7403e4ac65 Activate new file dialog for Linux 2013-06-27 17:30:33 +02:00
wmayer
3ddf522d9f Auto append file extension in file dialog 2013-06-27 17:07:39 +02:00
wmayer
7e8269ac4c Fix address of FSF in copyright notice 2012-07-05 22:59:12 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00