diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 21:03:14 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 21:03:14 +0100 |
commit | 37471a3486a566159bcf0c7ebd68f9064287d0fa (patch) | |
tree | 42cc7114a13ff564575bbdd5f9c920f190f079b4 /plugingui/filebrowser.cc | |
parent | b59d65d3c5606b33727cc445555704bb0e203b55 (diff) |
Use new painter clear function.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r-- | plugingui/filebrowser.cc | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc index 33ae366..afd6518 100644 --- a/plugingui/filebrowser.cc +++ b/plugingui/filebrowser.cc @@ -202,31 +202,36 @@ void GUI::FileBrowser::resize(size_t w, size_t h) int brd = 5; // border int btn_h = 18; - lbl_path.move(0, offset); - lineedit.move(60, offset); - - offset += btn_h; - - lbl_path.resize(60, btn_h); - lineedit.resize(w - 60, btn_h); - #ifdef WIN32 + offset += brd; + lbl_drive.move(0, offset); drv.move(60, offset); offset += btn_h; lbl_drive.resize(60, btn_h); - drv.resize(w - 60, btn_h); + drv.resize(w - 60 - brd, btn_h); #endif + offset += brd; + + lbl_path.move(0, offset); + lineedit.move(60, offset); + + offset += btn_h; + + lbl_path.resize(60, btn_h); + lineedit.resize(w - 60 - brd, btn_h); + + offset += brd; - listbox.move(brd, brd + offset); - listbox.resize(w - 1 - 2*brd, h - btn_h - 3*brd - offset); + listbox.move(brd, offset); + listbox.resize(w - 1 - 2*brd, h - btn_h - 2*brd - offset); btn_esc.move(brd, h - btn_h - brd); - btn_esc.resize((w - 1 - 2*brd) / 2, btn_h); + btn_esc.resize((w - 1 - 2*brd) / 2 - brd / 2, btn_h); - btn_sel.move(brd + w / 2, h - btn_h - brd); + btn_sel.move(brd + w / 2 - brd / 2, h - btn_h - brd); btn_sel.resize((w - 1 - 2*brd) / 2, btn_h); |