OpendTect-6_4  6.4
uiobjectitemview.h
Go to the documentation of this file.
1 #ifndef uiobjectitemview_h
2 #define uiobjectitemview_h
3 
4 /*+
5 ________________________________________________________________________
6 
7 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8 Author: Bruno
9 Date: Jan 2010
10 RCS: $Id: uiobjectitemview.h,v 1.1 2010-01-19 13:02:33 cvsbruno Exp
11 $
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "uitoolsmod.h"
17 #include "uigraphicsview.h"
18 
19 class uiParent;
20 class uiObjectItem;
21 
28 {
29 public:
32 
33  virtual void addItem(uiObjectItem*,int stretch=1);
34  virtual void insertItem(uiObjectItem*,int pos,int stretch=1);
35 
36  virtual void removeItem(uiObjectItem*);
37  virtual void removeAllItems();
38 
39  int nrItems() const { return objectitems_.size(); }
40 
41  uiObjectItem* getItem(int idx);
42  void reSizeItem(int idx,const uiSize&);
43  static void reSizeItem(uiObjectItem*,const uiSize&);
44 
45  int stretchFactor(uiObjectItem*);
46  void setStretchFactor(uiObjectItem*,int sf);
47 
48  void resetViewArea(CallBacker*);
49  virtual void setSceneLayoutPos(uiPoint);
50  virtual uiPoint sceneLayoutPos() const;
51 
52  void enableScrollBars(bool yn);
53 
54  uiObjectItem* getItemFromPos(const Geom::Point2D<int>&);
55  void getItemsFromRect(const uiRect&,
57 
58  void setCursor(const MouseCursor&);
59 
61 
62 protected:
63 
65 };
66 
67 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uigeom.h:42
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:26
Embeds some uiObjects in a uiGraphicsView following a horizontal layout. Objects can be dynamically r...
Definition: uiobjectitemview.h:27
Definition: uiparent.h:26
Definition: uigeom.h:25
Definition: uigraphicsitemimpl.h:52
Notifier< uiObjectItemView > viewareareset
Definition: uiobjectitemview.h:60
ObjectSet< uiObjectItem > objectitems_
Definition: uiobjectitemview.h:64
~uiObjectItemView()
Definition: uiobjectitemview.h:31
int nrItems() const
Definition: uiobjectitemview.h:39
Definition: uigraphicsview.h:51

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