OpendTect  6.6
uigoogleexpdlg.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
4  * AUTHOR : Bert
5  * DATE : Nov 2007
6  * ID : $Id$
7 -*/
8 
9 #include "uidialog.h"
10 #include "filepath.h"
11 class uiFileInput;
12 
13 #define mDecluiGoogleExpStd \
14  uiFileInput* fnmfld_; \
15  bool acceptOK(CallBacker*)
16 
17 #define mImplFileNameFld(nm) \
18  BufferString deffnm( nm ); \
19  deffnm.clean( BufferString::AllowDots ); \
20  FilePath deffp( GetDataDir() ); deffp.add( deffnm ).setExtension( "kml" ); \
21  uiFileInput::Setup fiinpsu( uiFileDialog::Gen, deffp.fullPath() ); \
22  fiinpsu.forread( false ).filter( "*.kml" ); \
23  fnmfld_ = new uiFileInput( this, uiStrings::phrOutput(uiStrings::sFile()),\
24  fiinpsu )
25 
26 
27 #define mCreateWriter(typ,survnm) \
28  const BufferString fnm( fnmfld_->fileName() ); \
29  if ( fnm.isEmpty() ) \
30  { uiMSG().error(tr("please enter the output file name")); \
31  return false; } \
32  \
33  ODGoogle::XMLWriter wrr( typ, fnm, survnm ); \
34  if ( !wrr.isOK() ) \
35  { uiMSG().error(wrr.errMsg()); return false; }
36 
37 
uiFileInput
A file-name input.
Definition: uifileinput.h:34
uidialog.h
filepath.h

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