Vuo  2.4.0
VuoCommentEditor.cc
Go to the documentation of this file.
1
10#include "VuoCommentEditor.hh"
11
12extern "C"
13{
14 #include "VuoText.h"
15}
16
17const int VuoCommentEditor::commentMargin = 15;
18
24{
25 width = 0;
26 height = 0;
27}
28
35json_object * VuoCommentEditor::show(QPoint portLeftCenter, json_object *originalValue, json_object *details)
36{
37 map<QString, json_object *> portNamesAndValues;
38 json_object_object_add(details, "showArrow", json_object_new_boolean(false));
39 return VuoInputEditorWithDialog::show(portLeftCenter-QPoint(commentMargin,0), originalValue, details, portNamesAndValues);
40}
41
45void VuoCommentEditor::resizeToFitText(void)
46{
47 VuoTextEditor::resizeToFitTextWithBaseline(width-2*commentMargin, height-2*commentMargin);
48}
49
54{
55 this->width = width;
56}
57
62{
63 this->height = height;
64}
65
70bool VuoCommentEditor::getCodeEditor(json_object *details)
71{
72 return false;
73}
74
79{
80 return false;
81}