2012-04-14 15:11:54 -05:00
|
|
|
/*
|
|
|
|
* OptionsView.h
|
|
|
|
*
|
|
|
|
* Created on: Apr 14, 2012
|
|
|
|
* Author: Simon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPTIONSVIEW_H_
|
|
|
|
#define OPTIONSVIEW_H_
|
|
|
|
|
|
|
|
#include "interface/Window.h"
|
2012-04-15 16:16:57 -05:00
|
|
|
#include "OptionsController.h"
|
|
|
|
#include "interface/Checkbox.h"
|
2012-04-17 09:56:57 -05:00
|
|
|
#include "interface/DropDown.h"
|
2012-04-15 16:16:57 -05:00
|
|
|
#include "OptionsModel.h"
|
2012-04-14 15:11:54 -05:00
|
|
|
|
2012-04-15 16:16:57 -05:00
|
|
|
class OptionsModel;
|
|
|
|
class OptionsController;
|
2012-04-14 15:11:54 -05:00
|
|
|
class OptionsView: public ui::Window {
|
2012-04-15 16:16:57 -05:00
|
|
|
OptionsController * c;
|
|
|
|
ui::Checkbox * heatSimulation;
|
|
|
|
ui::Checkbox * ambientHeatSimulation;
|
|
|
|
ui::Checkbox * newtonianGravity;
|
|
|
|
ui::Checkbox * waterEqualisation;
|
2012-04-17 09:56:57 -05:00
|
|
|
ui::DropDown * airMode;
|
|
|
|
ui::DropDown * gravityMode;
|
2012-08-05 12:35:12 -05:00
|
|
|
ui::DropDown * edgeMode;
|
2012-04-14 15:11:54 -05:00
|
|
|
public:
|
|
|
|
OptionsView();
|
2012-04-15 16:16:57 -05:00
|
|
|
void NotifySettingsChanged(OptionsModel * sender);
|
|
|
|
void AttachController(OptionsController * c_);
|
|
|
|
void OnDraw();
|
2012-04-14 15:11:54 -05:00
|
|
|
virtual ~OptionsView();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OPTIONSVIEW_H_ */
|