OpendTect-6_4  6.4
uisettings.h
Go to the documentation of this file.
1 #ifndef uisettings_h
2 #define uisettings_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert Bril
9  Date: Dec 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uitoolsmod.h"
17 #include "uidialog.h"
18 #include "uidlggroup.h"
19 #include "factory.h"
20 #include "uistring.h"
21 
22 class Settings;
23 class uiComboBox;
24 class uiLabeledComboBox;
25 class uiGenInput;
26 class uiTable;
27 
28 
29 mExpClass(uiTools) uiSettings : public uiDialog
31 public:
32  uiSettings(uiParent*,const char* titl,
33  const char* settskey=0);
34  virtual ~uiSettings();
35 
36  // Specify this to edit the survey defaults
37  static const char* sKeySurveyDefs() { return "SurvDefs"; }
38 
39  static uiDialog* getPythonDlg(uiParent*,const char* titl);
40 
41 protected:
42 
44  const IOPar* cursetts_;
46 
49 
50  void setCurSetts();
51  void getChanges();
52  bool commitSetts(const IOPar&);
53 
54  const IOPar& orgPar() const;
55  int getChgdSettIdx(const char*) const;
56  void grpChg(CallBacker*);
57  void dispNewGrp(CallBacker*);
58  bool acceptOK(CallBacker*);
59 
60 };
61 
62 
65 public:
68  factory)
69  virtual ~uiSettingsGroup();
70 
71  bool isChanged() const { return changed_; }
72  bool needsRestart() const { return needsrestart_; }
73  bool needsRenewal() const { return needsrenewal_; }
74  const char* errMsg() const;
75 
76 protected:
77  uiSettingsGroup(uiParent*,const uiString& caption,
78  Settings&);
79 
80  void updateSettings(bool oldval,bool newval,const char* key);
81  void updateSettings(int oldval,int newval,const char* key);
82  void updateSettings(float oldval,float newval,
83  const char* key);
84  void updateSettings(const OD::String& oldval,
85  const OD::String& newval,
86  const char* key);
87 
90  bool changed_;
93 };
94 
95 
98 public:
100  ~uiSettingsDlg();
101 
102  bool isChanged() const { return changed_; }
103  bool needsRestart() const { return needsrestart_; }
104  bool needsRenewal() const { return needsrenewal_; }
105 
106 protected:
107 
108  bool acceptOK(CallBacker*);
109 
112  bool changed_;
115 };
116 
117 
120 public:
122  uiSettingsGroup,
124  uiParent*,Settings&,
125  "General",
126  toUiString(sFactoryKeyword()))
127 
129  bool acceptOK();
130 
131 protected:
132 
138 
139  int iconsz_;
144 };
145 
146 
149 public:
151  uiSettingsGroup,
153  uiParent*,Settings&,
154  "Visualization",
155  toUiString(sFactoryKeyword()))
156 
158  bool acceptOK();
159 
160 protected:
161 
162  void mipmappingToggled(CallBacker*);
163 
169 
170  //0=standard, 1=higher, 2=highest, 3=system default
176 };
177 
178 
179 
180 #endif
uiGenInput * showinlprogressfld_
Definition: uisettings.h:134
bool needsRestart() const
Definition: uisettings.h:72
#define mExpClass(module)
Definition: commondefs.h:160
bool needsrenewal_
Definition: uisettings.h:114
uiTable * tbl_
Definition: uisettings.h:48
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uisettings.h:147
uiGenInput * usevolshadersfld_
Definition: uisettings.h:166
bool enablemipmapping_
Definition: uisettings.h:174
bool changed_
Definition: uisettings.h:112
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Export_Basic uiString toUiString(ViewStyle)
uiComboBox * textureresfactorfld_
Definition: uisettings.h:164
uiGenInput * grpfld_
Definition: uisettings.h:47
Settings & setts_
Definition: uisettings.h:111
Settings & setts_
Definition: uisettings.h:89
ObjectSet< uiSettingsGroup > grps_
Definition: uisettings.h:110
bool usesurfshaders_
Definition: uisettings.h:172
bool showinlprogress_
Definition: uisettings.h:140
bool needsrestart_
Definition: uisettings.h:113
Definition: uitable.h:30
uiGenInput * virtualkeyboardfld_
Definition: uisettings.h:137
bool needsrestart_
Definition: uisettings.h:91
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
bool isChanged() const
Definition: uisettings.h:102
int iconsz_
Definition: uisettings.h:139
Definition: uiparent.h:26
uiGenInput * iconszfld_
Definition: uisettings.h:133
uiGenInput * showcrlprogressfld_
Definition: uisettings.h:135
bool showrdlprogress_
Definition: uisettings.h:142
Definition: uidlggroup.h:26
uiGenInput * usesurfshadersfld_
Definition: uisettings.h:165
Definition: uidialog.h:42
bool needsrenewal_
Definition: uisettings.h:92
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const IOPar * cursetts_
Definition: uisettings.h:44
uiGenInput * showrdlprogressfld_
Definition: uisettings.h:136
bool needsRenewal() const
Definition: uisettings.h:104
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
General Input Element.
Definition: uigeninput.h:58
Definition: uisettings.h:29
bool issurvdefs_
Definition: uisettings.h:43
Settings class holds the user settings. It is an IOPar.
Definition: settings.h:34
uiGenInput * enablemipmappingfld_
Definition: uisettings.h:167
Definition: uicombobox.h:133
BufferString errmsg_
Definition: uisettings.h:88
bool enabvirtualkeyboard_
Definition: uisettings.h:143
int textureresindex_
Definition: uisettings.h:171
bool usevolshaders_
Definition: uisettings.h:173
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool showcrlprogress_
Definition: uisettings.h:141
uiLabeledComboBox * anisotropicpowerfld_
Definition: uisettings.h:168
static const char * sKeySurveyDefs()
Definition: uisettings.h:37
bool isChanged() const
Definition: uisettings.h:71
bool needsRenewal() const
Definition: uisettings.h:73
ObjectSet< IOPar > chgdsetts_
Definition: uisettings.h:45
Definition: uisettings.h:96
Definition: uisettings.h:63
Definition: uisettings.h:118
bool needsRestart() const
Definition: uisettings.h:103
Definition: uidlggroup.h:86
const char * errMsg() const
Definition: horizontracker.h:61
#define mDefaultFactoryInstantiation2Param(baseclss, clss, parclss1, parclss2, keywrd, usernm)
Definition: factory.h:309
int anisotropicpower_
Definition: uisettings.h:175
bool changed_
Definition: uisettings.h:90
#define mDefineFactory2ParamInClass(T, P0, P1, funcname)
Definition: factory.h:471

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