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:
@@ -115,6 +115,7 @@
|
||||
#include "ViewProviderPart.h"
|
||||
#include "ViewProviderOrigin.h"
|
||||
#include "ViewProviderMaterialObject.h"
|
||||
#include "ViewProviderTextDocument.h"
|
||||
#include "ViewProviderGroupExtension.h"
|
||||
|
||||
#include "Language/Translator.h"
|
||||
@@ -1547,6 +1548,7 @@ void Application::initTypes(void)
|
||||
Gui::ViewProviderOrigin ::init();
|
||||
Gui::ViewProviderMaterialObject ::init();
|
||||
Gui::ViewProviderMaterialObjectPython ::init();
|
||||
Gui::ViewProviderTextDocument ::init();
|
||||
|
||||
// Workbench
|
||||
Gui::Workbench ::init();
|
||||
|
||||
Reference in New Issue
Block a user