Commit Graph

138 Commits

Author SHA1 Message Date
Markus Hovorka
f9f2d8c31b Add TextDocument with full size editor
A new document object App::TextDocument. It has a property Text which
holds the text of the document as a string. This commit also contains a
full size editor based on QPlainTextEdit. It can only be used by the
TextDocument and has a read only mode invoked for read only documents
(ReadOnly property set to true). The editor is invoked by a double
click on the TextDocument.
2017-07-04 19:36:10 +02:00
wmayer
4cda387e61 py3: support of Python 3.4 2017-06-06 23:49:42 +02:00
wmayer
729cfd8155 py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
0e605eccb3 workaround for broken tree indicators with Qt 5.6 under Windows 2017-05-20 21:21:30 +02:00
Yorik van Havre
7e39fed862 py3: Gui: files A-P ported to python3 2017-05-06 17:23:27 +02:00
triplus
4bf27344c8 Boot phase reference point 2017-05-04 20:03:34 +02:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
c526c18b94 fix scan coverity issues: uncaught exception 2017-04-11 14:03:08 +02:00
wmayer
e4cba8e80f add new signal to Document class for convinience and add method to DocumentObserver 2017-04-07 15:14:45 +02:00
wmayer
1565139b20 Qt5OpenGL: at startup determine some basic information about OpenGL setup 2017-03-21 20:37:03 +01:00
wmayer
9e42badfaf move QuarterWidget to QOpenGLWidget 2017-03-21 20:37:03 +01:00
Bruce B. Lacey
f536dbe1d2 Qt5: Enabled HiDPI scaling and Use HiDPI Qt Pixmaps
* Enable HiDPI scaling on displays that support it
    on Qt 5.6 and later
  * Enable HiDPI Pixmaps on Qt 5.1 and later
2017-03-03 11:58:38 -03:00
Bruce B. Lacey
b601ea32f5 Use scalable application icon resources on macOS
Fixes #2920
2017-02-23 20:27:55 -08:00
wmayer
86c4d8bc9c issue #0002891: Sketching impossible, Type.Error Exception 2017-02-09 12:46:58 +01:00
wmayer
953749e330 add observer for GUI documents 2017-01-22 19:05:13 +01:00
wmayer
4c4ed6d965 show exceptions when activating a workbench as error message, not log message 2017-01-06 18:40:20 +01:00
wmayer
0c3e5aa953 fix Qt5 port of messageHandler 2017-01-05 14:24:03 +01:00
Eivind Kvedalen
0e2e34fb33 Moved ObjectLabelObserver from Gui::Application to App::Application. 2017-01-01 21:41:11 +01:00
Mateusz Skowroński
dd4c6a4320 Fix building with Qt < 5.5. 2016-12-26 21:08:08 +01:00
wmayer
11ffc5bca9 Linux specific Qt5 port 2016-12-13 19:47:32 +01:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
a34c441373 Qt4/Qt5 neutral changes:
+ replace Q_WS_WIN with Q_OS_WIN
+ replace Q_WS_X11 with Q_OS_LINUX
+ replace Q_WS_MACX with Q_OS_MACX
+ set explicit cast to HWND
2016-12-12 14:09:21 +01:00
wmayer
9a44f16974 fix segmentation fault when caling setupWithoutGUI 2016-11-29 19:29:12 +01:00
wmayer
c2479b2fb4 issue #0001588: File browser dialogs initial starting directory ignores current working directory 2016-10-16 18:03:45 +02:00
wmayer
d1fe837e55 issue #0001588: File browser dialogs initial starting directory ignores current working directory 2016-10-16 17:35:08 +02:00
wmayer
7fdf39244d set directory of file dialog when opening file by double-click, recent files list or drag and drop 2016-10-16 14:47:13 +02:00
wmayer
a335b69c5a when using --single-instance option make relative path names absolute 2016-10-14 18:01:11 +02:00
Stefan Tröger
0ae9346b3c Extenions: Drop virtual inheritance
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00
Stefan Tröger
2420559431 Extensions: Revert few changes after restructuring 2016-10-08 12:48:34 +02:00
Stefan Tröger
1b150a86c3 Extensions: Add ViewProvider extension python types 2016-10-08 12:48:34 +02:00
Stefan Tröger
6e1a029996 Extension: Port ViewProvider of Part 2016-10-08 12:48:34 +02:00
Stefan Tröger
5b9aea71d5 Extensions: Port ViewProvider of GeoFeatureGroup 2016-10-08 12:48:34 +02:00
Stefan Tröger
f61bb9062e Extensions: Port ViewProvider of groups 2016-10-08 12:48:34 +02:00
Stefan Tröger
b5f4023050 Extensions: Introduce ViewProviderExtension 2016-10-08 12:48:34 +02:00
Stefan Tröger
2a61aec97b Extensions: Fix rebase errors 2016-10-08 12:48:34 +02:00
wmayer
d88ecd5f56 fix -Wunused-parameter 2016-09-23 16:37:12 +02:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
947f9575de remove Application::runPythonCode 2016-09-15 23:14:31 +02:00
wmayer
25f2de76c3 remove method Application::runCommand 2016-09-15 19:39:16 +02:00
wmayer
3d16ae0f04 prepare view provider for undo/redo 2016-07-23 11:45:21 +02:00
wmayer
d9ad234539 + suppress log messages of active document or view in release build 2016-07-14 16:32:29 +02:00
wmayer
39ab11c701 + issue #0002578: Duplicate objects copied and exported 2016-06-16 14:40:28 +02:00
Sergo
1644f4d64d filter selection to exclude object duplicates before export 2016-06-16 14:33:30 +02:00
wmayer
a2a8a517a9 + use QString's vsprintf to avoid to truncate the output string 2016-06-04 10:37:08 +02:00
wmayer
4885250a68 + handle also std::exception when application unexpectedly leaves event loop 2016-05-13 12:12:17 +02:00
wmayer
88f472d411 + improve whitespaces
+ fix sequence protocol and fix crash
2016-05-01 15:49:00 +02:00
wmayer
8e19a2064f + force FreeCAD to always show icons in menus if available (this overwrites system settings) 2016-04-30 18:52:13 +02:00
Alexander Golubev
1b76b1117d Gui: refactor Plane's and Line's ViewProviders and add yet another one for OriginFeature
- Share the code of Gui::ViewProviderPlanes and Gui::ViewProviderLine
   in Gui::ViewProviderOriginFeature
 - Add support for coloring and transparencing the OriginFeatures by
   ViewProviderGeometryObject means.
2016-04-12 18:12:18 +02:00
Alexander Golubev
d72a919384 OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup 2016-04-12 18:12:18 +02:00