 |
OpendTect
6.6
|
Go to the documentation of this file.
15 #include "uibasemod.h"
32 #define USE_DISPLAY_TIMER 1
39 uiObjectBody(
uiParent*,
const char* nm);
42 virtual ~uiObjectBody();
46 void display(
bool yn,
bool shrink=
false,
47 bool maximized=
false);
49 bool uihasFocus()
const;
50 bool uiCloseOK() {
return uiObjHandle().closeOK(); }
51 bool isDisplayed()
const {
return display_; }
53 Color uibackgroundColor()
const;
54 void uisetBackgroundColor(
const Color&);
55 void uisetBackgroundPixmap(
const uiPixmap&);
56 void uisetTextColor(
const Color&);
57 void uisetSensitive(
bool yn=
true);
58 bool uisensitive()
const;
59 bool uivisible()
const;
61 int prefHNrPics()
const;
62 void setPrefWidth(
int);
63 float prefWidthInCharSet()
const {
return pref_char_width; }
64 void setPrefWidthInChar(
float);
65 void setMinimumWidth(
int);
66 void setMaximumWidth(
int);
68 int prefVNrPics()
const;
69 void setPrefHeight(
int);
70 float prefHeightInCharSet()
const {
return pref_char_height; }
71 void setPrefHeightInChar(
float);
72 void setMinimumHeight(
int);
73 void setMaximumHeight(
int);
75 void setStretch(
int,
int);
76 virtual int stretch(
bool,
bool retUndef=
false)
const;
78 virtual int nrTxtLines()
const {
return -1; }
81 int margin=-1,
bool reciprocal=
true);
84 { attach(t,other->mainObject(),m,r ); }
86 void uisetFont(
const uiFont&);
87 const uiFont* uifont()
const;
89 virtual uiSize actualSize(
bool include_border=
true)
const;
98 virtual void reDraw(
bool);
102 const i_LayoutItem* layoutItem() {
return layoutItem_; }
105 virtual void finalise();
106 virtual bool finalised()
const {
return finalised_; }
108 virtual void fontchanged();
110 int fontHeight()
const;
111 int fontWidth(
bool max=
false)
const;
112 int fontWidthFor(
const uiString&)
const;
113 int fontWidthFor(
const char*)
const;
118 {
return hor ? hszpol: vszpol ; }
120 void setShrinkAllowed(
bool yn) { allowshrnk = yn; }
121 bool shrinkAllowed() {
return allowshrnk; }
123 bool isHidden() {
return is_hidden; }
124 bool itemInited()
const;
127 {
if ( pb ) parent_ = pb; }
134 virtual const mQtclass(QWidget*) managewidg_()
const {
return qwidget_(); }
136 virtual i_LayoutItem* mkLayoutItem_(
i_LayoutMngr& mngr);
138 virtual void finalise_() {}
142 void loitemDeleted() { layoutItem_ = 0; }
146 i_LayoutItem* layoutItem_;
155 bool display_maximized;
161 float pref_char_width;
163 float pref_char_height;
165 int pref_height_hint;
175 void gtFntWdtHgt()
const;
178 #ifdef USE_DISPLAY_TIMER
Off-screen pixel-based paint device.
Definition: uipixmap.h:34
bool isHidden(const char *)
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
#define mFDQtclass(cls)
Definition: commondefs.h:233
#define mExpClass(module)
Definition: commondefs.h:177
Wrapper around QLayoutItem class. Stores some dGB specific layout info.
Definition: i_layoutitem.h:112
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
constraintType
Definition: uilayout.h:19
Timer class.
Definition: timer.h:25
Definition: uiparentbody.h:23
dGB's layout manager
Definition: i_layout.h:70
virtual uiSize minimumSize() const
SzPolicy
How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1....
Definition: uiobj.h:55
#define mQtclass(cls)
Definition: commondefs.h:234
The base class for most UI elements.
Definition: uiobj.h:38
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:274
Definition: uiparent.h:26
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021