OpendTect-6_4  6.4
uiwizard.h
Go to the documentation of this file.
1 #ifndef uiwizard_h
2 #define uiwizard_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: March 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uitoolsmod.h"
17 #include "uidialog.h"
18 
19 class uiGroup;
20 
21 mExpClass(uiTools) uiWizard : public uiDialog
23 public:
25 
26  int addPage(uiGroup*,bool disp=true);
27  void displayPage(int,bool yn=true);
28  void setRotateMode(bool);
29 
30  void setCurrentPage(int);
31  int currentPageIdx() const { return pageidx; }
32 
33  int firstPage() const;
34  int lastPage() const;
35  int nrPages() const { return pages.size(); }
36 
37 protected:
38 
39  virtual bool preparePage(int) { return true; }
40  virtual bool leavePage(int, bool next ) { return true; }
41  virtual void isStarting() {}
42  virtual bool isClosing(bool iscancel ) { return true; }
43  virtual void reset() {}
46  bool acceptOK(CallBacker*);
47  bool rejectOK(CallBacker*);
48 
49 private:
50 
53 
54  int pageidx;
55  bool rotatemode;
56 
57  bool displayCurrentPage();
58  void updateButtonText();
59  void doFinalise(CallBacker*);
60 };
61 
62 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
description of properties of dialog.
Definition: uidialog.h:51
virtual bool isClosing(bool iscancel)
Definition: uiwizard.h:42
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
int pageidx
Definition: uiwizard.h:54
ObjectSet< uiGroup > pages
Definition: uiwizard.h:51
int currentPageIdx() const
Definition: uiwizard.h:31
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uiwizard.h:21
virtual void reset()
Definition: uiwizard.h:43
Definition: uiparent.h:26
Definition: uidialog.h:42
int nrPages() const
Definition: uiwizard.h:35
virtual bool leavePage(int, bool next)
Definition: uiwizard.h:40
bool rotatemode
Definition: uiwizard.h:55
virtual void isStarting()
Definition: uiwizard.h:41
virtual bool preparePage(int)
Definition: uiwizard.h:39
BoolTypeSet dodisplay
Definition: uiwizard.h:52

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