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

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