mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
25 lines
589 B
C++
25 lines
589 B
C++
#ifndef INCLUDED_VARIATIONCONTROL
|
|
#define INCLUDED_VARIATIONCONTROL
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif // INCLUDED_VARIATIONCONTROL
|