OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 #include "uistrings.h"
17 
18 class uiGenInput;
19 class uiCheckBox;
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  {}
46 
47 
49  mDefSetupMemb(bool,drawstyle)
50  mDefSetupMemb(bool,color)
51  mDefSetupMemb(bool,width)
52  mDefSetupMemb(bool,transparency)
53 
54  };
55 
57  const uiString& lbltxt=uiString::emptyString());
59  const Setup&);
61 
62  void setStyle(const OD::LineStyle&);
63  const OD::LineStyle& getStyle() const;
64 
65  void setColor(const Color&);
66  const Color& getColor() const;
67  void setWidth(int);
68  int getWidth() const;
69  void setLineWidthBounds( int min, int max );
70  void setType(int);
71  int getType() const;
72 
74 
75 protected:
76 
77  uiGenInput* stylesel_;
78  uiColorInput* colinp_;
79  uiLabeledSpinBox* widthbox_;
80 
81  OD::LineStyle& linestyle_;
82 
83  void changeCB(CallBacker*);
84 private:
85 
86  void init(const Setup&);
87 
88 };
89 
Strat::init
void init()
uiSelLineStyle::mODTextTranslationClass
mODTextTranslationClass(uiSelLineStyle)
OD
OpendTect.
Definition: commontypes.h:28
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiCheckBox
Definition: uibutton.h:167
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uigroup.h
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiGroup
Definition: uigroup.h:54
uistrings.h
uiStrings::sEmptyString
static uiString sEmptyString()
Definition: uistrings.h:354
Notifier
Class to help setup a callback handling.
Definition: notify.h:126
uiSelLineStyle::Setup::mDefSetupMemb
mDefSetupMemb(uiString, txt) mDefSetupMemb(bool
uiColorInput
small element for color selection. Has no text label.
Definition: uicolor.h:44
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiSelLineStyle
Group for defining line properties Provides selection of linestyle, linecolor and linewidth.
Definition: uisellinest.h:30
sKey::LineStyle
FixedString LineStyle()
Definition: keystrs.h:89
uiParent
Definition: uiparent.h:26
uiSelLineStyle::Setup::Setup
Setup(const uiString &lbltxt=uiStrings::sEmptyString())
Definition: uisellinest.h:36
uiLabeledSpinBox
Definition: uispinbox.h:138
Color
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
uiSelLineStyle::Setup
Definition: uisellinest.h:34
private
#define private
Definition: winstreambuf.h:13

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