QgraphicsItemTable::~QgraphicsItemTable() { VisRef->deleteTable(*(this->GetCaption())); VisRef->CancelRefer(this); ClearAttribute(); delete TableData; }
/** Set the file handle (should be called on client side only). */ EXPORT_C void CAgnAttachmentFile::CopyFileHandle(const RFile& aFile) { iFileHandle.Close(); User::LeaveIfError(iFileHandle.Duplicate(aFile)); iIsFileHandleSet = ETrue; // any attachment with a file handle will not be exported inline by default ClearAttribute(CCalAttachment::EExportInline); SetFlag(EDataHasBeenSet); TInt size; aFile.Size(size); SetSize(size); }
int MessageBoxProc(WINDOW wnd, MESSAGE msg, PARAM p1, PARAM p2) { switch (msg) { case CREATE_WINDOW: GetClass(wnd) = MESSAGEBOX; InitWindowColors(wnd); ClearAttribute(wnd, CONTROLBOX); break; case KEYBOARD: if (p1 == '\r' || p1 == ESC) ReturnValue = (int)p1; break; default: break; } return BaseWndProc(MESSAGEBOX, wnd, msg, p1, p2); }
int YesNoBoxProc(WINDOW wnd, MESSAGE msg, PARAM p1, PARAM p2) { switch (msg) { case CREATE_WINDOW: GetClass(wnd) = MESSAGEBOX; InitWindowColors(wnd); ClearAttribute(wnd, CONTROLBOX); break; case KEYBOARD: { int c = tolower((int)p1); if (c == 'y') SendMessage(wnd, COMMAND, ID_OK, 0); else if (c == 'n') SendMessage(wnd, COMMAND, ID_CANCEL, 0); break; } default: break; } return BaseWndProc(MESSAGEBOX, wnd, msg, p1, p2); }