OpendTect-6_4  6.4
uiflatviewwin.h
Go to the documentation of this file.
1 #ifndef uiflatviewwin_h
2 #define uiflatviewwin_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Feb 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiflatviewmod.h"
15 
16 #include "sets.h"
17 #include "uistring.h"
18 
19 class uiParent;
20 class uiMainWin;
21 class uiFlatViewer;
22 class uiFlatViewControl;
23 
32 { mODTextTranslationClass(uiFlatViewWin);
33 public:
34 
35  virtual ~uiFlatViewWin() {}
36 
37  uiFlatViewer& viewer( int idx=0 ) { return *vwrs_[idx]; }
38  const uiFlatViewer& viewer( int idx=0 ) const { return *vwrs_[idx]; }
39  int nrViewers() const { return vwrs_.size(); }
40 
41  void setDarkBG(bool);
42 
43  virtual void setWinTitle(const uiString&) = 0;
44  virtual void start() = 0;
45  virtual void addControl(uiFlatViewControl*) {}
46  virtual uiMainWin* dockParent() = 0;
47  virtual uiParent* viewerParent() = 0;
48 
49  virtual void setInitialSize(int w,int h);
50  virtual void fillPar(IOPar&) const {}
51  virtual void usePar(const IOPar&) {}
52  static void makeInfoMsg(BufferString&,IOPar&);
53 
54 protected:
55 
57 
58  void createViewers(int);
59  void cleanUp();
60 
61  virtual void handleNewViewer(uiFlatViewer*) {}
62 };
63 
64 
65 #endif
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
virtual void addControl(uiFlatViewControl *)
Definition: uiflatviewwin.h:45
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual void usePar(const IOPar &)
Definition: uiflatviewwin.h:51
ObjectSet< uiFlatViewer > vwrs_
Definition: uiflatviewwin.h:56
ObjectSet< uiFlatViewer > vwrs_
Definition: uiflatviewcontrol.h:85
Definition: uistring.h:89
Definition: uiparent.h:26
size_type size() const
Definition: objectset.h:50
virtual void fillPar(IOPar &) const
Definition: uiflatviewwin.h:50
virtual void handleNewViewer(uiFlatViewer *)
Definition: uiflatviewwin.h:61
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
virtual ~uiFlatViewWin()
Definition: uiflatviewwin.h:35
Tools to control uiFlatViewer(s).
Definition: uiflatviewcontrol.h:29
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int nrViewers() const
Definition: uiflatviewwin.h:39
uiFlatViewer & viewer(int idx=0)
Definition: uiflatviewwin.h:37
Base class for windows containing one or more uiFlatViewer(s).
Definition: uiflatviewwin.h:31
const uiFlatViewer & viewer(int idx=0) const
Definition: uiflatviewwin.h:38
Fulfills the FlatView::Viewer specifications using &#39;ui&#39; classes.
Definition: uiflatviewer.h:33

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