OpendTect-6_4  6.4
uibuttongroup.h
Go to the documentation of this file.
1 #ifndef uibuttongroup_h
2 #define uibuttongroup_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: 18/08/2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "uiobj.h"
17 #include "uigroup.h"
18 
19 mFDQtclass(QButtonGroup)
20 class uiButton;
21 
22 /*\brief Group managing buttons, and their position.
23 
24 If the buttons have an on/off state, then you should consider the
25 setExclusive() switch, which is by default ON.
26 
27 */
28 
29 
31 {
32 public:
33  uiButtonGroup(uiParent*,const char* nm,
35  ~uiButtonGroup();
36 
37  void selectButton(int id);
38  int selectedId() const;
39  int nrButtons() const;
40  void setSensitive(int id,bool yn=true);
41 
42  void displayFrame(bool);
43  bool isFrameDisplayed() const;
44  void setExclusive(bool);
45  bool isExclusive() const;
46  void nextButtonOnNewRowCol();
47 
48  int addButton(uiButton*);
51 
52 protected:
53 
54  mQtclass(QButtonGroup*) qbuttongrp_;
57  bool newrowcol_;
58 
59 };
60 
61 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
friend class uiButton
Definition: i_qbutton.h:30
#define mQtclass(cls)
Definition: commondefs.h:229
Definition: uiparent.h:26
Definition: uibuttongroup.h:30
bool newrowcol_
Definition: uibuttongroup.h:57
OD::Orientation orientation_
Definition: uibuttongroup.h:56
mFDQtclass(QButtonGroup) class uiButton
ObjectSet< uiButton > uibuts_
Definition: uibuttongroup.h:55
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:23

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