bool HandlerChoiceDialog::Add (const IInfo *ii, IEntityHandler *ih) { if (!AddCommon (ii, "IEntityHandler")) return false; Handlers_ [ii->GetName ()] = ih; return true; }
bool HandlerChoiceDialog::Add (const IInfo *ii, IDownload *id) { if (!AddCommon (ii, "IDownload")) return false; Downloaders_ [ii->GetName ()] = id; return true; }
bool HandlerChoiceDialog::Add (const IInfo *ii, IEntityHandler *ih) { auto button = AddCommon (ii, "IEntityHandler"); if (!button) return false; Ui_.HandlersLayout_->addWidget (button); Ui_.HandlersLabel_->show (); Handlers_ [ii->GetName ()] = ih; return true; }
bool HandlerChoiceDialog::Add (const IInfo *ii, IDownload *id) { auto button = AddCommon (ii, "IDownload"); if (!button) return false; Ui_.DownloadersLayout_->addWidget (button); Ui_.DownloadersLabel_->show (); Downloaders_ [ii->GetName ()] = id; return true; }