BALL  1.5.0
coloringSettingsDialog.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_VIEW_DIALOGS_COLORINGSETTINGSDIALOG_H
6 #define BALL_VIEW_DIALOGS_COLORINGSETTINGSDIALOG_H
7 
8 #ifndef BALL_COMMON_GLOBAL_H
9 # include <BALL/COMMON/global.h>
10 #endif
11 
12 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
14 #endif
15 
16 #ifndef BALL_VIEW_KERNEL_COMMON_H
17 # include <BALL/VIEW/KERNEL/common.h>
18 #endif
19 
20 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
22 #endif
23 
24 #include <BALL/VIEW/UIC/ui_coloringSettingsDialog.h>
25 
26 #include <vector>
27 
28 namespace BALL
29 {
30  class PTE;
31 
32  namespace VIEW
33  {
34  class ColorProcessor;
35 
36 
42  : public QWidget,
43  public Ui_ColoringSettingsDialogData,
44  public PreferencesEntry
45  {
46  Q_OBJECT
47 
48  public:
49 
51  ColoringSettingsDialog( QWidget* parent = 0, const char* name = "ColoringSettings", Qt::WindowFlags fl = 0 );
52 
55 
57  virtual void applySettingsTo(ColorProcessor& cp) const;
58 
60  virtual ColorProcessor* createColorProcessor(ColoringMethod method) const;
61 
63  virtual void getSettings(const ColorProcessor& cp);
64 
66  virtual QWidget* getEntryFor(ColoringMethod method);
67 
69  virtual vector<ColorRGBA> getColors(ColoringMethod method) const;
70 
72  virtual void writePreferenceEntries(INIFile& inifile);
73 
75  virtual void readPreferenceEntries(INIFile& inifile);
76 
77  protected Q_SLOTS:
78 
79  virtual void maxDistanceChanged();
80  virtual void maxTFChanged();
81  virtual void forceMaxValueChanged();
82  virtual void forceMinValueChanged();
83 
84  protected:
85 
86  virtual void setDefaultValues_();
87  };
88 
89 } }
90 
91 #endif
BALL::PTE
BALL_EXPORT PTE_ PTE
BALL::VIEW::ColoringMethod
ColoringMethod
Definition: VIEW/KERNEL/common.h:242
BALL::VIEW::PreferencesEntry
Definition: preferencesEntry.h:68
BALL
Definition: constants.h:12
common.h
global.h
BALL::INIFile
Definition: INIFile.h:28
QWidget
preferencesEntry.h
BALL::VIEW::ColoringSettingsDialog::~ColoringSettingsDialog
virtual ~ColoringSettingsDialog()
Destructor.
Definition: coloringSettingsDialog.h:54
colorRGBA.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::ColorProcessor
Definition: colorProcessor.h:50
BALL::VIEW::ColoringSettingsDialog
Definition: coloringSettingsDialog.h:41