OpendTect-6_4  6.4
uiseisfileman.h
Go to the documentation of this file.
1 #ifndef uiseisfileman_h
2 #define uiseisfileman_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: N. Hemstra
8  Date: April 2002
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiseismod.h"
15 #include "uiobjfileman.h"
16 class uiToolButton;
17 
18 
21 public:
22  uiSeisFileMan(uiParent*,bool);
23  ~uiSeisFileMan();
24 
25  bool is2D() const { return is2d_; }
26 
28  {
29  public:
30 
31  BrowserDef( const char* nm )
32  : name_(nm)
33  , for2d_(false) {}
34 
35  BufferString name_; // translator name for 3D
36  uiString tooltip_; // %1 will be filled by object name
37  CallBack cb_; // this will be passed
38  bool for2d_; // only 3D supported yet
39 
40  };
41  static int addBrowser(BrowserDef*);
42  static uiString sShowAttributeSet() { return tr("Show AttributeSet"); }
44 
45 protected:
46 
47  bool is2d_;
53 
54  void mergePush(CallBacker*);
55  void browsePush(CallBacker*);
56  void copyPush(CallBacker*);
57  void man2DPush(CallBacker*);
58  void manPS(CallBacker*);
59  void showAttribSet(CallBacker*);
60 
61  virtual void mkFileInfo();
62  virtual void ownSelChg();
63  od_int64 getFileSize(const char*,int&) const;
64  void setToolButtonProperties();
65  const BrowserDef* getBrowserDef() const;
66 
67 };
68 
69 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
BufferString name_
Definition: uiseisfileman.h:35
uiToolButton * browsebut_
Definition: uiseisfileman.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
bool for2d_
Definition: uiseisfileman.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
uiString tooltip_
Definition: uiseisfileman.h:36
#define mDeclInstanceCreatedNotifierAccess(clss)
Definition: callback.h:450
Definition: uiseisfileman.h:27
bool is2D() const
Definition: uiseisfileman.h:25
static uiString sShowAttributeSet()
Definition: uiseisfileman.h:42
Definition: uiobjfileman.h:26
CallBack cb_
Definition: uiseisfileman.h:37
int64_t getFileSize(const char *fnm, bool followlink=true)
bytes
BrowserDef(const char *nm)
Definition: uiseisfileman.h:31
uiToolButton * man2dlinesbut_
Definition: uiseisfileman.h:51
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uitoolbutton.h:22
uiToolButton * copybut_
Definition: uiseisfileman.h:50
uiToolButton * mergecubesbut_
Definition: uiseisfileman.h:52
uiToolButton * attribbut_
Definition: uiseisfileman.h:49
CallBacks object-oriented (object + method).
Definition: callback.h:57
Definition: uiseisfileman.h:19
bool is2d_
Definition: uiseisfileman.h:47

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