VR-Forces 4.1.1 Class Documentation
guiObjectDataConsole.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: guiObjectDataConsole.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 //\file guiObjectDataConsole.h
9 
10 #pragma once
11 
12 #include <vrvUtil/signalslib.h>
13 #include <vrvCore/DtUniqueID.h>
14 #include <QtGui/QDialog>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 }
24 
25 //The DtGuiObjectDataConsole class will allow for the entering of an object name
26 //or element id to retrieve information about that object
27 
28 class DtVector;
29 class QVBoxLayout;
30 class QTextEdit;
31 class QLineEdit;
32 class QRadioButton;
33 
35 {
36  Q_OBJECT
37 
38 public:
40 
41  virtual ~DtGuiObjectDataConsole();
42 
43 protected:
44  //Prints a line of text to the console window. Will add CR/LF
45  virtual void print(const QString&);
46 
47  //Displays information for the tactical graphics
49 
50  //Displays information for the tactical graphics
52 
53  //Displays information for the aggregate
55 
56  //Displays information for the entity
58 
59  //Shows help for the console
60  virtual void help();
61 
62  //Shows information for the given item
63  virtual void info(const QString&);
64 
65  //Shows spot report information for the given item (if it exists)
66  virtual void spotinfo(const QString&);
67 
68  //Returns the network data interface for given item
69  virtual DtBoost::shared_ptr<makVrf::DtObjectDataInterface> lookupObjectData(const QString&) const;
70 
71  //Hides the specified object
72  virtual void hideObject(const QString&);
73 
74  //Shows the specified object
75  virtual void showObject(const QString&);
76 
77  //Adds the object to the selection
78  virtual void selectObject(const QString&);
79 
80  //Removes the object from the current selection
81  virtual void removeFromSelection(const QString&);
82 
83 protected:
84  //Returns a list of names from the given element ids
85  virtual QString namesFrom(const std::vector<makVrv::DtElementID>& ids) const;
86 
87  //Displays information for the entity, along with resource information. This call will
88  //delete the interface when complete
90 
91 protected slots:
92  //Called when return is pressed in the object widget. Will then try and find
93  //information for that object
94  virtual void processObject();
95 
96 protected:
98  QRadioButton* myLocal;
99  QRadioButton* myGeocentric;
100  QVBoxLayout* myMainLayout;
101  QTextEdit* myConsole; //The output of the command
102  QLineEdit* myObject; //Object input
103 };

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)