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

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