OpendTect  6.3
uibuttongroup.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: A.H. Lammertink
8  Date: 18/08/2001
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uibasemod.h"
14 #include "uiobj.h"
15 #include "uigroup.h"
16 
17 mFDQtclass(QButtonGroup)
18 class uiButton;
19 
20 /*\brief Group managing buttons, and their position.
21 
22 If the buttons have an on/off state, then you should consider the
23 setExclusive() switch, which is by default ON.
24 
25 */
26 
27 
29 {
30 public:
31  uiButtonGroup(uiParent*,const char* nm,
33  ~uiButtonGroup();
34 
35  void selectButton(int id);
36  int selectedId() const;
37  int nrButtons() const;
38  void setSensitive(int id,bool yn=true);
39 
40  void displayFrame(bool);
41  bool isFrameDisplayed() const;
42  void setExclusive(bool);
43  bool isExclusive() const;
44 
45  int addButton(uiButton*);
48 
49 protected:
50 
51  mQtclass(QButtonGroup*) qbuttongrp_;
54 
55 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
friend class uiButton
Definition: i_qbutton.h:29
#define mQtclass(cls)
Definition: commondefs.h:232
Definition: uiparent.h:24
Definition: uibuttongroup.h:28
OD::Orientation orientation_
Definition: uibuttongroup.h:53
mFDQtclass(QButtonGroup) class uiButton
ObjectSet< uiButton > uibuts_
Definition: uibuttongroup.h:52
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:21

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