Exemplo n.º 1
0
	bool HandlerChoiceDialog::Add (const IInfo *ii, IEntityHandler *ih)
	{
		if (!AddCommon (ii, "IEntityHandler"))
			return false;

		Handlers_ [ii->GetName ()] = ih;
		return true;
	}
Exemplo n.º 2
0
	bool HandlerChoiceDialog::Add (const IInfo *ii, IDownload *id)
	{
		if (!AddCommon (ii, "IDownload"))
			return false;

		Downloaders_ [ii->GetName ()] = id;
		return true;
	}
Exemplo n.º 3
0
	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;
	}
Exemplo n.º 4
0
	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;
	}