VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setDestroyedDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 namespace makVrf
17 {
19  {
20  Q_OBJECT
21  public:
22  //CTOR
23  DtSetDestroyedDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
24 
25  //DTOR
26  virtual ~DtSetDestroyedDialog();
27 
29  virtual void run(const std::vector<makVrv::DtSimEntry*>&);
30  virtual bool editStatement(const std::vector<makVrv::DtSimEntry*>& data, const DtSimStatement* s);
31 
32  protected:
33  virtual void onCancel()
34  {
35  }
36 
37  virtual void sendRequest();
38  virtual bool wantsSelectionOfObjectInCommandMode(const std::vector<makVrv::DtSimEntry*>&) const;
39 
40  virtual void onOK() { sendRequest(); };
41 
42  virtual QWidget* takeOKCancelButtonCanvas(QWidget* newParent) override
43  {
44  return nullptr;
45  }
46 
47 
48  virtual void setCancelButtonText(const QString&) override
49  {
50  }
51  virtual void giveOKCancelButtonCanvas(QWidget*) override
52  {
53  }
54  };
55 
57  {
58  public:
59  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
60 
61  virtual bool supportsType(makVrv::DtDe&, const DtSetMessageType& t, const DtSimStatement*) const;
62  virtual bool canEdit() const
63  {
64  return false;
65  }
66  };
67 }
Definition: taskSetDialogInterface.h:65
virtual QWidget * takeOKCancelButtonCanvas(QWidget *newParent) override
This will return the OK/Cancel cavas that the current OK/Cancel buttons are on. You can use this to r...
Definition: setDestroyedDialog.h:42
Definition: taskSetDialogInterface.h:84
virtual void giveOKCancelButtonCanvas(QWidget *) override
Gives the canvas back to this widget.
Definition: setDestroyedDialog.h:51
Definition: setDestroyedDialog.h:18
Definition: setDestroyedDialog.h:56
virtual bool canEdit() const
Override to say whether or not this item can be edited by itself if it supports the type...
Definition: setDestroyedDialog.h:62
virtual void onCancel()
Definition: setDestroyedDialog.h:33
virtual void setCancelButtonText(const QString &) override
Sets the Cancel button text.
Definition: setDestroyedDialog.h:48
class DtSimStatement:
Definition: simStatement.h:38
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
virtual void onOK()
Definition: setDestroyedDialog.h:40

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)