コード例 #1
0
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();
}
コード例 #2
0
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);
}
コード例 #3
0
ファイル: Script.c プロジェクト: lluchs/ClonkMars
protected func Construction() {
	if(GetID() == SAVS) {
		DebugLog("ERROR: Dieses Objekt darf nicht erstellt werden");
		RemoveObject();
	}
	hFillLevel = CreateHash();
	UpdatePicture();
	return _inherited(...);
}