443
443
MyFrame::OnAdd (wxCommandEvent & event)
445
simImage *sim = new simImage ();
446
LauncherDialog *dlg = new LauncherDialog (this, sim);
447
if (dlg->ShowModal () == wxID_OK)
449
if (dlg->saveChanges ())
452
sim->w = settings.ICONW;
453
sim->h = settings.ICONH;
454
sim->future_w = settings.ICONW;
455
sim->future_h = settings.ICONH;
457
(settings.MAXSIZE + settings.BOTTOM_BORDER) - settings.ICONH -
458
settings.BOTTOM_BORDER;
459
ImagesList->Add (sim);
460
bool changeIcons[ImagesList->GetCount()];
461
fill_n(changeIcons, ImagesList->GetCount(), true);
462
appSize = PositionIcons (settings, ImagesList, changeIcons);
465
saveLaunchers(ImagesList);
445
simImage *sim = new simImage ();
446
LauncherDialog *dlg = new LauncherDialog (this, sim);
447
if (dlg->ShowModal () == wxID_OK) {
448
if (dlg->saveChanges ()) {
449
sim->w = settings.ICONW;
450
sim->h = settings.ICONH;
451
sim->future_w = settings.ICONW;
452
sim->future_h = settings.ICONH;
453
sim->y = (settings.MAXSIZE + settings.BOTTOM_BORDER) - settings.ICONH - settings.BOTTOM_BORDER;
454
ImagesList->Add (sim);
455
bool changeIcons[ImagesList->GetCount()];
456
fill_n(changeIcons, ImagesList->GetCount(), true);
457
appSize = PositionIcons (settings, ImagesList, changeIcons);
460
saveLaunchers(ImagesList);
480
471
void MyFrame::OnKeep(wxCommandEvent & event) {