Vuo  2.1.2
VuoTextEditor.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
13 
20 {
21  Q_OBJECT
22 
23 public:
24  VuoTextEditor(void);
25  bool supportsTabbingBetweenPorts(void);
26 
27 protected:
28  void setUpDialog(QDialog &dialog, json_object *originalValue, json_object *details);
30  QString convertToTextEditFormat(json_object *value);
31  json_object * convertFromTextEditFormat(const QString &valueAsString);
32  void resizeToFitTextWithBaseline(int baselineWidth=0, int baselineHeight=0);
33 
34  bool eventFilter(QObject *object, QEvent *event) VuoWarnUnusedResult;
35  bool event(QEvent *event) VuoWarnUnusedResult;
36 
37  virtual bool getCodeEditor(json_object *details);
38 
39  QPlainTextEdit *textEdit;
40  bool isCodeEditor;
41 
42 protected slots:
43  virtual void resizeToFitText();
44 };
45