Example #1
0
void UsersFrame::layout() {
	dwt::Rectangle r(dwt::Point(0, 0), getClientAreaSize());

	layoutStatus(r);

	users->setBounds(r);
}
void AutoSearchFrame::layout() {
	dwt::Rectangle r(dwt::Point(0, 0), getClientAreaSize());

	layoutStatus(r);

	/// @todo dynamic width
	const int ybutton = add->getTextSize(_T("A")).y + 10;
	const int xbutton = 90;
	const int xborder = 10;

	dwt::Rectangle rb(r.getBottom(ybutton));
	r.size.y -= ybutton;
	items->setBounds(r);

	rb.size.x = xbutton;
	add->setBounds(rb);

	rb.pos.x += xbutton + xborder;
	properties->setBounds(rb);

	rb.pos.x += xbutton + xborder;
	up->setBounds(rb);

	rb.pos.x += xbutton + xborder;
	down->setBounds(rb);

	rb.pos.x += xbutton + xborder;
	remove->setBounds(rb);

	rb.pos.x += xbutton + xborder;
	help->setBounds(rb);
}
Example #3
0
void TextFrame::layout() {
	dwt::Rectangle r(this->getClientAreaSize());

	layoutStatus(r);

	pad->setBounds(r);
}
Example #4
0
void SpyFrame::layout() {
	dwt::Rectangle r(this->getClientAreaSize());

	layoutStatus(r);
	mapWidget(STATUS_IGNORE_TTH, ignoreTTH);

	searches->setBounds(r);
}