OpendTect-6_4  6.4
uiobjfileman.h
Go to the documentation of this file.
1 #ifndef uiobjfileman_h
2 #define uiobjfileman_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 "uiiomod.h"
15 #include "uidialog.h"
16 
17 class IOObj;
18 class IOObjContext;
19 class uiButton;
20 class uiButtonGroup;
21 class uiGroup;
22 class uiIOObjSelGrp;
23 class uiTextEdit;
24 
25 
28 public:
29  ~uiObjFileMan();
30 
31  uiIOObjSelGrp* selGroup() { return selgrp_; }
32  const IOObj* curIOObj() const { return curioobj_; }
33  const IOObjContext& ioobjContext() const { return ctxt_; }
34 
35  uiGroup* listGroup() { return listgrp_; }
36  uiGroup* infoGroup() { return infogrp_; }
37  uiButtonGroup* extraButtonGroup() { return extrabutgrp_; }
38 
39 protected:
41  const IOObjContext&);
42 
49 
53 
54  void finaliseStartCB(CallBacker*);
55  void saveNotes(CallBacker*);
56  void readNotes();
57  void setInfo(const char* txt);
58  void setPrefWidth(int width);
59  void createDefaultUI(bool needreloc=false,
60  bool needremove=true,
61  bool multisel=true);
62  void getTimeStamp(const char*,BufferString&);
63  void getTimeLastModified(const char*,BufferString&);
64  BufferString getFileInfo();
65  virtual void mkFileInfo() = 0;
66  virtual od_int64 getFileSize(const char*,int&) const;
67 
68  void selChg(CallBacker*);
69  virtual void ownSelChg() {}
70  void updateCB(CallBacker*);
71  virtual void updateList() {}
72 };
73 
74 
75 #endif
uiGroup * listGroup()
Definition: uiobjfileman.h:35
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
description of properties of dialog.
Definition: uidialog.h:51
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uitextedit.h:74
mODTextTranslationClass(uiObjFileMan) public uiIOObjSelGrp * selGroup()
Definition: uiobjfileman.h:31
Definition: ioobj.h:58
bool curimplexists_
Definition: uiobjfileman.h:52
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiTextEdit * infofld_
Definition: uiobjfileman.h:43
IOObjContext & ctxt_
Definition: uiobjfileman.h:51
#define od_int64
Definition: plftypes.h:36
virtual void ownSelChg()
Definition: uiobjfileman.h:69
uiGroup * infoGroup()
Definition: uiobjfileman.h:36
Definition: uiparent.h:26
Definition: uidialog.h:42
Definition: uiobjfileman.h:26
const IOObj * curIOObj() const
Definition: uiobjfileman.h:32
virtual void updateList()
Definition: uiobjfileman.h:71
uiGroup * infogrp_
Definition: uiobjfileman.h:47
int64_t getFileSize(const char *fnm, bool followlink=true)
bytes
const IOObjContext & ioobjContext() const
Definition: uiobjfileman.h:33
virtual int width() const
Actual size in pixels.
Definition: uibuttongroup.h:30
uiGroup * listgrp_
Definition: uiobjfileman.h:46
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiTextEdit * notesfld_
Definition: uiobjfileman.h:44
IOObj * curioobj_
Definition: uiobjfileman.h:50
uiIOObjSelGrp * selgrp_
Definition: uiobjfileman.h:45
uiButtonGroup * extrabutgrp_
Definition: uiobjfileman.h:48
virtual void setPrefWidth(int)
Basic group for letting the user select an object.
Definition: uiioobjselgrp.h:46
uiButtonGroup * extraButtonGroup()
Definition: uiobjfileman.h:37
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62

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