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.
This commit is contained in:
Markus Hovorka
2017-07-03 14:43:47 +02:00
committed by wmayer
parent 77647237db
commit f9f2d8c31b
12 changed files with 726 additions and 0 deletions

View File

@@ -106,6 +106,7 @@
#include "OriginFeature.h"
#include "Origin.h"
#include "MaterialObject.h"
#include "TextDocument.h"
#include "Expression.h"
#include "Transactions.h"
#include <App/MaterialPy.h>
@@ -1301,6 +1302,7 @@ void Application::initTypes(void)
App ::MeasureDistance ::init();
App ::MaterialObject ::init();
App ::MaterialObjectPython ::init();
App ::TextDocument ::init();
App ::Placement ::init();
App ::OriginFeature ::init();
App ::Plane ::init();