Commit Graph

70 Commits

Author SHA1 Message Date
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
wmayer
c2e17824fa modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
luzpaz
38a01939e0 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
wmayer
a70d3beceb Gui: [skip ci] move to new-style connect in Placement dialog 2023-01-02 10:42:12 +01:00
wmayer
64f421d815 Gui: enable range check in QuantitySpinBox when opening expression editor 2022-12-19 14:46:31 +01:00
wmayer
0925d9a47e Gui: simplify logic of Placement dialog 2022-12-16 17:49:22 +01:00
wmayer
89c24714df Gui: refactor Placement dialog 2022-12-16 15:33:52 +01:00
wmayer
1b693dbf7e Gui: refactor Placement dialog 2022-12-16 12:00:56 +01:00
wmayer
471df296fa Gui: [skip ci] fix Conda build failure 2022-11-01 22:57:47 +01:00
wmayer
b0633f455b Gui: bind spin boxes of Placement dialog when opening it via menu 2022-10-27 19:30:24 +02:00
wmayer
ebdd4c9af3 Gui: refactor and modernize code of Placement dialog 2022-10-27 00:28:55 +02:00
wmayer
13b3abc063 Gui: if an expression is set for Euler angles in the placement dialog then evaluate the expression instead of determining the angles from the rotation
See forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=72522
2022-10-26 11:27:46 +02:00
wmayer
2a3737feb0 Gui: in placement dialog use spin boxes for rotation axis 2022-10-25 22:56:56 +02:00
berniev
ae53c9b0a4 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
3877fc62c3 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
berniev
2db561561e Gui: use empty 2022-08-06 16:35:45 +02:00
wmayer
82a6241fc5 fix (Qt) issues found by clang's clazy tool:
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
5df3dbae6f Gui: PR6497 move return statement to new line 2022-03-29 12:33:50 -05:00
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
f1f68db55b App: Optimize includes to reduce compile time 2022-03-07 15:53:58 +01:00
Uwe
85416eab43 [Gui] Placement: remove unused includes 2022-03-05 02:48:17 +01:00
luz paz
c93bf6cbae Gui: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the src/Gui code.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
wmayer
26dfcfea8c Gui: [skip ci] bind spin boxes to object in Placement dialog 2020-03-27 17:08:08 +01:00
wmayer
32d8718639 Gui: [skip ci] fix bug in Placement dialog when leaving with Esc 2020-03-20 13:34:48 +01:00
wmayer
4bbcd1e483 Gui: Qt4/Qt5 neutral change in Placement class [skip ci] 2020-01-12 13:43:39 +01:00
wmayer
1d14534d19 fix Qt4 build failure 2020-01-09 14:35:17 +01:00
wmayer
d407741910 Gui: [skip ci] reduce height of Placement dialog 2020-01-09 02:26:17 +01:00
wmayer
d0b98b4161 Gui: [skip ci] adjust content to size after hiding bottom button row 2020-01-08 23:38:20 +01:00
wmayer
8bcd3aa338 fixes 0003861: Sketch change plane when changing Attachment Offset (UI quirk) 2019-03-12 22:54:37 +01:00
wmayer
3fbc448d4d remove unused checkbox from Placement dialog 2018-10-13 01:51:05 +02:00
mwganson
38e5170fd0 placement task -- for user's convenience copy distance or angle to clipboard when user shift+clicks Selected points button 2018-10-13 01:11:39 +02:00
mwganson
4757912c95 placement dlg - do reselection prior to updating center coordinates -- prevents other object moving if apply incremental changes is not enabled 2018-10-05 16:14:17 -05:00
mwganson
121c60c436 placement - show complementary angle as float 2018-10-04 16:26:22 +02:00
mwganson
6a91ff1ed5 Placement dialog - more consistent axis direction based on order of selection 2018-10-02 21:03:51 +02:00
wmayer
ee6b2112f8 use toDegrees 2018-09-29 18:08:10 +02:00
mwganson
ea349fdfb6 ensure points.size() > 0 before accessing points[0], update selected points message 2018-09-29 18:08:10 +02:00
Mark Ganson TheMarkster
c36a8a0e0e add support for 3 picked points in placement dialog (#1) 2018-09-29 18:08:09 +02:00
mwganson
ea8cd54872 add axial movement to placement dialog 2018-09-29 18:08:09 +02:00
Mark Ganson TheMarkster
d73fbd3d1d do reselection whether 1 or 2 points selected
Add message box explaining usage of Selected points button.
Move reselection so it is applied whether 1 or 2 points were selected.
2018-09-19 20:32:49 +02:00
wmayer
f68d65dc7b remove limit to only allow vertexes of a model 2018-09-17 17:27:21 +02:00
mwganson
8108275846 Add select point(s) option to Placement dialog 2018-09-17 15:00:48 +02:00
wmayer
aee9359da1 ignore key events in placement dialog and let parent task panel handle them 2018-09-11 21:12:04 +02:00
wmayer
0b182be0d2 fixes #0002045: Make Euler Rotation default or user-pref default 2017-10-01 21:15:58 +02:00
wmayer
099bdf5f5d add option to placement dialog to rotate around center of mass 2017-03-05 18:47:34 +01:00