Commit Graph

52 Commits

Author SHA1 Message Date
Benjamin Nauck
08c9a191e2 Add template based SelectionSingleton::countObjectsOfType
Also convert code to use this new method
2025-01-13 18:55:15 +01:00
Max Wilfinger
7d21d9edb8 Fix source string typos mentioned on Crowdin (#15261) 2024-07-08 17:18:31 -05:00
Johannes Wüller
0e24e121eb Fix backwards-compatible Qt6 warnings 2024-05-13 11:39:24 -05:00
wmayer
e42aeb7a42 Drawing: Fixes #12953
The deprecated Drawing module still uses some classes that have been removed with Qt6.
These are the classes:
* QRegExp that is replaced with QRegularExpression
* QGLWidget that is replaced with QOpenGLWidget
2024-03-16 09:42:34 +01:00
wmayer
789912d745 Drawing: Apply clang format 2023-09-10 12:37:47 +02:00
Chris Hennes
614c01c0b1 Gui: Translate 'page' for new pages 2023-08-12 17:54:26 -04:00
Uwe
20a3d4b7ed [Drawing] Gui: remove unused headers
- also some sorting
- also enable precompiled header
2022-12-10 05:59:51 +01:00
wmayer
51ecdbdabe Drawing: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 11:31:37 +02:00
wmayer
46117f0ae1 Drawing: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
1ca7429705 Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
wmayer
b4ee9fa345 Drawing: remove some more deprecated Py2 code 2021-04-26 11:12:34 +02:00
wmayer
c814eb1a50 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
3aa0432425 fix further file names vulnerabilities in modules 2019-10-03 02:37:25 +02:00
wmayer
a247b7e6a5 force strict ISO C++ (-Wpedantic)
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00
wmayer
ae7c53b951 Py3: fix opening file 2018-10-11 12:06:07 +02:00
luzpaz
56111a0810 Typos: user-facing and trivial
Several typos and uniformity fixes.
Note: 
*SCL/SimpleDataTypes.py is a upstream stepcode file whose fiz has been submitted upstream and accepted.
*the header of Tools/generateBase/generateMetaModel_Module.xsd  had redundant data. It has been removed. Please double check it.
2017-12-02 14:00:57 +01:00
Alexander Gryson
df91ee5338 Don't depend on svg contents for file info 2017-01-15 21:08:08 +01:00
wmayer
d2cb4e4af9 Qt4/Qt5 neutral changes:
+ remove QCoreApplication::UnicodeUTF8/QApplication::UnicodeUTF8
+ remove QCoreApplication::CodecForTr/QApplication::CodecForTr
2016-12-12 14:52:09 +01:00
wmayer
b9c25c8402 fix -Wextra & -Wdeprecated in Drawing 2016-09-22 15:29:10 +02:00
wmayer
9459938cdc fix Coverity issues 2016-08-21 14:44:14 +02:00
Mateusz Skowroński
cd2db00f22 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
d5c074f80d QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Yorik van Havre
85fdc8c76b Drawing: Add SpreadsheetView command - fixes #1805 2016-01-03 16:44:56 -02:00
wmayer
48bf07e622 + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog 2015-10-06 18:45:06 +02:00
wmayer
017e0f38d1 + fixes #0001998: For 32 px and 48 px the icons with a submenu in toolbars are not display at the good size 2015-04-17 23:16:28 +02:00
Yorik van Havre
f278c297fd Drawing: reset the default template to the classic one 2015-02-12 13:46:13 +01:00
Yorik van Havre
6ffc0e177a Drawing: small fix in DraftView command 2015-01-26 16:00:13 -02:00
wmayer
ed46ec272f + slight fix in file filter 2015-01-24 16:31:49 +01:00
Yorik van Havre
f0ce2e6be6 Moved Draft-Drawing tool to the Drawing WB (renamed Draft View) 2015-01-16 17:16:39 -02:00
wmayer
3210d0d2a0 + issue #0001856: Add standard set of blank ISO drawing template sizes 2015-01-10 19:09:58 +01:00
wmayer
6c187572c7 + fix undo/redo issues with ortho views 2015-01-03 22:39:07 +01:00
Michael Georg Hansen
fe1d67fd65 Simplify access to projection properties.
Directly access the properties where possible.
2014-12-20 22:17:46 +01:00
Michael Georg Hansen
ef24aaa3ce Reuse projection settings from an existing view when creating new part views.
Select a part and a view on a drawing page, then the view created for the part
will have the same projection settings as the selected view.
2014-12-20 22:16:41 +01:00
Sebastian Hoogen
a53a239f2f issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
wmayer
ce528d1c4a + fixes #0001719: Show current shortcuts (S) in menus and hover text. 2014-08-31 14:28:33 +02:00
Michael G. Hansen
dd7bd833c6 Fix bug 1643: Projections are always added to the first drawing page 2014-08-19 15:07:02 +02:00
Yorik van Havre
7778988faa Drawing: Allow to select the page in which to create a view feature - fixes #1668 2014-08-07 22:00:31 -03:00
Yorik van Havre
dc3ebfb502 Fix in Drawing page object - fixes #1540
* Changing the editable texts updates the page automatically
* Added a doc.recompute() after creating a new page
2014-08-07 10:39:33 -03:00
wmayer
9367488293 + fixes #0001312: Save sheet doesn't write the file in some directories 2014-03-04 10:38:40 +01:00
wmayer
daf8b1d49e + fixes #0001447: Crash when opening task dialog for orthographic projection while another task dialog is open 2014-02-27 11:14:53 +01:00
wmayer
c304c71b93 fixes #0001337: Add american templates to Drawing workbench 'New Drawing' drop-down button 2013-12-24 12:39:15 +01:00
Yorik van Havre
1f2c5b04bb Drawing: Symbol command
A new symbol command and Drawing::FeatureViewSymbol object allow to
load the contents of an external svg file and place it as a symbol
on a Drawing page. This symbol can then be moved and rescaled.
2013-11-01 19:12:09 -02:00
wmayer
08bfdc4875 Automatically create actions for each template 2012-07-22 14:56:25 +02:00
wmayer
17506c8d7e Check at runtime if drawing page is there 2012-07-21 09:47:44 +02:00
Yorik van Havre
1a79480bd6 Added 0000145 : Drawing clip objects 2012-05-16 16:31:02 -03:00
Yorik van Havre
d4b5a079d9 Refined Drawing::FeatureViewAnnotation
+ Now goes inside an existing page automatically
+ Supports Rotation value
2012-05-03 16:04:48 -03:00
Yorik van Havre
2dc62d783e Added 0000602 : Annotations object for Drawing pages 2012-05-02 18:16:41 -03:00
Yorik van Havre
7b6eab3781 Added Drawing_OpenBrowserView command
While the Drawing viewer is still based on QtSvg,
I added this little button to make it handy to
check how a page renders in the webkit window.
2012-01-19 21:01:57 -02:00
wmayer
776a083dce + support multi-selection when inserting objects to drawing page
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5390 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-05 18:50:56 +00:00
wmayer
eac5828903 + add patch for ortho view (j-dowsett)
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5310 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-15 18:31:59 +00:00