2007-05-07 09:33:24 -07:00
|
|
|
#ifndef INCLUDED_VARIATIONCONTROL
|
|
|
|
|
#define INCLUDED_VARIATIONCONTROL
|
2006-09-27 09:54:23 -07:00
|
|
|
|
|
|
|
|
#include "General/Observable.h"
|
|
|
|
|
|
|
|
|
|
class ObjectSettings;
|
|
|
|
|
|
|
|
|
|
class VariationControl : public wxScrolledWindow
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
VariationControl(wxWindow* parent, Observable<ObjectSettings>& objectSettings);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void OnSelect(wxCommandEvent& evt);
|
|
|
|
|
void OnObjectSettingsChange(const ObjectSettings& settings);
|
|
|
|
|
void RefreshObjectSettings();
|
|
|
|
|
|
|
|
|
|
ObservableScopedConnection m_Conn;
|
|
|
|
|
|
|
|
|
|
Observable<ObjectSettings>& m_ObjectSettings;
|
|
|
|
|
std::vector<wxComboBox*> m_ComboBoxes;
|
|
|
|
|
wxSizer* m_Sizer;
|
|
|
|
|
};
|
|
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#endif // INCLUDED_VARIATIONCONTROL
|