5 #ifndef BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
6 #define BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
16 #ifndef BALL_VIEW_KERNEL_STAGE_H
20 #include <BALL/VIEW/UIC/ui_lightSettings.h>
36 public Ui_LightSettingsData,
54 void updateFromStage();
60 virtual void restoreDefaultValues(
bool =
false);
63 void restoreValues(
bool all);
68 virtual void addLightPressed();
71 virtual void colorPressed();
74 virtual void defaultsPressed();
77 virtual void lightSelected(QListWidgetItem* current_item, QListWidgetItem* previous_item);
80 virtual void removeLightPressed();
83 virtual void typeSelected();
86 virtual void intensityChanged();
89 virtual void positionTypeChanged();
93 void setPosition_(
const Vector3& v);
94 void setDirection_(
const Vector3& v);
95 void setAttenuation_(
const Vector3& a);
96 Vector3 getDirection_() throw(Exception::InvalidFormat);
97 Vector3 getPosition_() throw(Exception::InvalidFormat);
98 Vector3 getAttenuation_() throw(Exception::InvalidFormat);
99 void setControlsEnabled_(
bool state);
100 Index getCurrentLightNumber_() const;
105 void saveSettingsToLight_();
108 void getValues_(
Index light = -1);