Commit Graph

4651 Commits

Author SHA1 Message Date
Chris Hennes
4c282fe0df Merge pull request #9497 from wwmayer/generate_qm_files
Generate qm files
2023-05-10 18:18:25 -05:00
wmayer
ecb72b8ead Gui: when loading SVG images get default size and keep aspect ratio
See forum: https://forum.freecad.org/viewtopic.php?p=680800#p680800
2023-05-10 11:59:44 +02:00
Rexbas
530dd7c219 Fix typo 2023-05-09 10:31:38 +02:00
Rexbas
9415c80a5e Add method to find the nearest orientation 2023-05-09 10:31:38 +02:00
Rexbas
e09f729400 Cleanup unused NaviCube methods 2023-05-09 10:31:38 +02:00
Rexbas
de2a2f6c6f Apply the rotation that is stored in the NaviCube face 2023-05-09 10:31:38 +02:00
Rexbas
f20a0cceaa Determine rotation direction of NaviCube buttons 2023-05-09 10:31:38 +02:00
Rexbas
86d9ded206 Determine standard orientations of NaviCube faces 2023-05-09 10:31:38 +02:00
wmayer
6f8e3f374f Gui: fix NaviCube in split views (fixes #9500)
* initialize base and hilite color with more sensible default values
* handle case if no font name is set
* apply user preferences to NaviCube
2023-05-08 10:05:01 +02:00
wmayer
8cc0b6ad39 Gui: Create .qm out of .ts files 2023-05-07 08:52:49 +02:00
Chris Hennes
1a4b85121b Merged crowdin translations 2023-05-06 11:56:32 -05:00
wmayer
d163114374 Gui: disable lighting for the label of an axis
This way the backside of the label is displayed with the same color as the front side. Otherwise it may be black.
2023-05-05 22:00:55 -04:00
Ronny Standtke
8d1c9c2563 Origin axis: use same colors as axis cross and make bigger than planes
for easier selection and visualization
2023-05-05 03:09:36 -04:00
Ronny Standtke
ddb080995b Origin plane: make plane faces unpickable 2023-05-05 03:09:36 -04:00
Ronny Standtke
ad5e702366 Origin plane: add semi transparent face 2023-05-05 03:09:36 -04:00
Jolbas
35b0ea71f9 Compability with OpenGL ES
Replace glPolygonMode() and GL_POLYGON with GL_LINE_LOOP
Replace glDepthRange() with glPolygonOffset()
Some cleanup in configuring openGL
2023-05-04 17:38:48 -04:00
wmayer
2de08f77b7 Use View3DInventorViewer::setSelectionEnabled instead of SoFCUnifiedSelection::selectionRole 2023-05-04 08:03:11 +02:00
wmayer
87749d1bb8 Gui: do not enable lighting when rendering from image or framebuffer 2023-05-04 07:55:05 +02:00
Yorik van Havre
04dd1cb279 Merge pull request #9433 from chennes/fixSerbianLatinMenuEntry
GUI: Transform sr-CS to sr_Latn in menu entry
2023-05-03 11:28:13 +02:00
Chris Hennes
6da3d0e6b5 Mods: Remove Raytracing
Deprecated. Replaced by 3rd party addon 'Render'.
2023-05-02 12:49:54 -05:00
Chris Hennes
3cdb347c72 Merge pull request #9437 from chennes/updateTranslations20230429
Update translations
2023-05-02 10:24:05 -05:00
Chris Hennes
4dbb17f3ac Merge pull request #9440 from chennes/modifyGuiTooltipForTranslation
Gui: Adjust tooltips for improved translation
2023-05-02 10:23:42 -05:00
wmayer
bed50951ee Gui: fixes #9086: Disabling the splash screen blocks the startup of Freecad
If no splash screen was shown then windowHandle() returns null and this leads to a segmentation fault.
2023-05-02 16:15:33 +02:00
wmayer
dc9c7a3661 Core: do not override sys.stdin when using FreeCAD as Python module 2023-05-02 09:44:09 +02:00
wmayer
bc7ad64452 Gui: add comment about troubleshooting OpenGL 2023-05-01 23:32:24 +02:00
wmayer
39fb455af2 Gui: workaround to show content of image plane
This workaround is needed on some platforms after the refactoring of the NaviCube code. For more details see also:
https://github.com/FreeCAD/FreeCAD/pull/9356#issuecomment-1529521654
2023-05-01 23:32:24 +02:00
wmayer
b5a548e3fd Gui: fixes #9306: problem importing image if path contains a single quote 2023-04-30 08:42:42 +02:00
Chris Hennes
f1e57968cd Gui: Adjust tooltips for improved translation
Tooltips should not be identical to the command menu entry, it prevents translators from translating them separately.
2023-04-29 13:03:02 -05:00
Chris Hennes
fb60e9a0e6 Update translations 2023-04-29 11:10:27 -05:00
Chris Hennes
dbc71090f1 GUI: Transform sr-CS to sr_Latn in menu entry 2023-04-28 17:16:03 -05:00
wmayer
4d076a7056 Gui: force a redraw of the 3d view when creating it as otherwise on some systems the bottom and right side of the main window becomes black 2023-04-28 13:15:54 +02:00
Chris Hennes
b0cdbbf1d8 Merge pull request #9350 from chennes/translateEditModeTooltips
GUI: Translate the tooltip for EditMode menu
2023-04-26 21:00:00 -05:00
luzpaz
8f3e7451dd Fix misc. linting and typos
Trim whitespace; move imports to separate lines, fix typos
2023-04-25 17:14:39 +02:00
Chris Hennes
dc21d1917d Gui: Translate manual alignment menu 2023-04-25 11:34:49 +02:00
Chris Hennes
3316a9d1a8 Merge pull request #9356 from Jolbas/Navicube_disable_drag
Refactor Navigation Cube
2023-04-24 15:21:38 -05:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Jolbas
466fc32211 NavCube adjustment
Use enum class and fine change to camel case.
Tuned label positions to make one letter labels align better
2023-04-24 12:59:12 +02:00
Jolbas
8abd6d0870 Refactor Navigation Cube
-Use std commands in menu coming with icons
-Only draggable if activated in menu
-Remove textures except labels and used gl fill instead
-Borders on surrounding buttons
-Fix some openGL issues
-Remove duplicate parameter managment. Kept and improved the one in View3DSettings
-Remove lots of other redundant code
-Replaced FontSize param with FontZoom and enabled auto zoom/size on labels.
-Merged BorderColor and TextColor to single EmphaseColor parameter
-Merged ButtonColor and FrontColor to BaseColor parameter
-Added ChamferSize parameter to control edge and corner size
-Use glDrawArrays() innstead of glBegin() and glEnd()
-Draw butt ends on RGB coordinate system
-Fixe issues where cube switch corner on resize window
2023-04-24 12:19:10 +02:00
wandererfan
c55a9256e1 [Gui]overload toQGraphicsItem, toQGraphicsObject for PyObject 2023-04-22 13:48:31 -04:00
Chris Hennes
273943a42c GUI: Translate the tooltip for EditMode menu
The tip text was extracted from the Wiki.
2023-04-21 16:55:05 -05:00
wmayer
8b1d094fb4 Gui: Add translations for color bar labels 2023-04-20 18:52:07 +02:00
Chris Hennes
7d2107be23 Merge pull request #9327 from yorikvanhavre/translations
Translations
2023-04-20 10:41:44 -05:00
wmayer
963322876f Gui: fix several pending issues of image scale:
* refactor some functions
* do not use mdi view of active document as parent for spin box because this can be the wrong widget
* fix compiler warnings of unused variables
* fix typo
* handle Qt::Key_Return in event filter
* fix lint error
2023-04-20 16:52:06 +02:00
Yorik van Havre
33c2e485e3 Merged crowdin translations 2023-04-20 14:04:19 +02:00
Yorik van Havre
d96042fc24 Updated ts files 2023-04-20 13:53:35 +02:00
wmayer
1dcc58c4b1 Gui: declare methods as override 2023-04-19 17:38:56 +02:00
Chris Hennes
2c78fa6d73 GUI: Add missing toolbar translation strings 2023-04-18 09:21:19 -05:00
Chris Hennes
bca50b8001 Merge pull request #8982 from ConnorWorrell/SpinboxFractionInputForMerge
[GUI] QuantitySpinBox: more intuitive parsing
2023-04-17 21:47:48 -05:00
Chris Hennes
0729151e45 Merge pull request #9284 from dodomorandi/fix-event-type-ub
Fix wrong downcasting of QEvent
2023-04-17 21:32:34 -05:00
Edoardo Morandi
e2e1a51790 fix: UB by erroneous event downcasting
When an event type is `QEvent::Wheel`, the event type is `QWheelEvent`,
which is not a `QMouseEvent`. This caused a undefined behavior that can
be cached by ubsan.
2023-04-17 23:42:15 +02:00