Public Member Functions | |
wxPackageArray () | |
WX_DECLARE_STD_OBJARRAY_HELPERS (wxPackage, wxEmptyPackage) | |
int | IndexById (const wxPackageId &id) const |
Returns the index of the first package with the given ID or wxNOT_FOUND. | |
wxPackage & | ItemById (const wxPackageId &id) |
size_t | RemoveDuplicates () |
bool | UpdatePackage (const wxPackage &pkg) |
bool | GetRecursiveDependencies (wxPackageDependencyArray *ret, const wxPackageArray &arr, wxPackageDependencyType type, wxPackageDependencyArray *notfound=NULL) const |
wxPackageArray | GetPackagesWhichBelongTo (wxPackageCategory cat) const |
Returns the packages whose primary or secondary category is of the given type. | |
void | InvalidateCachedSubstHashMap (wxPackageSubstituteInfoContext ctx=wxPSIC_INVALID) |
Calls wxPackage::InvalidateCachedSubstHashMap on all the packages of the array. | |
bool | LoadCompressedPackagesFrom (const wxString &path) |
bool | LoadCompressedPackagesFromLocalRepo () |
bool | LoadPackagesStatusInfo (wxConfigBase *, const wxString &) |
Calls wxPackage::LoadStatusInfo for all packages. | |
bool | SavePackagesStatusInfo (wxConfigBase *, const wxString &) const |
Calls wxPackage::SaveStatusInfo for all packages. |
Definition at line 391 of file package.h.
bool wxPackageArray::UpdatePackage | ( | const wxPackage & | pkg | ) |
Finds a package with the same name and version (ID) of the given package and then replaces it with the given instance. Returns false if no matching package IDs are found in this array.
Definition at line 1269 of file package.cpp.
References IndexById().
Referenced by wxPackageBrowserPanel::OnButtonClick().
bool wxPackageArray::GetRecursiveDependencies | ( | wxPackageDependencyArray * | ret, | |
const wxPackageArray & | arr, | |||
wxPackageDependencyType | type, | |||
wxPackageDependencyArray * | notfound = NULL | |||
) | const |
Creates an array of all depencies of the packages in this array, removing duplicate dependencies. Note that the array returned contains only the
Definition at line 1281 of file package.cpp.
Referenced by wxPackageDependencyDlg::SetPackageArray().
bool wxPackageArray::LoadCompressedPackagesFrom | ( | const wxString & | path | ) |
Calls LoadCompressedPackage on all WXZ found in the given directory. NB: old content of the array is preserved.
Definition at line 1200 of file package.cpp.
Referenced by LoadCompressedPackagesFromLocalRepo().
bool wxPackageArray::LoadCompressedPackagesFromLocalRepo | ( | ) |
Calls LoadCompressedPackage on all WXZ found in the local repository paths (see wxPackage::s_arrLocalRepo). NB: old content of the array is preserved.
Definition at line 1235 of file package.cpp.
References LoadCompressedPackagesFrom(), and wxPackage::s_arrLocalRepo.
Referenced by wxPackageBrowserPanel::RefreshLocalPackages().