OpendTect-6_4  6.4
uistatusbar.h
Go to the documentation of this file.
1 #ifndef uistatusbar_h
2 #define uistatusbar_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Lammertink
9  Date: 30/05/2000
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "uibaseobject.h"
17 #include "draw.h"
18 #include "uistring.h"
19 
20 mFDQtclass(QStatusBar)
21 class uiStatusBarBody;
22 class uiMainWin;
23 class uiObject;
24 
25 
26 mExpClass(uiBase) uiStatusBar : public uiBaseObject
27 {
28 
29  friend class uiMainWinBody;
30 
31 public:
32  ~uiStatusBar();
33 
34  int addMsgFld(const uiString& lbltxt=uiString::emptyString(),
35  const uiString& tooltip =uiString::emptyString(),
37  int stretch=1);
38 
39  int addMsgFld(const uiString& tooltip,
41  int stretch=1);
42  bool addObject(uiObject*);
43 
44  void setToolTip(int,const uiString&);
45  void setTxtAlign(int,Alignment::HPos);
46  void setLabelTxt(int,const uiString&);
47 
48  int nrFields() const;
49  void message(const uiString&,int fldidx=0, int msecs=-1);
50  void setEmpty(int startat=0);
51  void setBGColor(int fldidx,const Color&);
52  Color getBGColor(int fldidx) const;
53 
54 protected:
55 
56  uiStatusBar(uiMainWin*,const char*,
57  mQtclass(QStatusBar&));
58 private:
59 
60  uiStatusBarBody* body_;
61  uiStatusBarBody& mkbody(uiMainWin*, const char*,
62  mQtclass(QStatusBar&));
63 };
64 
65 
66 #endif
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
#define mQtclass(cls)
Definition: commondefs.h:229
uiStatusBarBody * body_
Definition: uistatusbar.h:60
static const uiString & emptyString()
Definition: uistring.h:109
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
mFDQtclass(QStatusBar) class uiStatusBarBody
Definition: uistatusbar.h:26
void message(const char *)
default: to stderr
HPos
Definition: draw.h:26
Definition: draw.h:26
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26

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