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

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