VR-Forces 4.1 Class Documentation
DtSignalCreateObjectAction.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ** Created: 5/15/12 MEM
5 ******************************************************************************/
8 
11 
12 #pragma once
13 
16 #include <vrvCore/DtDe.h>
18 
19 namespace makVrf
20 {
21  class DtVrfCreateMenu;
22 
24  {
25  public:
27  (
28  makVrv::DtDe& de,
29  const std::string& path,
30  const QString& title,
32  const std::string& keywords = "",
33  const std::string& menuIcon = "",
34  const std::string& toolTip = ""
35  );
36 
37  virtual ~DtSignalCreateObjectAction();
38 
40  boost::signal<void (const DtEntityType&, std::string, int, const std::vector<DtVector>&,double,bool, bool, const QString& )> signal_createObject;
41 
42  protected:
44  virtual void slot_createObject(const DtEntityType&, std::string, int, const std::vector<DtVector>&,double,bool, bool);
45 
46  virtual void on_triggered();
47  virtual void slot_creationStopped();
48 
49  virtual DtVrfCreateMenu* findCreateMenu(const QList<QWidget*>&) const;
50 
51  protected:
54  QString myEntityName;
55  };
56 
59  {
60  public:
62 
64 
69  virtual makVrf::DtCreateObjectAction* create(makVrv::DtDe&, const std::string& menuId, const QString& menuName, const makVrf::DtEntityMapperKey& key,
70  const std::string& keywords = "", const std::string& menuIcon = "", const std::string& toolTip = "");
71 
73  boost::signal<void (const DtEntityType&, std::string, int, const std::vector<DtVector>&,double,bool, bool, const QString& )> signal_createObject;
74 
75  protected:
77  virtual void slot_createObject(const DtEntityType&, std::string, int, const std::vector<DtVector>&,double,bool, bool, const QString&);
78 
79  protected:
82  };
83 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)