Qt 5.10 Book Examples
TurtleWorkArea.h
Go to the documentation of this file.
1 // ======================================================================
2 // TurtleWorkArea.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QWidget>
14 #include <QJSEngine>
15 
16 class QTextEdit;
17 class Turtle;
18 
19 // ======================================================================
20 class TurtleWorkArea : public QWidget {
21 Q_OBJECT
22 private:
23  QTextEdit* m_ptxt;
24  QJSEngine m_scriptEngine;
25  Turtle* m_pTurtle;
26 
27 public:
28  TurtleWorkArea(QWidget* pwgt = 0);
29 
30 private slots:
31  void slotEvaluate ( );
32  void slotApplyCode(int);
33 };
34 
TurtleWorkArea(QWidget *pwgt=0)
Definition: Turtle.h:16