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,
52 Qt::WindowFlags fl = 0 );
84 virtual void lightSelected(QListWidgetItem* current_item, QListWidgetItem* previous_item);
#define BALL_EMBEDDABLE(TYPE, BASE)
void getValues_(Index light=-1)
virtual void restoreDefaultValues(bool=false)
Called when defaults is pressed in Preferences, calls setDefaults.
void setDirection_(const Vector3 &v)
virtual void defaultsPressed()
Resets the lighting.
void setAttenuation_(const Vector3 &a)
virtual void intensityChanged()
Slot for changes of the intensity slider.
virtual void intensityMaxChanged(const QString &text)
Slot for changes of the intensity max factor.
void setPosition_(const Vector3 &v)
void setControlsEnabled_(bool state)
Vector3 getAttenuation_()
virtual void updateDirectlyBoxChanged()
void saveSettingsToLight_()
virtual void removeLightPressed()
Slot for the RemoveLight button.
virtual void colorPressed()
Slot for the EditColor button, opens a color dialog.
Index getCurrentLightNumber_() const
void typeSelected_(Position type)
vector< LightSource > lights_
void restoreValues(bool all)
virtual void addLightPressed()
Slot for the AddLight button.
virtual void lightSelected(QListWidgetItem *current_item, QListWidgetItem *previous_item)
Slot for selection in the listbox with lights.
vector< LightSource > default_lights_
virtual void typeSelected()
Slot for type selection changed.
virtual void positionTypeChanged()
void updateFromStage()
Get the values for lighting from the stage.
void update()
Update the display of all fields.
void apply()
Apply the new values to the stage.