Commit Graph

1032 Commits

Author SHA1 Message Date
berniev
87c3b58f44 Simplify switch statement (modded) 2022-12-04 19:37:04 +01:00
Zheng, Lei
7dc14634cd Base: fix Windows build issue 2022-12-03 17:08:17 -06:00
Zheng, Lei
d3c063f88c Base/App: add new signal interface to Parameter
Added new signal interface using boost::signals2 signalParamChanged.

Exposed to Python as ParameterGrpPy.AttachManager() to monitor changes
to all parameters, sub groups under the referring group.

Added new attribute for ParameterGrp(Py) to query the Parent and Manager
of the referring group.
2022-12-03 17:08:17 -06:00
wmayer
4dc1fc8f01 Base: refactor InventorBuilder 2022-12-02 19:06:27 +01:00
wmayer
663a9e665b Base: refactor InventorBuilder and add more unit tests 2022-12-02 18:53:47 +01:00
wmayer
97ab7714fe Base: fix InventorBuilder and add more unit tests 2022-12-01 18:05:57 +01:00
wmayer
e18cb45673 Base: refactoring of InventorBuilder 2022-11-30 12:29:09 +01:00
wmayer
c16b94c669 Base: fix build failure with MSVC, overloaded operator << must be in header file 2022-11-29 18:21:12 +01:00
wmayer
c16e4670fd Base: refactoring of InventorBuilder 2022-11-29 15:20:43 +01:00
wmayer
b325ab93dc Base: refactoring of InventorBuilder 2022-11-29 13:28:00 +01:00
wmayer
ad1cccdd27 Gui/Mod: handle several compiler warnings:
* ignore -Wfree-nonheap-object for generated code
* replace 0 with Qt::NoModifier when creating a QKeyEvent
* in Qt 5.14 QCombobox::activated(QString) is deprecated, use textActivated
* don't mix QCheckBox::setChecked() with tristate API
2022-11-29 10:36:02 +01:00
wmayer
567e0434e6 Base: refactoring of Builder3D/InventorBuilder 2022-11-27 20:06:00 +01:00
wmayer
16e80093c4 Base: refactoring of Builder3D/InventorBuilder 2022-11-27 18:29:58 +01:00
wmayer
9c191c1246 Base: change return type of Line3::SqrLength() and Line3::Length() 2022-11-27 17:58:37 +01:00
wmayer
c988f1d472 Base: start of refactoring of InventorBuilder 2022-11-27 16:45:16 +01:00
wmayer
8f136f60c6 Base: start of refactoring of Builder3D 2022-11-27 15:02:44 +01:00
wmayer
924e7fc484 Gui: move class SelectionObserverPython to its own source files 2022-11-22 15:44:26 +01:00
wmayer
2252696828 Base: move class ProgressIndicatorPy to its own files 2022-11-22 15:07:33 +01:00
wmayer
205c6e8931 Base: restore ConsoleSingleton::IsMsgTypeEnabled
For more details see comments on #7457
2022-11-21 23:18:37 +01:00
wmayer
0c2fdd64f4 Base: [skip ci] fix readability-identifier-length 2022-11-19 16:54:08 +01:00
wandererfan
7745a5aca0 [Units]Allow querying schema for unit of measure 2022-11-19 16:49:46 +01:00
Zheng, Lei
7458912b33 Gui: fix shortcut context handling in ShortcutManager
Related #6097

Qt ignores shortcut of actions in invisible toolbar, but not for actions
in a hidden menu action of menu bar, which is likely a Qt bug. The
desired behavior should be that of toolbar actions, so that actions
belong to different workbenches can have the same shortcut without
conflict.

This commit works around this inconsistency by ensuring only the active
actions are added in menu bar. In addition, all active actions will be
added to a zero sized child widget of the main window, which ensures the
shortcuts of these actions being active regardless whether the action is
in toolbar or menu bar, visible or not.
2022-11-10 23:20:18 +01:00
Chris Hennes
3fe026f3c9 Remove various sys.version_info >= 3 checks 2022-11-09 14:08:54 +01:00
marioalexis
9923afe13e Base: Check sequence size in getVectorFromTuple function 2022-11-04 08:55:30 -04:00
Chris Hennes
2f7be9e782 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
luz paz
2d4482cdf3 Fix source comment typo 2022-10-23 09:14:44 -05:00
Uwe
9ff9d589a2 [Base, Sketcher] remove redundant boolean checks 2022-10-10 02:49:17 +02:00
Uwe
4a2aff82a6 [TD] Gui, Dlg*: remove unused includes
- also sort includes
- also two whitespace changes
2022-10-09 19:14:31 +02:00
0penBrain
4a9725854f Remove some trailing whitespaces 2022-10-07 12:40:17 -07:00
0penBrain
39b47185f4 [Bugfix]Base: Python method 'isEqual' of Vector shall be Const 2022-10-07 12:40:17 -07:00
wmayer
96606c557c Base: fix build failure with MSVC 2022-10-05 21:47:47 +02:00
wmayer
e6798c53cf Base: add helper function to convert a string of a triple of floats into Vector3f 2022-10-05 18:58:51 +02:00
wmayer
f9f201373f Qt6: remove or replace QTextCodec 2022-09-30 14:52:11 +02:00
berniev
bf1c7eb345 play 2022-09-24 16:35:01 +02:00
marioalexis
2185b8086d Base: Add helper function to check Python types 2022-09-24 05:10:34 +02:00
wmayer
a6c061715f Base: fix const-correctness and include required header 2022-09-22 15:58:58 +02:00
marioalexis
1972dfe5a3 Base: Replace C cast 2022-09-18 11:06:51 -05:00
berniev
58cb977c3b remove xcerces2 2022-09-09 08:02:35 +02:00
wmayer
1789c957df Base: [skip ci] Add function to read the CD of a zip file from a std::istream 2022-09-05 18:53:37 +02:00
wmayer
9381a8b2fb Base: make isMultiUnitLength() and isMultiUnitAngle() const 2022-09-01 17:07:30 +02:00
wandererfan
16ff6dfbbb [Base]identify schemas which use multiple units
- allow querying a schema to determine if it uses multiple
  units for length (ex ft/in) or angles (ex DMS).
2022-08-31 16:31:27 -04:00
wmayer
d2168f51b9 Base: modernize C++: replace 'typedef' with 'using' 2022-08-29 11:42:09 +02:00
wmayer
196983cf95 Base: [skip ci] optimize writing Inventor file 2022-08-28 13:01:12 +02:00
wmayer
47f69d1389 Base: [skip ci] whitespace improvements 2022-08-28 12:20:49 +02:00
marioalexis
4cd8e2e93f Base: Fix warning -Wrange-loop-construct 2022-08-28 12:04:21 +02:00
wmayer
89ad254b7c Base: support of SoFaceSet in InventorLoader 2022-08-26 14:51:43 +02:00
wmayer
8b7f721cd0 Base: implement loading of OpenInventor files (currently only SoIndexedFaceSet is supported) 2022-08-26 12:39:04 +02:00
wmayer
c538824309 Base: [skip ci] fix scale factor in unit schemes 2022-08-24 11:24:52 +02:00
wmayer
a899f078bd CMake: [skip ci] remove trailing whitespaces 2022-08-24 07:46:07 +02:00
Jonas Bähr
983e13c3b7 Fix build on MacOS-X 10.14: missing cmath header
This undoes a small part of commit 9ec0bcdcf2,
which seems a bit too agressive. Without the cmath header the build fails
using Apple clang version 11.0.0 (clang-1100.0.33.17) on Mojave with the
following error:

.../FreeCAD-git/src/Base/UnitsSchemaInternal.cpp:39:24: error: call to 'abs' is ambiguous
    double UnitValue = std::abs(quant.getValue());
                       ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:132:6: note: candidate function
int      abs(int) __pure2;
         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:111:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
                                           ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:113:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
                                           ^
1 error generated.
2022-08-24 07:40:04 +02:00