Commit Graph

2585 Commits

Author SHA1 Message Date
wmayer
f14371bc06 convert enum to enum class to fix -Wgnu-redeclared-enum 2019-11-13 22:39:27 +01:00
Zheng, Lei
e3a6556878 App: fix PropertyXLink file path saving
Also modified ProeprtyLinkItem to show file path as tooltip.
2019-11-10 11:32:59 +01:00
wmayer
08b54bb5a0 [skip ci] line width must be explicitly set in NaviCube and SoFCSelectionRoot to avoid that an inappropriate value is used when set from somewhere else 2019-11-10 11:13:10 +01:00
wmayer
116c868d9e [skip ci] support of style sheet in branding framework 2019-11-09 17:36:49 +01:00
Zheng, Lei
10e2681ab5 Gui: force dynamic property item background and text color
To avoid visual problem under dark theme.
2019-11-09 16:17:19 +01:00
wmayer
11581294e5 add convenience method to 3d viewer to disable selection 2019-11-07 17:13:20 +01:00
Zheng, Lei
e8fec27b02 Gui: remove SelectionStyle from ViewProviderGeometryObject
The property has been moved to ViewProviderDocumentObject. Forgot to
remove it in ViewProviderGeometryObject.
2019-11-07 17:12:27 +01:00
Markus Lampert
d5820329c5 Added <last> as an option to the workbench selection. 2019-11-01 17:42:14 -03:00
wmayer
462c5d40dd trigger update of action when activating MDI view 2019-10-29 22:19:43 +01:00
Zheng, Lei
6b0823bc18 Gui: fix ViewProviderPythonFeature getDetail() 2019-10-22 17:07:28 +02:00
wmayer
5f4a7f6246 fix -Winconsistent-missing-override 2019-10-22 14:12:10 +02:00
wmayer
cea553c101 fix -Wimplicit-fall-through, -Wpedantic 2019-10-22 10:54:03 +02:00
looooo
1caf994858 cmake: pyside2: try other solution 2019-10-21 23:33:26 +02:00
luz.paz
30a717beac Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-21 16:02:23 -03:00
wmayer
35b9131adb for the moment uncomment changes of commit d0f95449ea 2019-10-21 12:25:40 +02:00
wmayer
4d831ea442 Basic support for Frequency as unit 2019-10-20 18:14:56 +02:00
Zheng, Lei
cdca061ca1 Gui: fix box selection 2019-10-20 14:56:58 +02:00
wmayer
c642768756 fix regressions in SplashObserver::SendLog and ReportOutput::SendLog 2019-10-20 13:41:10 +02:00
wmayer
c71c893a50 fix -Winconsistent-missing-override 2019-10-20 13:23:41 +02:00
ezzieyguywuf
9fcc18b08e Refactor and rename ConsoleObserver...
...Renamed to "ILogger", to designate that this is an Interface for a
Logger. This "Interface" is pure virtual, so that it cannot be
instantiated directly. This makes it clear that it is intended to be
derived.

Finally, got rid of all the individual log-style methods and replaced
with SendLog. The idea here is that day-to-day users will only interact
with ILogger through ConsoleSingleton (or, likely, LoggerSingleton in
the future). This singleton will manage an arbirtary collection of
ILogger, and call SendLog with the appropriate parameters based on what
the user requests.

Therefore, the singleton itself will have the individual Log, Message,
Error, etc... methods, while stil allowing us to simplify the code base
of ILogger and its derived classes.
2019-10-20 11:46:15 +02:00
looooo
7416055dbb cmake: pyside2: use imported targets if available 2019-10-20 11:25:19 +02:00
wmayer
091375a993 fix gcc/clang build failure 2019-10-19 15:18:26 +02:00
wmayer
944c9224e1 change deletion order in parameter editor to avoid that a parameter group isn't deleted 2019-10-18 15:46:02 +02:00
wmayer
bd76bbd625 Add an XSD validation scheme and implement ParameterManager::CheckDocument(), function is used in the parameter editor 2019-10-14 22:56:03 +02:00
wmayer
84648aea62 improve strict ISO C++11 (-Wpedantic) 2019-10-14 10:54:57 +02:00
Zheng, Lei
00213cf855 Gui: fix python documents in Gui.Selection methods 2019-10-13 17:02:32 +02:00
Zheng, Lei
c5784de286 Gui: fix SelectionSingleton::checkSelection()
This affects sub-object selection detection
2019-10-13 17:02:32 +02:00
wmayer
284bd7253e fix description of 'resolve' in Selection 2019-10-13 14:32:23 +02:00
wmayer
ea824a6d7f fix -Winconsistent-missing-override -Wunused-variable 2019-10-13 14:29:52 +02:00
wmayer
c9bbce207d avoid explicit term FreeCAD in user interface to avoid breaking branding 2019-10-09 14:13:47 +02:00
luz.paz
5d72487942 Docs: Update Prefs > General > Macro dialog tooltips
Update the tooltip for the 'Macro' tab.
2019-10-09 14:10:52 +02:00
Zheng, Lei
000ef1517f Gui: avoid unecessary visibility change when update view provider
This patch prevents syncing DocumentObject::Visibility when view
provider hides itself before updating. Some object may have additional
logic based on object visibility change. For example, GroupExtension
monitors its children visibility for exporting, and propgate changes to
upper hierarchy.
2019-10-09 14:01:44 +02:00
Zheng, Lei
8426ebe2ba Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
wmayer
6d515aa60c fix build failure on Windows due to conflicting define of GDI API 2019-10-08 14:49:56 +02:00
wmayer
4dabef8417 fix build failure with std::isdigit on Windows 2019-10-08 14:49:23 +02:00
wmayer
77d3c19573 fix typo 2019-10-08 10:36:19 +02:00
Zheng, Lei
aa01411c89 Gui: change default tree view document mode to Expand/Collapse 2019-10-08 10:28:13 +02:00
Zheng, Lei
b81485d72d Gui: improve scale handling in SoFCCSysDragger
Because of the scale transformion in Link, the dragger may have
undesired behavior. This patch checks scaling factor in scenegraph
transformation, and auto scale the dragger axis accordingly.
2019-10-08 10:27:56 +02:00
Zheng, Lei
e8389219b2 Gui: fix ViewProviderLink dragger behavior with scale 2019-10-08 10:27:30 +02:00
Zheng, Lei
ba459fcfdd Gui: fix tree view option sync placement 2019-10-08 10:26:16 +02:00
Zheng, Lei
c34ee6e753 Gui: expose link actions to toolbar 2019-10-08 10:25:36 +02:00
Zheng, Lei
8d7287b8a6 App/Gui: add ObjectStatus::NoAutoExpand
Used by App::Origin to disable selection auto expanding in tree view.
2019-10-08 10:23:57 +02:00
Zheng, Lei
855e3fd724 Gui: fix missing tree view sync after drag and drop 2019-10-08 10:23:21 +02:00
Zheng, Lei
c765ff8fa2 App: add ScaleVector property to Link
This is a normally hidden property for non-uniform scaling
2019-10-08 10:23:05 +02:00
Zheng, Lei
846707c628 Gui: improve array element color override in ViewProviderLink 2019-10-08 10:22:31 +02:00
Zheng, Lei
eb4dbd56a7 Gui: fix tree view lingering sub element selection 2019-10-08 10:21:46 +02:00
Zheng, Lei
ae067d7a58 Gui: improve PropertyXLink display in property view 2019-10-08 10:21:31 +02:00
Zheng, Lei
0d966e6777 Gui: improve SelectionSingleton::setVisible()
Change argument to enum type. Make setVisible() robust against
unexpected selection change.
2019-10-08 10:21:06 +02:00
Zheng, Lei
0b42b0b596 Link: change sub-element linking mechanism
Previous multi-sub-element linking (e.g. Face, Edge) is supported
through SubElements of type PropertyStringList, which does not support
geometry element update tracking. This patch changes it to use
PropertyXLink's new multi-subname capability.
2019-10-08 10:20:50 +02:00
Zheng, Lei
75c8c6289a Gui: minor fix of tree view drag move 2019-10-08 10:20:01 +02:00