VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtScriptEditorWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2019 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 class QLineEdit;
13 class QPushButton;
14 class QTextEdit;
15 class QHBoxLayout;
16 class QVBoxLayout;
17 
18 #include <vrvCoreQt/vrvCoreQt.h>
19 #include <QtWidgets/QWidget>
20 
21 namespace makVrv
22 {
25  class DT_DLL_VRVCOREQT DtTextEditorWidget : public QWidget
26  {
27  Q_OBJECT
28 
29  public:
30 
33  DtTextEditorWidget(QWidget* parentWidget);
34 
35 
38  void setText(const std::string& text);
39 
41  std::string text() const;
42 
43  signals:
44  void commitButtonPressed();
45 
46  void cancelButtonPressed();
47 
48  protected slots:
49 
50  virtual void onCommitButtonPressed();
51  virtual void onCancelButtonPressed();
52 
53  protected:
54  QTextEdit * myTextEdit;
55  QVBoxLayout* myMainLayout;
56  QHBoxLayout* myHBoxLayout;
59  };
60 
63  class DT_DLL_VRVCOREQT DtScriptEditorWidget : public QWidget
64  {
65  Q_OBJECT
66 
67  public:
68 
71  DtScriptEditorWidget(QWidget* parentWidget);
72 
73 
76  void setText(const std::string& text);
77 
79  std::string text() const;
80 
81  protected slots:
82 
83  virtual void onEditButtonPressed();
84  virtual void onCommitButtonPressed();
85  virtual void onCancelButtonPressed();
86 
87  protected:
88  QHBoxLayout * myMainLayout;
92  };
93 }
A widget to show script and edit script.
Definition: DtScriptEditorWidget.h:63
QVBoxLayout * myMainLayout
Definition: DtScriptEditorWidget.h:55
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QPushButton * myCancelButton
Definition: DtScriptEditorWidget.h:58
QTextEdit * myTextEdit
Definition: DtScriptEditorWidget.h:54
A widget to show text and edit text.
Definition: DtScriptEditorWidget.h:25
QPushButton * myEditButton
Definition: DtScriptEditorWidget.h:90
QLineEdit * myLineEdit
Definition: DtScriptEditorWidget.h:91
QHBoxLayout * myHBoxLayout
Definition: DtScriptEditorWidget.h:56
DtTextEditorWidget * myTextEditorWidget
Definition: DtScriptEditorWidget.h:89
QPushButton * myCommitButton
Definition: DtScriptEditorWidget.h:57
QHBoxLayout * myMainLayout
Definition: DtScriptEditorWidget.h:88

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)