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() override;
27 
29  virtual void run(const std::set<makVrv::DtUniqueID>&) override;
30  virtual bool editStatement(const std::set<makVrv::DtUniqueID>& data, const DtSimStatement* s) override;
31 
32  protected:
33  virtual void onCancel() override {
34  }
35 
36  virtual void sendRequest();
37  virtual bool wantsSelectionOfObjectInCommandMode(const std::set<makVrv::DtUniqueID>&) const override;
38 
39  virtual void onOK() override { sendRequest(); };
40 
41  virtual QWidget* takeOKCancelButtonCanvas(QWidget* newParent) override
42  {
43  return nullptr;
44  }
45 
46 
47  virtual void setCancelButtonText(const QString&) override
48  {
49  }
50  virtual void giveOKCancelButtonCanvas(QWidget*) override
51  {
52  }
53  };
54 
56  {
57  public:
58  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent) override;
59 
60  virtual bool supportsType(makVrv::DtDe&, const DtSetMessageType& t, const DtSimStatement*) const override;
61  virtual bool canEdit() const override {
62  return false;
63  }
64  };
65 }
virtual bool canEdit() const override
Override to say whether or not this item can be edited by itself if it supports the type...
Definition: setDestroyedDialog.h:61
virtual void onCancel() override
Definition: setDestroyedDialog.h:33
virtual void onOK() override
Definition: setDestroyedDialog.h:39
Definition: taskSetDialogInterface.h:63
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:41
Definition: taskSetDialogInterface.h:82
virtual void giveOKCancelButtonCanvas(QWidget *) override
Gives the canvas back to this widget.
Definition: setDestroyedDialog.h:50
Definition: setDestroyedDialog.h:18
Definition: setDestroyedDialog.h:55
virtual void setCancelButtonText(const QString &) override
Sets the Cancel button text.
Definition: setDestroyedDialog.h:47
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:76
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)