Lines 944-950
Link Here
|
944 |
virtual ~SelectorWidget () {} |
944 |
virtual ~SelectorWidget () {} |
945 |
|
945 |
|
946 |
protected: |
946 |
protected: |
947 |
SelectorWidget::SelectorWidget (widget* in_widget) |
947 |
SelectorWidget (widget* in_widget) |
948 |
: SDLWidgetWidget (in_widget) |
948 |
: SDLWidgetWidget (in_widget) |
949 |
, m_callback (NULL) |
949 |
, m_callback (NULL) |
950 |
{} |
950 |
{} |
Lines 955-961
Link Here
|
955 |
class PopupSelectorWidget : public SelectorWidget |
955 |
class PopupSelectorWidget : public SelectorWidget |
956 |
{ |
956 |
{ |
957 |
public: |
957 |
public: |
958 |
PopupSelectorWidget::PopupSelectorWidget (w_select_popup* select_popup_w) |
958 |
PopupSelectorWidget (w_select_popup* select_popup_w) |
959 |
: SelectorWidget (select_popup_w) |
959 |
: SelectorWidget (select_popup_w) |
960 |
, m_select_popup (select_popup_w) |
960 |
, m_select_popup (select_popup_w) |
961 |
{ select_popup_w->set_popup_callback (boost::bind(&PopupSelectorWidget::massage_callback, this, _1), NULL); } |
961 |
{ select_popup_w->set_popup_callback (boost::bind(&PopupSelectorWidget::massage_callback, this, _1), NULL); } |
Lines 974-980
Link Here
|
974 |
class SelectSelectorWidget : public SelectorWidget |
974 |
class SelectSelectorWidget : public SelectorWidget |
975 |
{ |
975 |
{ |
976 |
public: |
976 |
public: |
977 |
SelectSelectorWidget::SelectSelectorWidget (w_select* select_w) |
977 |
SelectSelectorWidget (w_select* select_w) |
978 |
: SelectorWidget (select_w) |
978 |
: SelectorWidget (select_w) |
979 |
, m_select (select_w) |
979 |
, m_select (select_w) |
980 |
{ m_select->set_selection_changed_callback (boost::bind(&SelectSelectorWidget::massage_callback, this, _1)); } |
980 |
{ m_select->set_selection_changed_callback (boost::bind(&SelectSelectorWidget::massage_callback, this, _1)); } |
Lines 996-1002
Link Here
|
996 |
class ColourSelectorWidget : public SelectSelectorWidget |
996 |
class ColourSelectorWidget : public SelectSelectorWidget |
997 |
{ |
997 |
{ |
998 |
public: |
998 |
public: |
999 |
ColourSelectorWidget::ColourSelectorWidget (w_player_color* player_color_w) |
999 |
ColourSelectorWidget (w_player_color* player_color_w) |
1000 |
: SelectSelectorWidget (player_color_w) {} |
1000 |
: SelectSelectorWidget (player_color_w) {} |
1001 |
|
1001 |
|
1002 |
// We ignore the labels and use swatches of colour instead |
1002 |
// We ignore the labels and use swatches of colour instead |
Lines 1028-1034
Link Here
|
1028 |
class StaticTextWidget : public SDLWidgetWidget |
1028 |
class StaticTextWidget : public SDLWidgetWidget |
1029 |
{ |
1029 |
{ |
1030 |
public: |
1030 |
public: |
1031 |
StaticTextWidget::StaticTextWidget (w_static_text* static_text_w) |
1031 |
StaticTextWidget (w_static_text* static_text_w) |
1032 |
: SDLWidgetWidget (static_text_w) |
1032 |
: SDLWidgetWidget (static_text_w) |
1033 |
, m_static_text (static_text_w) |
1033 |
, m_static_text (static_text_w) |
1034 |
{} |
1034 |
{} |