IconDes.diff
IconDes/IconDes.h (kopia robocza) | ||
---|---|---|
318 | 318 |
void GoTo(int q); |
319 | 319 |
void SyncList(); |
320 | 320 |
void ListCursor(); |
321 |
void PrepareImageDlg(WithImageLayout<TopWindow>& dlg); |
|
321 |
void PrepareImageDlg(WithImageLayout<TopWindow>& dlg, const String& title);
|
|
322 | 322 |
void PrepareImageSizeDlg(WithImageSizeLayout<TopWindow>& dlg); |
323 | 323 |
void ImageInsert(const String& name, const Image& m, bool exp = false); |
324 | 324 |
void InsertImage(); |
IconDes/List.cpp (kopia robocza) | ||
---|---|---|
56 | 56 |
dlg.NoCenter().SetRect(max(0, r.left + (r.Width() - sz.cx) / 2), r.bottom + 32, sz.cx, sz.cy); |
57 | 57 |
} |
58 | 58 | |
59 |
void IconDes::PrepareImageDlg(WithImageLayout<TopWindow>& dlg) |
|
59 |
void IconDes::PrepareImageDlg(WithImageLayout<TopWindow>& dlg, const String& title)
|
|
60 | 60 |
{ |
61 |
CtrlLayoutOKCancel(dlg, "New image");
|
|
61 |
CtrlLayoutOKCancel(dlg, title);
|
|
62 | 62 |
dlg.cx <<= 16; |
63 | 63 |
dlg.cy <<= 16; |
64 | 64 |
if(IsCurrent()) { |
... | ... | |
128 | 128 |
void IconDes::InsertImage() |
129 | 129 |
{ |
130 | 130 |
WithImageLayout<TopWindow> dlg; |
131 |
PrepareImageDlg(dlg); |
|
131 |
PrepareImageDlg(dlg, "New image");
|
|
132 | 132 |
do { |
133 | 133 |
if(dlg.Run() != IDOK) |
134 | 134 |
return; |
... | ... | |
307 | 307 |
} |
308 | 308 |
Slot& c = Current(); |
309 | 309 |
WithImageLayout<TopWindow> dlg; |
310 |
PrepareImageDlg(dlg); |
|
310 |
PrepareImageDlg(dlg, "Edit image");
|
|
311 | 311 |
dlg.Breaker(dlg.cx); |
312 | 312 |
dlg.Breaker(dlg.cy); |
313 | 313 |
Image img = c.image; |