15 #include "uibasemod.h" 38 friend class uiMainWinBody;
48 , deleteonclose_(true)
63 int nrstatusflds=1,
bool withmenubar=
true,
82 uiStatusBar* statusBar();
88 const uiString& caption(
bool unique=
false)
const;
101 bool isMaximized()
const;
102 bool isMinimized()
const;
104 bool isModal()
const;
106 void setSensitive(
bool yn);
108 void toStatusBar(
const uiString&,
int fldidx=0,
int msecs=-1);
110 virtual void reDraw(
bool deep);
113 void setShrinkAllowed(
bool yn);
114 bool shrinkAllowed();
117 void setExitAppOnClose(
bool yn);
118 void setDeleteOnClose(
bool yn);
120 void removeDockWindow(uiDockWin*);
121 void addDockWindow(uiDockWin&,
Dock);
122 void addToolBar(uiToolBar*);
123 uiToolBar* findToolBar(
const char*);
124 uiToolBar* removeToolBar(uiToolBar*);
125 void addToolBarBreak();
127 uiMenu& getToolbarsMenu()
const;
142 void setCornerPos(
int x,
int y);
144 uiRect geometry(
bool frame=
true)
const;
146 bool poppedUp()
const;
148 bool finalised()
const;
152 const uiParent*
parent()
const {
return parent_; }
157 static const char* activeModalQDlgTitle();
158 static const char* activeModalQDlgButTxt(
int butnr);
159 static int activeModalQDlgRetVal(
int butnr);
160 static void closeActiveModalQDlg(
int retval);
162 static void getModalSignatures(BufferStringSet&);
164 bool visibleonly=
true);
170 void translateText();
173 bool grab(
const char* filenm,
int zoom=1,
174 const char* format=0,
int quality=-1)
const;
181 static bool grabScreen(
const char* filenm,
const char* format=0,
182 int quality=-1,
int screen=0);
184 void activateInGUIThread(
const CallBack&,
186 void saveImage(
const char* fnm,
int w,
int h,
int res);
188 { saveAsPDF_PS( fnm,
true, w, h, res ); }
190 { saveAsPDF_PS( fnm,
false, w, h, res ); }
194 void copyToClipBoard();
197 void runScript(
const char* filename);
198 const char* getScriptToRun()
const;
205 uiObject* mainobject();
209 void saveAsPDF_PS(
const char* fnm,
bool aspdf,
int w,
int h,
215 void setForceFinalise(
bool);
223 void updateCaption();
232 static void programActiveWindow(
uiMainWin*);
233 static uiMainWin* programmedActiveWindow();
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
Interface for several file and directory related services.
Definition: file.h:27
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mQtclass(cls)
Definition: commondefs.h:229
Notifier< uiMainWin > runScriptRequest
Definition: uimainwin.h:196
Definition: uimainwin.h:139
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool isHidden(const char *)
ActModalTyp
Definition: uimainwin.h:154
void saveAsPS(const char *fnm, int w, int h, int res)
Definition: uimainwin.h:189
static const uiString & emptyString()
Definition: uistring.h:109
Timer * afterpopuptimer_
Definition: uimainwin.h:219
PopupArea
Definition: uimainwin.h:138
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
PopupArea popuparea_
Definition: uimainwin.h:221
Notifier< uiMainWin > ctrlCPressed
Definition: uimainwin.h:192
FixedString None()
Definition: keystrs.h:90
Definition: uistatusbar.h:26
Setup(const uiString &capt)
Definition: uimainwin.h:43
Definition: uimainwin.h:40
uiParent * parent_
Definition: uimainwin.h:218
Dock
Dock Selector.
Definition: uimainwin.h:68
Definition: uimainwin.h:72
virtual uiMainWin * mainwin()
Definition: uimainwin.h:149
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
PopupArea getPopupArea() const
Definition: uimainwin.h:141
Definition: uimainwin.h:73
uiString uniquecaption_
Definition: uimainwin.h:225
Off-screen pixel-based paint device.
Definition: uipixmap.h:34
void saveAsPDF(const char *fnm, int w, int h, int res)
Definition: uimainwin.h:187
Notifier< uiMainWin > afterPopup
Definition: uimainwin.h:193
Definition: uimainwin.h:70
Definition: uimainwin.h:138
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString scripttorun_
Definition: uimainwin.h:228
const uiParent * parent() const
Definition: uimainwin.h:152
uiMainWinBody * body_
Definition: uimainwin.h:217
virtual bool closeOK()
confirm window close
Definition: uimainwin.h:202
mFDQtclass(QWidget) class uiDockWin
Definition: uibody.h:18
uiParent * parent()
Definition: uimainwin.h:151
Definition: uimainwin.h:71
Notifier< uiMainWin > activatedone
Definition: uimainwin.h:191
Timer class.
Definition: timer.h:25
CallBacks object-oriented (object + method).
Definition: callback.h:57
Notifier< uiMainWin > windowClosed
triggered when window exits
Definition: uimainwin.h:132
uiString caption_
Definition: uimainwin.h:224
int languagechangecount_
Definition: uimainwin.h:226
void setPopupArea(PopupArea pa)
Definition: uimainwin.h:140