mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-13 06:13:00 -06:00
Nests dlg improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@12007 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6746cda741
commit
f75aae8d6f
2 changed files with 7 additions and 4 deletions
|
|
@ -158,8 +158,11 @@ NestEditorDlg::NestEditorDlg()
|
|||
|
||||
void NestEditorDlg::Sync()
|
||||
{
|
||||
edit.Enable(nests.GetCount());
|
||||
remove.Enable(nests.GetCount());
|
||||
bool b = nests.GetCount();
|
||||
edit.Enable(b);
|
||||
remove.Enable(b);
|
||||
up.Enable(b);
|
||||
down.Enable(b);
|
||||
}
|
||||
|
||||
bool BaseSetup(String& vars) { return BaseSetupDlg().Run(vars); }
|
||||
|
|
|
|||
|
|
@ -813,8 +813,8 @@ END_LAYOUT
|
|||
|
||||
LAYOUT(NestEditorLayout, 420, 388)
|
||||
ITEM(Button, add, SetLabel(t_("Insert path")).Tip(t_("Add row")).RightPosZ(256, 88).TopPosZ(8, 23))
|
||||
ITEM(Button, down, Tip(t_("Add row")).RightPosZ(36, 24).TopPosZ(8, 23))
|
||||
ITEM(Button, up, Tip(t_("Add row")).RightPosZ(8, 24).TopPosZ(8, 23))
|
||||
ITEM(Button, down, Tip(t_("Move down")).RightPosZ(36, 24).TopPosZ(8, 23))
|
||||
ITEM(Button, up, Tip(t_("Move up")).RightPosZ(8, 24).TopPosZ(8, 23))
|
||||
ITEM(Button, edit, SetLabel(t_("Edit path")).Tip(t_("Edit row")).RightPosZ(168, 84).TopPosZ(8, 23))
|
||||
ITEM(Button, remove, SetLabel(t_("Remove path")).Tip(t_("Delete row")).RightPosZ(64, 100).TopPosZ(8, 23))
|
||||
ITEM(ArrayCtrl, nests, LeftPosZ(4, 408).TopPosZ(36, 312))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue