Project

General

Profile

Statistics
| Branch: | Revision:

root / src / tkenv / objinsp.h @ e1750c09

History | View | Annotate | Download (2.9 KB)

1
//==========================================================================
2
//  OBJINSP.H - part of
3
//
4
//                     OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//==========================================================================
8

    
9
/*--------------------------------------------------------------*
10
  Copyright (C) 1992-2008 Andras Varga
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16

    
17
#ifndef __OBJINSP_H
18
#define __OBJINSP_H
19

    
20
#include <tk.h>
21
#include "inspector.h"
22
#include "envirbase.h"
23

    
24
NAMESPACE_BEGIN
25

    
26
class TGenericObjectInspector : public TInspector
27
{
28
   protected:
29
      bool hascontentspage;
30
      bool focuscontentspage;
31
   public:
32
      TGenericObjectInspector(cObject *obj, int typ, const char *geom, void *dat=NULL);
33
      ~TGenericObjectInspector();
34
      void setContentsPage(bool show, bool focus) {hascontentspage = show; focuscontentspage = focus;}
35
      virtual void createWindow();
36
      virtual void update();
37
      virtual void writeBack();
38
      virtual int inspectorCommand(Tcl_Interp *interp, int argc, const char **argv);
39
};
40

    
41
//
42
// *** Note: the following inspectors have been replaced with TGenericObjectInspector ***
43
//
44
// class TObjInspector : public TInspector
45
// {
46
//    public:
47
//       TObjInspector(cObject *obj,int typ,const char *geom,void *dat=NULL);
48
//       ~TObjInspector();
49
//       virtual void createWindow();
50
//       virtual void update();
51
//       virtual void writeBack();
52
//       virtual int inspectorCommand(Tcl_Interp *interp, int argc, const char **argv);
53
// };
54
//
55
// class TContainerInspector : public TInspector
56
// {
57
//    protected:
58
//       bool deep;
59
//       char listbox[64];
60
//    public:
61
//       TContainerInspector(cObject *obj,int typ,const char *geom,void *dat=NULL);
62
//       virtual void createWindow();
63
//       virtual void update();
64
// };
65
//
66
// class TMessageInspector: public TInspector
67
// {
68
//    protected:
69
//       TStructPanel *controlinfopage;
70
//    public:
71
//       TMessageInspector(cObject *obj,int typ,const char *geom,void *dat=NULL);
72
//       ~TMessageInspector();
73
//       virtual void createWindow();
74
//       virtual void update();
75
//       virtual void writeBack();
76
//       virtual int inspectorCommand(Tcl_Interp *interp, int argc, const char **argv);
77
// };
78
//
79

    
80
class TWatchInspector: public TInspector
81
{
82
   public:
83
      TWatchInspector(cObject *obj,int typ,const char *geom,void *dat=NULL);
84
      virtual void createWindow();
85
      virtual void update();
86
      virtual void writeBack();
87
};
88

    
89
// class TParInspector: public TInspector
90
// {
91
//    public:
92
//       TParInspector(cObject *obj,int typ,const char *geom,void *dat=NULL);
93
//       virtual void createWindow();
94
//       virtual void update();
95
//       virtual void writeBack();
96
// };
97

    
98
NAMESPACE_END
99

    
100

    
101
#endif
102

    
103

    
104