OpendTect-6_4  6.4
uisellinest.h
Go to the documentation of this file.
1 #ifndef uisellinest_h
2 #define uisellinest_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: 08/08/2000
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "uistrings.h"
18 
19 class uiComboBox;
20 class uiColorInput;
21 class uiLabeledSpinBox;
22 namespace OD { class LineStyle; }
23 
24 
29 mExpClass(uiTools) uiSelLineStyle : public uiGroup
31 public:
32 
33  mExpClass(uiTools) Setup
34  {
35  public:
36  Setup( const uiString&
37  lbltxt=uiStrings::sEmptyString() )
38  // lbltxt null or "" => "Line style"
39  // lbltxt "-" => no label
40  : txt_(lbltxt)
41  , drawstyle_(true)
42  , color_(true)
43  , width_(true)
44  , transparency_(false) {}
45 
47  mDefSetupMemb(bool,drawstyle)
48  mDefSetupMemb(bool,color)
49  mDefSetupMemb(bool,width)
50  mDefSetupMemb(bool,transparency)
51 
52  };
53 
55  const uiString& lbltxt=uiString::emptyString());
57  const Setup&);
58  ~uiSelLineStyle();
59 
60  void setStyle(const OD::LineStyle&);
61  const OD::LineStyle& getStyle() const;
62 
63  void setColor(const Color&);
64  const Color& getColor() const;
65  void setWidth(int);
66  int getWidth() const;
67  void setLineWidthBounds( int min, int max );
68  void setType(int);
69  int getType() const;
70 
72 
73 protected:
74 
78 
80 
81  void changeCB(CallBacker*);
82 private:
83 
84  void init(const Setup&);
85 
86 };
87 
88 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Setup(const uiString &lbltxt=uiStrings::sEmptyString())
Definition: uisellinest.h:36
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Group for defining line properties Provides selection of linestyle, linecolor and linewidth...
Definition: uisellinest.h:29
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiColorInput * colinp_
Definition: uisellinest.h:76
Definition: draw.h:118
bool init()
static const uiString & emptyString()
Definition: uistring.h:109
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uisellinest.h:33
FixedString LineStyle()
Definition: keystrs.h:80
Definition: uispinbox.h:128
uiLabeledSpinBox * widthbox_
Definition: uisellinest.h:77
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
small element for color selection. Has no text label.
Definition: uicolor.h:44
OpendTect.
Definition: commontypes.h:29
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Notifier< uiSelLineStyle > changed
Definition: uisellinest.h:71
static uiString sEmptyString()
Definition: uistrings.h:286
OD::LineStyle & linestyle_
Definition: uisellinest.h:79
uiComboBox * stylesel_
Definition: uisellinest.h:75

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