5 #ifndef BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
6 #define BALL_VIEW_DIALOGS_LIGHTSETTINGS_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_CONCEPT_EMBEDDABLE_H
16 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
20 #ifndef BALL_VIEW_KERNEL_STAGE_H
24 #include <BALL/VIEW/UIC/ui_lightSettings.h>
40 public Ui_LightSettingsData,
61 void updateFromStage();
67 virtual void restoreDefaultValues(
bool =
false);
70 void restoreValues(
bool all);
75 virtual void addLightPressed();
78 virtual void colorPressed();
81 virtual void defaultsPressed();
84 virtual void lightSelected(QListWidgetItem* current_item, QListWidgetItem* previous_item);
87 virtual void removeLightPressed();
90 virtual void typeSelected();
93 virtual void intensityChanged();
96 virtual void intensityMaxChanged(
const QString& text);
99 virtual void positionTypeChanged();
102 virtual void updateDirectlyBoxChanged();
106 void setPosition_(
const Vector3& v);
107 void setDirection_(
const Vector3& v);
108 void setAttenuation_(
const Vector3& a);
109 Vector3 getDirection_() throw(Exception::InvalidFormat);
110 Vector3 getPosition_() throw(Exception::InvalidFormat);
111 Vector3 getAttenuation_() throw(Exception::InvalidFormat);
112 void setControlsEnabled_(
bool state);
113 Index getCurrentLightNumber_() const;
118 void saveSettingsToLight_();
121 void getValues_(
Index light = -1);
~LightSettings()
Destructor.
#define BALL_EMBEDDABLE(TYPE, BASE)