Ticket #2042: printers.diff
File printers.diff, 2.8 KB (added by , 16 years ago) |
---|
-
src/preferences/print/PrintersWindow.cpp
194 194 195 195 // Resize all buttons to maximum width and align them to the right 196 196 float xPos = printersBox->Bounds().Width()-boxInset-maxWidth; 197 addButton->MoveTo(xPos, boxInset + 5);197 addButton->MoveTo(xPos, boxInset +8); 198 198 addButton->ResizeTo(maxWidth, addButton->Bounds().Height()); 199 199 200 fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset + 5);200 fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset +8); 201 201 fRemove->ResizeTo(maxWidth, fRemove->Bounds().Height()); 202 202 203 203 fMakeDefault->MoveTo(xPos, boxInset + addButton->Bounds().Height() + 204 204 boxInset + fRemove->Bounds().Height() + 205 boxInset + 5);205 boxInset +8); 206 206 fMakeDefault->ResizeTo(maxWidth, fMakeDefault->Bounds().Height()); 207 207 208 208 // Disable all selection-based buttons … … 210 210 fMakeDefault->SetEnabled(false); 211 211 212 212 // Create listview with scroller 213 BRect listBounds(boxInset, boxInset+ 5, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,214 printersBox->Bounds().Height()-boxInset );213 BRect listBounds(boxInset, boxInset+8, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH, 214 printersBox->Bounds().Height()-boxInset-3); 215 215 fPrinterListView = new PrinterListView(listBounds); 216 216 BScrollView* pscroller = new BScrollView("printer_scroller", fPrinterListView, 217 217 B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER); … … 243 243 244 244 // Resize all buttons to maximum width and align them to the right 245 245 xPos = fJobsBox->Bounds().Width()-boxInset-maxWidth; 246 cancelButton->MoveTo(xPos, boxInset + 5);246 cancelButton->MoveTo(xPos, boxInset +8); 247 247 cancelButton->ResizeTo(maxWidth, cancelButton->Bounds().Height()); 248 248 249 restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset + 5);249 restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset +8); 250 250 restartButton->ResizeTo(maxWidth, restartButton->Bounds().Height()); 251 251 252 252 // Disable all selection-based buttons … … 254 254 restartButton->SetEnabled(false); 255 255 256 256 // Create listview with scroller 257 listBounds = BRect(boxInset, boxInset+ 5, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,258 fJobsBox->Bounds().Height()-boxInset );257 listBounds = BRect(boxInset, boxInset+8, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH, 258 fJobsBox->Bounds().Height()-boxInset-3); 259 259 fJobListView = new JobListView(listBounds); 260 260 BScrollView* jscroller = new BScrollView("jobs_scroller", fJobListView, 261 261 B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER);