예제 #1
0
 void 
    MimeHeader::DeleteField(const AnsiString &fieldName)
 {
    MimeField *field = GetField(fieldName);
    if (field)
       DeleteField(field);
 }
void mmCustomFieldListDialog::OnMenuSelected(wxCommandEvent& event)
{
    switch(event.GetId())
    {
        case MENU_NEW_FIELD: AddField(); break;
        case MENU_EDIT_FIELD: EditField(); break;
        case MENU_DELETE_FIELD: DeleteField(); break;
        case MENU_UPDATE_FIELD: UpdateField(); break;
        default: break;
    }
}
예제 #3
0
void CBibitemView::OnKeydownListFields(NMHDR* pNMHDR, LRESULT* pResult) 
{
	LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR;
	switch (pLVKeyDow->wVKey) {
	case VK_DELETE:
		if (m_SelField != -1)
			DeleteField(m_SelField);
		break;
	}
	
	*pResult = 0;
}
예제 #4
0
파일: tfieldfunc.c 프로젝트: unxs0/unxsVZ
void ExtProcesstFieldVars(pentry entries[], int x)
{
	register int i;
	unsigned uGroupOp=0;
	for(i=0;i<x;i++)
	{
		if(!strcmp(entries[i].name,"uTargetTable"))
			sscanf(entries[i].val,"%u",&uTargetTable);
		else if(!strcmp(entries[i].name,"uModBSField"))
			uModBSField=1;
		else if(!strncmp(entries[i].name,"CB",2))
		{
			//insider xss protection
			if(guPermLevel<10)
				continue;

			unsigned uCBField=0;
			sscanf(entries[i].name,"CB%u",&uCBField);
			if(uCBField)
			{
				if(!strcmp(gcFunction,"tFieldTools"))
				{
					if(!strcmp(gcCommand,LANG_NB_DELETE))
					{
						DeleteField(uCBField);
						uGroupOp++;
					}
				}
			}
		}
	}

	if(uGroupOp)
		tField("Group operation done");
	
}//void ExtProcesstFieldVars(pentry entries[], int x)
예제 #5
0
void CBibitemView::OnFieldlistPopupRemove() 
{
	DeleteField(m_SelField);
}