15 #include "uibasemod.h" 22 #include "od_helpids.h" 37 #define mNoDlgTitle uiString::emptyString() 38 #define mTODOHelpKey HelpKey( 0, ::toString(-1) ) 39 #define mNoHelpKey HelpKey::emptyHelpKey() 45 friend class uiDialogBody;
57 : wintitle_(window_title)
58 , dlgtitle_(dialog_title)
66 , savebutton_(false), savebutispush_(false)
67 , separator_(true), menubar_(false), nrstatusflds_(0)
68 , mainwidgcentered_(false), savechecked_(false)
69 , fixedsize_(false), okcancelrev_(false)
93 Setup(
const char* window_title,
94 const char* dialog_title,
103 enum Button { OK, CANCEL, APPLY, HELP, CREDITS, SAVE };
106 const Setup& setup()
const;
113 void done(
int ret=0);
116 void setHSpacing(
int );
117 void setVSpacing(
int );
118 void setBorder(
int );
120 void setModal(
bool yn);
121 bool isModal()
const;
123 uiButton* button(
Button but );
134 void setCancelText(
const uiString&);
136 void enableSaveButton(
139 int uiResult()
const;
141 void setButtonSensitive(
Button,
bool);
142 void setSaveButtonChecked(
bool);
143 void setTitleText(
const uiString& txt);
144 bool hasSaveButton()
const;
145 bool saveButtonChecked()
const;
147 void setSeparator(
bool yn);
149 bool separator()
const;
150 void setHelpKey(
const HelpKey&);
151 virtual HelpKey helpKey()
const;
153 void showMinMaxButtons();
154 void showAlwaysOnTop();
155 static int titlePos();
156 static void setTitlePos(
int pos);
165 virtual bool doneOK(
int) {
return true; }
CtrlStyle
Definition: uidialog.h:126
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
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
#define mNoHelpKey
Definition: uidialog.h:39
Definition: uidialog.h:126
virtual bool acceptOK(CallBacker *)
confirm accept
Definition: uidialog.h:164
Button
Definition: uidialog.h:103
Definition: uistrings.h:24
virtual bool doneOK(int)
confirm exit
Definition: uidialog.h:165
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: helpview.h:49
Definition: uidialog.h:42
virtual bool rejectOK(CallBacker *)
confirm reject
Definition: uidialog.h:163
static uiString sSaveAsDefault()
Definition: uistrings.h:430
static int titlepos_
Definition: uidialog.h:169
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
CtrlStyle ctrlstyle_
Definition: uidialog.h:168
Notifier< uiDialog > applyPushed
Definition: uidialog.h:159
bool cancelpushed_
Definition: uidialog.h:167
Setup(const char *window_title, const char *dialog_title, int help_id)
nrstatusflds == -1: Make a statusbar, but don't add msg fields.
Definition: uidialog.h:93
CtrlStyle getCtrlStyle() const
OK button disabled when set to CloseOnly.
Definition: uidialog.h:130
Setup(const uiString &window_title, const uiString &dialog_title, const HelpKey &help_key)
Definition: uidialog.h:54