Commit Graph

4339 Commits

Author SHA1 Message Date
wmayer
9dc366f817 Gui: fix regression that NaviCube cannot be switched off any more 2023-02-07 22:16:09 +01:00
wmayer
00813654a1 Gui: recreate NaviCubes of all 3D views 2023-02-07 22:16:09 +01:00
wmayer
cabc8e0ff4 Gui: remove Q_SLOTS decorator and use connect() to bind the signal 2023-02-07 22:16:09 +01:00
wmayer
c5af2e3a25 Gui: fix and harmonize tool tips 2023-02-07 22:16:09 +01:00
wmayer
c0a5c68b7d Gui: use QString::fromStdString for std::string 2023-02-07 22:16:09 +01:00
wmayer
30d2b24cf6 Gui: move calls of OnChange to separate method
and explicitly call the class' method to fix warning about bypassing virtual dispatch during construction
2023-02-07 22:16:09 +01:00
wmayer
1122143126 Gui: move calls of OnChange to separate method
and explicitly call the class' method to fix warning about bypassing virtual dispatch during construction
2023-02-07 22:16:09 +01:00
Yorik van Havre
d8b0e64e14 Merged crowdin translations 2023-02-07 15:55:31 +01:00
Yorik van Havre
94cd431eb2 updated ts files 2023-02-07 15:55:31 +01:00
luzpaz
2e1ad2c2ad Gui: [skip ci] fix typo 2023-02-06 06:23:27 +01:00
luzpaz
1b43baa418 Fix various trailing newlines, typos and grammar 2023-02-04 18:29:07 +01:00
Uwe
a9b8be3e00 [Core] add current density
- necessary to implement electromagnetic features to the FEM WB
2023-02-04 03:22:24 -06:00
wmayer
76860143f7 Gui: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
Uwe
c181974e0e [Gui] register NaviCube parameters to view
- there is a bug: when deleting any NaviCube parameter in the parameters dialog, the background color suddenly changes
the fix is to register the NaviCube parameters to the view

- the PR also fixes the issue that the default font size was not properly calculated but hardcoded
2023-02-02 19:02:51 +01:00
wmayer
2bcebfe395 Gui: fix regression of ed4338f4ab:
Commands are not shown any more when selecting a category
2023-02-01 20:21:34 +01:00
wmayer
8d42b6f93c Gui: move to new style connect() 2023-02-01 13:49:35 +01:00
Uwe
5c03db60e0 [Gui] modernize some UI connections 2023-01-31 22:24:45 +01:00
Uwe
1eb6bc8cf1 [Gui] FreeCADGuiInit.py: address some GH action reports
- superfluous parens and loo long lines
2023-01-30 18:14:27 -07:00
Uwe
246c24ec32 [Gui] modernize some UI connections 2023-01-30 18:11:37 -07:00
Yorik van Havre
80c68fa4df Merged crowdin translations 2023-01-30 10:04:15 +01:00
Yorik van Havre
81552acdeb update ts files 2023-01-30 09:55:26 +01:00
Uwe
707b7efeda [Gui] View3DInventorViewer: fix a GH action report
- use sizeof instead of the hardcoded number
2023-01-29 09:38:16 -07:00
Uwe
ac9d020762 [Gui] NaviCube: improve default font
- it turned out that DejaVu Sans is not the best font since its letters are wide. Bahnschrift was designed to run narrow and it at least on all Win 10 since 2017. Therefore use this, if possible
2023-01-27 15:44:01 +01:00
Uwe
5fdd405a69 [Gui] allow to specify font for NaviCube
- the problem is that depending on the OS, the font of the NaviCube is hardly readable. For example under Windows 11, there is no Helvetica font and therefore an ugly replacement font is used. On some laptop screens the font is too large or too small etc.
- as solution this PR add the change the NaviCube's font and font size

- the PR also fixes an issue that the position (corner) of the NaviCube was not respected when the NaviCube is recreated. This fix is necessary for the PR therefore included

- as by-product the PR fixes #8082 since every change in the preferences now properly recreates the NaviCube

- the PR also removes the strange and unused class "HuuhaaClassPy"
2023-01-27 02:23:46 +01:00
Uwe
58a008120d [Gui] ExpressionCompleter: fix some GitHub Action reports (#8264)
* [Gui] ExpressionCompleter: fix some GitHub Action reports

- too long lines
- too short variable names
- use .empty()

- also some reformatting according to our current clang file
2023-01-27 00:37:54 +01:00
Adrian Popescu
3914792cec Fix8228 warnings (#8262)
* Cleaned up Expression Completer
2023-01-26 00:19:05 +01:00
wmayer
95444519dc Gui: fix several compiler warnings 2023-01-25 23:05:29 +01:00
wmayer
7b8c6335a3 Gui: improve formatation and use of curly braces 2023-01-25 23:05:29 +01:00
luzpaz
3c9f48e696 Gui: fix trailing whitespace 2023-01-25 15:23:47 +01:00
Adrian Popescu
21a4d4827e Expressions: path auto-completion fixes (#8228)
PR #8228 consisted of the following:
* Added Documentation for the expression completer
* Working PATH completion
* Allow completes on trailing separator
* Fixed paths appearing with a . at first
* Chaining completions on enter
* Fixed Missing Separator and Document Completions
- fixed missing separator for contextual Properties (ConstraintsHeight instead of Constraints.Height)
- fixed retries on filename#objectname so that they work better
2023-01-24 14:57:59 -06:00
luzpaz
9d32c5a70e Stylesheets: convert indentations to spaces 2023-01-23 21:20:57 -07:00
luzpaz
a884da5890 Navicube: convert indentations to spaces 2023-01-23 16:57:58 +01:00
luzpaz
c32381ec77 Gui: convert indentations to spaces 2023-01-23 16:06:40 +01:00
Yorik van Havre
433b17b829 Merged crowdin translations 2023-01-23 11:25:49 +01:00
Yorik van Havre
48fdd4896a Updated ts files 2023-01-23 10:41:33 +01:00
luzpaz
79e150a81b Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
Yorik van Havre
5033f64ce9 Merged crowdin translations 2023-01-17 09:40:31 +01:00
Yorik van Havre
12239f7f99 Updated ts files 2023-01-17 09:24:46 +01:00
wmayer
e5933a6aff Gui: refactor TreeWidget::dropEvent 2023-01-12 19:40:59 +01:00
wmayer
62260a9ad4 Gui: [skip ci] fix some warnings reported by GH actions 2023-01-12 17:51:50 +01:00
wmayer
3354fa033b Gui: move to new style connect() 2023-01-12 17:40:20 +01:00
wmayer
3f615bbe05 Gui: fix possible problems with new style connect
* In UIntSpinBox rename the signal to not overwrite the signal of the base class
* In UIntSpinBox use the (ambiguous) signal 'valueChanged' of the base class QSpinBox
* To avoid that connect() fails use the function pointer of the Qt class where the signal is defined
2023-01-12 17:02:59 +01:00
Uwe
5ad737ccdc [Gui] modernize some connect() settings
- addresses #6166
2023-01-12 15:13:16 +01:00
Uwe
a39c497437 [skip ci] [Gui] ExpressionCompleter: fix a typo
- found by the CI
2023-01-12 04:20:40 +01:00
wmayer
84981b7c71 Gui: change custom message handler to show Qt warnings and errors also in Release mode 2023-01-11 17:48:13 +01:00
wmayer
1fcd62f213 Gui: [skip ci] print warning in getViewProviderByPath, getViewProviderByPathFromTail, getViewProvidersOfType if for View3DInventorViewer no document is set
This gives the client programmer a clue if one of the mentioned methods fails
2023-01-10 17:46:05 +01:00
wmayer
37b7cc0cac Gui: add method setDocumentOfViewers and set documents of viewers in constructor of SplitView3DInventor 2023-01-10 17:23:48 +01:00
Jakub Świerk
de360796f0 Updated ts files 2023-01-10 13:46:33 +01:00
Jakub Świerk
4c3bca22d7 Gui: Removed unused method. 2023-01-10 13:46:33 +01:00
Jakub Świerk
16f85753aa GUI: Removed Std_ArrangeIcons command. 2023-01-10 13:46:33 +01:00