OpendTect-6_4  6.4
uiwindowgrabber.h
Go to the documentation of this file.
1 #ifndef uiwindowgrabber_h
2 #define uiwindowgrabber_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: J.C. Glas
9  Date: July 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uidialog.h"
17 
18 class uiLabeledComboBox;
19 class uiFileInput;
20 class uiSlider;
21 class uiLabel;
22 class uiMainWin;
23 class Timer;
24 
25 
30 public:
31  uiWindowGrabDlg(uiParent*,bool desktop);
32 
33  uiMainWin* getWindow() const;
34  const char* getFilename() const { return filename_.buf(); }
35  int getQuality() const;
36 
37 protected:
42 
44 
45  void updateFilter();
46  void fileSel(CallBacker*);
47  void addFileExtension(BufferString&);
48  bool filenameOK() const;
49 
50  bool acceptOK(CallBacker*);
51  void surveyChanged(CallBacker*);
52 
53  const char* getExtension() const;
54 
57 };
58 
59 
63 {
64 public:
66  ~uiWindowGrabber();
67 
68  void grabDesktop(bool yn) { desktop_ = yn; }
69  bool go();
70  void actCB(CallBacker*);
71 
72 protected:
74  bool desktop_;
77  int quality_;
79 };
80 
81 
82 #endif
uiLabel * infofld_
Definition: uiwindowgrabber.h:41
#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
Definition: uislider.h:42
uiSlider * qualityfld_
Definition: uiwindowgrabber.h:40
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
A file-name input.
Definition: uifileinput.h:34
uiLabeledComboBox * windowfld_
Definition: uiwindowgrabber.h:38
uiMainWin * grabwin_
Definition: uiwindowgrabber.h:75
Definition: uiparent.h:26
BufferString filename_
Definition: uiwindowgrabber.h:76
Definition: uidialog.h:42
uiFileInput * fileinputfld_
Definition: uiwindowgrabber.h:39
Definition: uiwindowgrabber.h:62
uiParent * parent_
Definition: uiwindowgrabber.h:73
Definition: uicombobox.h:133
BufferString filename_
Definition: uiwindowgrabber.h:56
ObjectSet< uiMainWin > windowlist_
Definition: uiwindowgrabber.h:43
Definition: uiwindowgrabber.h:28
Timer * tmr_
Definition: uiwindowgrabber.h:78
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uilabel.h:24
const char * getFilename() const
Definition: uiwindowgrabber.h:34
int quality_
Definition: uiwindowgrabber.h:77
Timer class.
Definition: timer.h:25
bool desktop_
Definition: uiwindowgrabber.h:74
void grabDesktop(bool yn)
Definition: uiwindowgrabber.h:68
static BufferString dirname_
Definition: uiwindowgrabber.h:55

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