Commit Graph

58 Commits

Author SHA1 Message Date
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
d5c074f80d QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
d3280a0b82 + when trying to close a document then do it even if a task dialog is open 2015-11-09 19:21:56 +01:00
wmayer
967eead27a + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00
wmayer
b33be62bb6 + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
7d09444dd9 + fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it 2015-09-19 18:59:22 +02:00
wmayer
739e643f2f + check returned mdi view to be of the requested type 2015-09-16 16:15:19 +02:00
wmayer
b9797ec92a + To avoid possible memory leaks or inconsistencies on Document::resetEdit() call finishEditing() of view provider inside document because the editing view could be closed already 2015-09-16 14:20:13 +02:00
wmayer
470b9ff756 + add convenience method to get editing view of a view provider 2015-09-15 22:09:28 +02:00
wmayer
fa1d43345a + fixes #0000870: Center sketch to a constraint that has been double clicked in the constraint list. 2015-09-15 17:24:23 +02:00
Yorik van Havre
da2c497671 Added SaveCopy command
This command saves a copy of the current document under a new name,
without modifying the document itself.

Available in menu File -> Save a Copy or from python with
FreeCAD.ActiveDocument.saveCopy(filename)
2015-09-02 13:38:14 -03:00
wwmayer
e7441149f0 + fix many minor warnings, activate -Wall for gcc 2015-08-02 22:32:18 +02:00
Abdullah Tahiri
da5270131c Gui New Feature: Gui::Document support for App::Document undo and redo signals
==========================================================================

It defines new slots connected to App::Document's signalUndo/signalRedo, which
triggers Gui::Document's signalUndoDocument and signalRedoDocument signals.

setModified is not executed upon redo/undo, as this is already done on modification of the properties if
properties were modified, and if there were not, no setModified is needed anyway.
2015-06-15 22:55:49 +02:00
wmayer
6b6070281e + whitespacee/typo fixes 2015-04-30 23:16:57 +02:00
wmayer
8991b9e04b + add Document::sendMsgToFirstView, fix memory leak 2015-04-12 18:39:01 +02:00
wmayer
d8e0df9e97 + fixes #0001678: Visibility property is ignored on drawing sheets 2015-01-03 17:09:17 +01:00
wmayer
ca5062cbfe + fixes #0001885: Unhandled exception when trying to enter edit-mode for objects while drawing view is active 2014-12-31 14:08:03 +01:00
wmayer
366e974b7f + fixes #0001864: Support Command-D and Command-. on Mac OSX 2014-12-21 14:56:56 +01:00
wmayer
977fa48b77 + handle std::exception in Document::slotChangedObject 2014-12-16 15:06:40 +01:00
wmayer
69edf4b6c9 + merge project on app level 2014-12-13 16:15:21 +01:00
wmayer
c02590c666 + support of merging projects on App level 2014-12-07 00:38:53 +01:00
wmayer
4e2cbaf045 + fix saving problem with file names containing an apostrophe 2014-11-15 22:45:56 +01:00
wmayer
7422f073ea + share GL widgets when creating further 3d views of a document 2014-10-15 12:04:06 +02:00
wmayer
3d6ba6c5d6 + fixes #0001726: Dialog for saving document should indicate documentname 2014-09-03 14:45:19 +02:00
wmayer
92cb03bca1 + code cleanup 2014-08-16 14:15:46 +02:00
wmayer
fcb2714d0d + on document load set camera setting of the MDI views 2014-08-12 00:07:16 +02:00
wmayer
4fe3348e46 + fixes #0001332: Allow copy-paste on elements in Project tree 2014-03-16 11:22:42 +01:00
tanderson
3b8176535b implemented 2014-01-16 10:27:21 -02:00
wmayer
020181a96c + Fix typo 2013-12-30 12:57:08 +01:00
wmayer
ef6978e9df +Add method to get mdi view by view provider, add method to get flag widgets 2013-11-22 15:14:15 +01:00
wmayer
0afb17ac20 +Fix crash when loading object without view provider 2013-09-26 17:43:27 +02:00
jriegel
30b189c1da Merge branch 'refs/heads/double-precision-werner'
Conflicts:
	src/App/Document.cpp
	src/App/PropertyGeo.cpp
	src/App/PropertyStandard.cpp
	src/Base/Reader.cpp
	src/Base/Reader.h
	src/Gui/propertyeditor/PropertyItem.cpp
	src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
	src/Mod/Inspection/Gui/ViewProviderInspection.cpp
	src/Mod/Mesh/App/MeshProperties.cpp
	src/Mod/Part/App/TopoShapeFacePyImp.cpp
	src/Mod/PartDesign/App/FeatureRevolution.cpp
2013-09-26 00:05:05 +02:00
jriegel
68078487c7 Add SchemaVersion to RestoreDocFile to distinquish double from float binary 2013-09-24 11:01:09 +02:00
Yorik van Havre
42fdbefc54 0001102: Updated all links to old freecad homepage and wiki to the new ones 2013-09-15 17:04:42 -03:00
wmayer
20c57d3a33 Use rubberband for box selection 2013-07-02 10:04:33 +02:00
wmayer
449e71a6b4 Replace native file dialog with Qt's file dialog on Linux 2013-06-29 15:11:48 +02:00
wmayer
2bbe465229 + Make transient directory of the form ExeName_Doc_{UUID}_{HASH}_{PID}
+ Set some properties in Document read-only

+ Implement Document::saveAs

+ Fix PropertyUUID::setValue()

+ Add a field for UUID in document information panel
2013-05-04 03:16:34 +02:00
wmayer
a233388328 Make information if tree item is expanded/collapsed persistent 2013-04-29 14:30:26 +02:00
wmayer
b24f0efbc1 Remove FileVersion from RestoreDocFile, convert point data back to floats 2013-03-29 15:23:51 +01:00
jrheinlaender
fdc3e50811 Added FileVersion attribute to XML format to distinguish legacy float binary files from new double binary files 2013-03-27 11:47:18 +04:30
jriegel
d739a2e41b Add all base system changes from the Assembly branch 2013-02-10 20:02:33 +01:00
wmayer
72bba68c2b Add thickness function 2012-11-26 21:10:09 +01:00
wmayer
1fb178db62 Reset modified flag after document is loaded, touch pad/pocket if its Type has changed 2012-11-06 21:12:39 +01:00
wmayer
c71b753730 Prepare sketch solver messages to be translated 2012-10-30 13:51:08 +01:00
wmayer
371f3baa87 Optimize loading of projects with many document objects 2012-10-29 20:11:30 +01:00
wmayer
58da2ebbcc 0000665: Follow up 0000640: This file crashes FreeCAD UI latest Git 2012-10-01 13:58:40 +02:00
wmayer
ba7be4f798 0000813: set colors dialog crash 2012-08-07 10:59:54 +02:00
wmayer
6efe6ff0cb 0000789: Sketcher active in one document blocks closing another. 2012-07-11 17:24:53 +02:00
wmayer
fc50177372 0000736: when object is deleted, auto show its parametric objects 2012-07-07 13:32:27 +02:00