PersonView::PersonView(const char* name, BContact* contact, BFile* file)
	:
	BGridView(B_VERTICAL),
//	fGroups(NULL),
	fControls(20, false),
	fAddrView(NULL),
	fPictureView(NULL),
	fSaving(false),
	fContact(contact),
	fPhotoField(NULL),
	fFile(file)
{
	SetName(name);
	SetFlags(Flags() | B_WILL_DRAW);

	UpdatePicture(NULL);

	fInfoView = new BGridView(B_VERTICAL);

	fFieldsBox = new BBox("Contact informations",
		B_WILL_DRAW, B_FANCY_BORDER, fInfoView);

	//float spacing = be_control_look->DefaultItemSpacing();
	//fInfoView->GridLayout()->SetInsets(spacing);

	GridLayout()->AddView(fFieldsBox, 0, GridLayout()->CountRows());

	if (fFile)
		fFile->GetModificationTime(&fLastModificationTime);

	_LoadFieldsFromContact();
}
PersonView::PersonView(const char* name, BContact* contact, BFile* file)
	:
	BGridView(),
//	fGroups(NULL),
	fControls(20, false),
	fPictureView(NULL),
	fSaving(false),
	fSaved(true),
	fContact(contact),
	fPhotoField(NULL),
	fContactFile(file)
{
	SetName(name);
	SetFlags(Flags() | B_WILL_DRAW);

	UpdatePicture(NULL);
	fAddressWindow = NULL;

	float spacing = be_control_look->DefaultItemSpacing();
		
	GridLayout()->SetInsets(spacing, spacing, spacing, spacing);

	_LoadFieldsFromContact();
	if (fContactFile)
		fContactFile->GetModificationTime(&fLastModificationTime);
}
Esempio n. 3
0
protected func Construction() {
	if(GetID() == SAVS) {
		DebugLog("ERROR: Dieses Objekt darf nicht erstellt werden");
		RemoveObject();
	}
	hFillLevel = CreateHash();
	UpdatePicture();
	return _inherited(...);
}