OpendTect-6_4  6.4
uiflatviewmainwin.h
Go to the documentation of this file.
1 #ifndef uiflatviewmainwin_h
2 #define uiflatviewmainwin_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 #include "uiflatviewwin.h"
16 #include "uimainwin.h"
17 #include "uigroup.h"
18 
24  , public uiFlatViewWin
25 {
26 public:
27 
28  struct Setup
29  {
30  Setup( const uiString& wintitl,
31  bool delonclose=true )
32  : wintitle_(wintitl)
33  , nrviewers_(1)
34  , nrstatusfields_(1)
35  , deleteonclose_(delonclose)
36  , menubar_(false) {}
37  mDefSetupMemb(uiString,wintitle)
38  mDefSetupMemb(int,nrviewers)
39  mDefSetupMemb(int,nrstatusfields)
40  mDefSetupMemb(bool,deleteonclose)
41  mDefSetupMemb(bool,menubar)
42  };
43 
45 
46  virtual void start() { show(); }
47  virtual void setWinTitle( const uiString& t ){ setCaption(t); }
48 
49  void addControl(uiFlatViewControl*);
50  void displayInfo(CallBacker*);
51  void setInitialSize(int w,int h);
52 
53  virtual uiMainWin* dockParent() { return this; }
54  virtual uiParent* viewerParent() { return this; }
55 
56 };
57 
58 #endif
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
virtual uiMainWin * dockParent()
Definition: uiflatviewmainwin.h:53
Definition: uistring.h:89
Definition: uiparent.h:26
Setup(const uiString &wintitl, bool delonclose=true)
Definition: uiflatviewmainwin.h:30
Definition: uiflatviewmainwin.h:28
virtual void setWinTitle(const uiString &t)
Definition: uiflatviewmainwin.h:47
virtual uiParent * viewerParent()
Definition: uiflatviewmainwin.h:54
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Tools to control uiFlatViewer(s).
Definition: uiflatviewcontrol.h:29
(Non-modal) main window containing one or more uiFlatViewer(s).
Definition: uiflatviewmainwin.h:23
virtual void start()
Definition: uiflatviewmainwin.h:46
Base class for windows containing one or more uiFlatViewer(s).
Definition: uiflatviewwin.h:31

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