mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: QHD fixes
This commit is contained in:
parent
044bf82772
commit
a4a63ffce1
5 changed files with 8 additions and 8 deletions
|
|
@ -1818,7 +1818,7 @@ bool FileSel::Execute(int _mode) {
|
|||
sort_lbl.Hide();
|
||||
ok.SetLabel(t_("&Select"));
|
||||
Logc p = filename.GetPos().y;
|
||||
int q = ok.GetPos().y.GetA() + ok.GetPos().y.GetB() + Zy(16);
|
||||
int q = ok.GetPos().y.GetA() + ok.GetPos().y.GetB() + DPI(16);
|
||||
p.SetA(q);
|
||||
filename.SetPosY(p);
|
||||
filesize.SetPosY(p);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ FindFileWindow::FindFileWindow(const Workspace& wspc, const String& actualPackag
|
|||
list.AddColumn("File").SetDisplay(Single<FindFileFileDisplay>());
|
||||
list.AddColumn("Package");
|
||||
list.WhenLeftDouble = Acceptor(IDOK);
|
||||
list.SetLineCy(max(Zy(16), Draw::GetStdFontCy()));
|
||||
list.SetLineCy(max(DPI(16), Draw::GetStdFontCy()));
|
||||
list.HorzGrid(false);
|
||||
list.MultiSelect();
|
||||
list.WantFocus(false);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ NewPackageFileWindow::NewPackageFileWindow()
|
|||
{
|
||||
CtrlLayoutOKCancel(*this, "New package file");
|
||||
|
||||
type.SetLineCy(max(Zy(16), Draw::GetStdFontCy()));
|
||||
type.SetLineCy(max(DPI(16), Draw::GetStdFontCy()));
|
||||
type.SetDropLines(20);
|
||||
Type("cpp", "C++ source file");
|
||||
Type("h", "C++ header file");
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ SelectPackageDlg::SelectPackageDlg(const char *title, bool selectvars_, bool mai
|
|||
alist.AddColumn("Description");
|
||||
alist.AddIndex();
|
||||
alist.EvenRowColor();
|
||||
alist.SetLineCy(max(Zy(16), Draw::GetStdFontCy()));
|
||||
alist.SetLineCy(max(DPI(16), Draw::GetStdFontCy()));
|
||||
alist.ColumnWidths("108 79 317");
|
||||
list.Add(clist.SizePos());
|
||||
list.Add(alist.SizePos());
|
||||
|
|
@ -735,7 +735,7 @@ struct PackageDisplay : Display {
|
|||
ValueArray va = q;
|
||||
Size sz = GetTextSize(String(va[0]), fnt);
|
||||
sz.cx += Zx(20);
|
||||
sz.cy = max(sz.cy, Zy(16));
|
||||
sz.cy = max(sz.cy, DPI(16));
|
||||
return sz;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -837,9 +837,9 @@ LAYOUT(RenamePackage2Layout, 228, 100)
|
|||
END_LAYOUT
|
||||
|
||||
LAYOUT(NewPackageFileLayout, 280, 88)
|
||||
ITEM(Upp::EditString, name, HSizePosZ(48, 8).TopPosZ(28, 19))
|
||||
ITEM(Upp::Label, dv___1, SetLabel(t_("Name ")).LeftPosZ(4, 40).TopPosZ(28, 19))
|
||||
ITEM(Upp::DropList, type, HSizePosZ(4, 8).TopPosZ(4, 19))
|
||||
ITEM(Upp::EditString, name, HSizePosZ(48, 8).TopPosZ(32, 19))
|
||||
ITEM(Upp::Label, dv___1, SetLabel(t_("Name ")).LeftPosZ(4, 40).TopPosZ(32, 19))
|
||||
ITEM(Upp::DropList, type, HSizePosZ(4, 8).TopPosZ(4, 24))
|
||||
ITEM(Upp::Button, ok, SetLabel(t_("OK")).RightPosZ(76, 64).BottomPosZ(8, 24))
|
||||
ITEM(Upp::Button, cancel, SetLabel(t_("Cancel")).RightPosZ(8, 64).BottomPosZ(8, 24))
|
||||
END_LAYOUT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue