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); }
void TextFrame::layout() { dwt::Rectangle r(this->getClientAreaSize()); layoutStatus(r); pad->setBounds(r); }
void SpyFrame::layout() { dwt::Rectangle r(this->getClientAreaSize()); layoutStatus(r); mapWidget(STATUS_IGNORE_TTH, ignoreTTH); searches->setBounds(r); }