Bazaar developer reference

PopupReturn::operator=(const PopupReturn &)

Defined in
CvPopupReturn.cpp, line 64
Class
PopupReturn
Hook name
CivHooks::PopupReturn_op_assign

Hooks

static bool BeforePopupReturn_op_assign(PopupReturn* self, const PopupReturn& source, PopupReturn*& result);static void AfterPopupReturn_op_assign(PopupReturn* self, const PopupReturn& source, PopupReturn*& result);static PopupReturn& ReplacePopupReturn_op_assign(PopupReturn& (*original)(PopupReturn*, const PopupReturn&), PopupReturn* self, const PopupReturn& source);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::PopupReturn_op_assign::ID, CIV_HOOK_BEFORE, (void*)&BeforePopupReturn_op_assign);host->RegisterHook(host->pluginIndex, CivHooks::PopupReturn_op_assign::ID, CIV_HOOK_AFTER, (void*)&AfterPopupReturn_op_assign);host->RegisterHook(host->pluginIndex, CivHooks::PopupReturn_op_assign::ID, CIV_HOOK_REPLACE, (void*)&ReplacePopupReturn_op_assign);

Code

63// Assignment operator64PopupReturn& PopupReturn::operator=(const PopupReturn& source)65{66	int iI;6768	for(iI = 0; iI < source.getRadioButtonSize(); iI++)69	{70		CvPopup_SetAtGrow(m_aiSelectedRadioButton, iI, source.getSelectedRadioButton(iI));71	}7273	for(iI = 0; iI < source.getCheckboxSize(); iI++)74	{75		CvPopup_SetAtGrow(m_aiBitField, iI, source.getCheckboxBitfield(iI));76	}7778	for(iI = 0; iI < source.getEditboxSize(); iI++)79	{80		CvPopup_SetAtGrow(m_aszEditBoxString, iI, source.getEditBoxString(iI));81	}8283	for(iI = 0; iI < source.getSpinnerWidsize(); iI++)84	{85		CvPopup_SetAtGrow(m_aiSpinnerWidgetValues, iI, source.getSpinnerWidgetValue(iI));86	}8788	for(iI = 0; iI < source.getPulldownSize(); iI++)89	{90		CvPopup_SetAtGrow(m_aiPulldownID, iI, source.getSelectedPullDownValue(iI));91	}9293	for(iI = 0; iI < source.getListBoxSize(); iI++)94	{95		CvPopup_SetAtGrow(m_aiListBoxID, iI, source.getSelectedListBoxValue(iI));96	}9798	for(iI = 0; iI < source.getSpinBoxSize(); iI++)99	{100		CvPopup_SetAtGrow(m_aiSpinBoxID, iI, source.getSpinnerWidgetValue(iI));101	}102103	for(iI = 0; iI < source.GetButtonSize(); iI++)104	{105		CvPopup_SetAtGrow(m_aiButtonID, iI, source.GetButtonClicked(iI));106	}107108	return (*this);109}

Calls