BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::WFlags fl = 0 );
52 
55 
57  virtual void applySettingsTo(ColorProcessor& cp) const;
58 
60  virtual ColorProcessor* createColorProcessor(ColoringMethod method) const
62 
64  virtual void getSettings(const ColorProcessor& cp);
65 
67  virtual QWidget* getEntryFor(ColoringMethod method);
68 
70  virtual vector<ColorRGBA> getColors(ColoringMethod method) const;
71 
73  virtual void writePreferenceEntries(INIFile& inifile);
74 
76  virtual void readPreferenceEntries(INIFile& inifile);
77 
78  protected slots:
79 
80  virtual void maxDistanceChanged();
81  virtual void maxTFChanged();
82  virtual void forceMaxValueChanged();
83  virtual void forceMinValueChanged();
84 
85  protected:
86 
87  virtual void setDefaultValues_();
88  };
89 
90 } }
91 
92 #endif
BALL_EXPORT PTE_ PTE
Exception to be thrown if an invalid option is given.
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52