17 #include <matrix/vlVector.h>
20 #include <QtWidgets/QWidget>
21 #include <QtWidgets/QBoxLayout>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QLabel>
24 #include <QtWidgets/QLineEdit>
26 #include <QtDesigner/QExtensionFactory>
27 #include <QtDesigner/QDesignerTaskMenuExtension>
31 class DtNewTacticalGraphicEntryWidgetLogic;
36 Q_PROPERTY(QString entityType READ variableData WRITE setVariableData)
49 QWidget* parent,
const Qt::WindowFlags& flags = 0,
const CreationFlags& cflags = NormalMode);
59 virtual void setObjectDefined(DtObjectDefinitionState state);
62 virtual DtObjectDefinitionState objectDefined()
const;
66 virtual DtReaderWriter* createBoundVariable(
const std::string& variableName);
69 virtual void setupFromBoundVariable(
const DtReaderWriter* variableName);
74 QWidget* parent,
const Qt::WindowFlags& flags = 0)
const;
93 return tr(
"VR-Forces Object Creation").toUtf8().constData();
98 return tr(
"<vrfGuiCoreQt/newTacticalGraphicEntryWidget.h>").toUtf8().constData();
103 return tr(
"tacticalGraphic").toUtf8().constData();
107 static void initializeForQtDesignerExtension(
makVrv::DtDe&, QDesignerFormEditorInterface*);
111 virtual void setVariableData(
const QString&);
119 virtual void setupGui();
122 virtual void setupConnections();
125 virtual void setRange(
double top,
double bottom);
128 virtual void setDefaultValue(
const std::string&);
131 virtual void closeEvent(QCloseEvent* event);
134 virtual void hideEvent(QHideEvent* event);
140 virtual void slot_onDefineButtonClicked();
167 virtual void setReadOnly(
bool);
170 virtual void onSelectEntityType();
211 return DtNewTacticalGraphicEntryWidget::staticMetaObject.className();
265 virtual QAction *preferredEditAction()
const;
269 virtual void editState();
DtObjectDefinitionState myObjectDefinitionState
Definition: newTacticalGraphicEntryWidget.h:149
DtNewTacticalGraphicEntryWidgetLogic * myLogic
Definition: newTacticalGraphicEntryWidget.h:150
virtual DtTaskSetVariableWidgetInterface * create(makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const DtTaskSetVariableWidgetInterface::CreationFlags &cflags=DtTaskSetVariableWidgetInterface::NormalMode)
Definition: newTacticalGraphicEntryWidget.h:189
A unicode string.
Definition: DtUnicode.h:33
virtual makVrv::DtUnicode codeVariableType() const
Definition: newTacticalGraphicEntryWidget.h:204
virtual std::string designerGroup() const
The designer group that this is going into.
Definition: newTacticalGraphicEntryWidget.h:214
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
DtObjectDefinitionState
Definition: newTacticalGraphicEntryWidget.h:40
Definition: newTacticalGraphicEntryWidget.h:42
This class will parse the UI file for known scripted task variable types and pull out specified scrip...
Definition: scriptedTaskVariableLayoutConverter.h:32
Definition: readerWriter.h:85
static makVrv::DtUnicode codeVariableType()
Definition: newTacticalGraphicEntryWidget.h:86
void init()
Creates the object, sets up the GUI, and sets up the signal/slot connections for this widget...
QWidget * myWidget
Definition: newTacticalGraphicEntryWidget.h:143
QPushButton * myEntityTypeEditButton
Definition: newTacticalGraphicEntryWidget.h:176
QHBoxLayout * myLayout
Definition: newTacticalGraphicEntryWidget.h:173
DtNewTacticalGraphicEntryWidgetCreator()
Definition: newTacticalGraphicEntryWidget.h:182
virtual ~DtNewTacticalGraphicEntryWidgetCreator()
Definition: newTacticalGraphicEntryWidget.h:185
QPushButton * myDefineButton
Definition: newTacticalGraphicEntryWidget.h:145
virtual bool canBeUsedAsWidget() const
Whether or not this shows up as a usable variable widget.
Definition: newTacticalGraphicEntryWidget.h:199
static std::string headerFile()
Definition: newTacticalGraphicEntryWidget.h:96
QLineEdit * myEntityType
Definition: newTacticalGraphicEntryWidget.h:175
virtual std::string headerFile() const
The header file to include when generating code.
Definition: newTacticalGraphicEntryWidget.h:219
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt's translation tools.
Definition: DtUnicode.h:92
static std::string variableName()
Definition: newTacticalGraphicEntryWidget.h:101
static bool canBeUsedAsWidget()
Whether or not this shows up as a usable variable widget.
Definition: newTacticalGraphicEntryWidget.h:81
Definition: newTacticalGraphicEntryWidget.h:43
QLabel * myLabel
Definition: newTacticalGraphicEntryWidget.h:174
Definition: newTacticalGraphicEntryWidget.h:33
static std::string designerGroup()
Definition: newTacticalGraphicEntryWidget.h:91
A class for keeping track of meta data for variables of scripted tasks.
Definition: scriptedTaskVariable.h:31
QLabel * myStatusLabel
Definition: newTacticalGraphicEntryWidget.h:146
Private to this class.
Definition: newTacticalGraphicEntryWidgetLogic.h:35
virtual std::string variableName() const
The default variable nameto initially assign to this object.
Definition: newTacticalGraphicEntryWidget.h:229
Definition: newTacticalGraphicEntryWidget.h:179
QHBoxLayout * myLayout
Definition: newTacticalGraphicEntryWidget.h:144
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Definition: translator.h:58
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual bool includeInDesigner() const
Include this class in the designer plugin.
Definition: newTacticalGraphicEntryWidget.h:224
virtual std::string className() const
Definition: newTacticalGraphicEntryWidget.h:209
virtual void initializeForQtDesignerExtension(makVrv::DtDe &de, QDesignerFormEditorInterface *core)
Called when initializing widget for potential Qt Designer plugin usage.
Definition: newTacticalGraphicEntryWidget.h:236
Extension widget which allows the entity type of the tactical graphic to be created.
Definition: newTacticalGraphicEntryWidget.h:155
static void initializeForQtDesignerExtension(makVrv::DtDe &, QDesignerFormEditorInterface *)
Add custom menu item to task menu to be able to edit the entity type created by this object...