VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskWaitDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 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  DtTaskWaitDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
24 
25  //DTOR
26  virtual ~DtTaskWaitDialog();
27 
29  virtual void run(const std::vector<makVrv::DtSimEntry*>& data);
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 bool wantsSelectionOfObjectInCommandMode(const std::vector<makVrv::DtSimEntry*>&) const;
38  virtual void sendRequest();
39  virtual void onOK() { sendRequest(); };
40 
41  virtual QWidget* takeOKCancelButtonCanvas(QWidget* newParent) override
42  {
43  return nullptr;
44  }
45 
46  virtual void setCancelButtonText(const QString&) override
47  {
48  }
49 
50  virtual void giveOKCancelButtonCanvas(QWidget*) override
51  {
52  }
53  };
54 
56  {
57  public:
58  virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
59 
60  virtual bool supportsType(makVrv::DtDe&, const DtSimTaskMessageType& t, const DtSimStatement*) const;
61  virtual bool canEdit() const
62  {
63  return false;
64  }
65  };
66 }
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: taskWaitDialog.h:41
Definition: taskWaitDialog.h:18
virtual void onOK()
Definition: taskWaitDialog.h:39
virtual bool canEdit() const
Override to say whether or not this item can be edited by itself if it supports the type...
Definition: taskWaitDialog.h:61
Definition: taskSetDialogInterface.h:84
virtual void giveOKCancelButtonCanvas(QWidget *) override
Gives the canvas back to this widget.
Definition: taskWaitDialog.h:50
virtual void setCancelButtonText(const QString &) override
Sets the Cancel button text.
Definition: taskWaitDialog.h:46
Class that is used as a template for task/set dialogs.
Definition: taskSetDialogInterface.h:46
virtual void onCancel()
Definition: taskWaitDialog.h:33
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
Definition: taskWaitDialog.h:55
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)