OpendTect-6_4  6.4
uiapplserv.h
Go to the documentation of this file.
1 #ifndef uiapplserv_h
2 #define uiapplserv_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: Feb 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uitoolsmod.h"
17 #include "namedobj.h"
18 class uiParent;
19 class uiApplPartServer;
20 
21 
25 {
26 public:
27  uiApplService( const char* nm = 0 );
29 
30  virtual uiParent* parent() const = 0;
31  virtual bool eventOccurred(const uiApplPartServer*,int evid) = 0;
33  virtual void* getObject(const uiApplPartServer*,int) = 0;
35 };
36 
37 
49 {
50 public:
51 
53  virtual const char* name() const = 0;
54 
56  const uiApplService& appserv() const;
57 
58  void setParent(uiParent*);
59 
60 protected:
61 
62  uiParent* parent() const;
63 
64  bool sendEvent( int evid ) const;
65  void* getObject( int objid ) const;
66 
67 private:
68 
70 
71 };
72 
73 
74 #endif
void setParent(uiParent *)
bool sendEvent(int evid) const
#define mExpClass(module)
Definition: commondefs.h:160
virtual const char * name() const =0
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uiparent.h:26
uiApplService & uias_
Definition: uiapplserv.h:69
void * getObject(int objid) const
uiApplService & appserv()
Services from application level to 'Part servers'.
Definition: uiapplserv.h:24
Object with a name.
Definition: namedobj.h:35
uiApplPartServer(uiApplService &a)
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
uiParent * parent() const

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019