Public Member Functions | |
wxPackageBrowserPanel () | |
Constructors. | |
wxPackageBrowserPanel (wxWindow *parent, wxWindowID id=SYMBOL_WXPACKAGEBROWSERPANEL_IDNAME, const wxPoint &pos=SYMBOL_WXPACKAGEBROWSERPANEL_POSITION, const wxSize &size=SYMBOL_WXPACKAGEBROWSERPANEL_SIZE, long style=SYMBOL_WXPACKAGEBROWSERPANEL_STYLE) | |
~wxPackageBrowserPanel () | |
bool | Create (wxWindow *parent, wxWindowID id=SYMBOL_WXPACKAGEBROWSERPANEL_IDNAME, const wxPoint &pos=SYMBOL_WXPACKAGEBROWSERPANEL_POSITION, const wxSize &size=SYMBOL_WXPACKAGEBROWSERPANEL_SIZE, long style=SYMBOL_WXPACKAGEBROWSERPANEL_STYLE) |
Creation. | |
void | CreateControls () |
Creates the controls and sizers. | |
void | OnButtonClick (wxCommandEvent &ev) |
void | OnUpdateUI (wxUpdateUIEvent &ev) |
void | OnListBoxSelected (wxCommandEvent &ev) |
void | OnFilterPackages (wxCommandEvent &ev) |
void | OnNotebookPageChanged (wxCommandEvent &ev) |
void | OnSourceListEnter (wxCommandEvent &ev) |
void | OnSourceListSelected (wxCommandEvent &ev) |
void | OnPageChanged (wxNotebookEvent &ev) |
void | OnProgressPanelEnd (wxCommandEvent &ev) |
void | OnIdle (wxIdleEvent &WXUNUSED(ev)) |
void | BrowseLocalPackages () |
void | BrowseNewPackages () |
bool | IsBrowsingLocalPackages () const |
bool | IsBrowsingNewPackages () const |
void | FilterLocalPackages () |
void | FilterNewPackages () |
void | FilterPackageList () |
void | ResetFilter () |
void | Filter () |
Runs the filter on the currently selected panel. | |
void | SelectNewPackage (const wxPackageId &) |
void | SelectNewPackage (unsigned int n) |
void | SelectLocalPackage (const wxPackageId &) |
void | SelectLocalPackage (unsigned int n) |
void | RefreshPackageList () |
void | RefreshLocalPackages () |
void | RefreshNewPackages () |
wxPackageViewerPanel * | GetAuxiliaryViewerPanel () |
wxStatusBar * | GetAuxiliaryStatusBar () |
wxMenuBar * | GetAuxiliaryMenuBar () |
void | SetAuxiliaryViewerPanel (wxPackageViewerPanel *p) |
void | SetAuxiliaryMenuBar (wxMenuBar *p) |
void | SetAuxiliaryStatusBar (wxStatusBar *p) |
bool | Load (wxConfigBase *, const wxString &path) |
void | Save (wxConfigBase *, const wxString &path) const |
bool | BrowseTo (const wxString &path) |
bool | LoadCompressedPackage (const wxString &wxzpath) |
Loads a single WXZ package using the given filename to access it. | |
bool | IsPackageSourceLocal () const |
void | Download (const wxPackageArray &arr, bool skipdepcheck=false) |
void | Download (const wxPackage &pkg, bool skipdepcheck=false) |
wxString | GetDefaultDownloadPath () const |
wxString | GetDefaultDecompressionPath () const |
wxString | GetDefaultInstallationPath () const |
wxPackageArray & | GetLocalPackages () |
wxPackageArray & | GetNewPackages () |
wxPackageArray | GetSelectedPackages () const |
Returns a new array containing copies of the selected packages. | |
bool | IsAutoLoadLocalPackagesEnabled () const |
void | SetDefaultDownloadPath (const wxString &path) |
void | SetDefaultDecompressionPath (const wxString &path) |
void | SetDefaultInstallationPath (const wxString &path) |
void | SetAutoLoadLocalPackages (bool load) |
Static Public Attributes | |
static wxString | s_strDefaultWxlName |
static wxString | s_strDefaultWxlURL |
Protected Member Functions | |
bool | SetRepositoryURL (const wxString &url) |
void | EnableCmd (long id, bool enable=true) |
void | SetStatusText (const wxString &str) |
Protected Attributes | |
wxNotebook * | m_pNotebook |
wxComboBox * | m_pSourceList |
wxPackageListBox * | m_pNewList |
The list of remote packages. Holds an other wxPackageArray itself. | |
wxPackageFilterPanel * | m_pNewFilter |
wxPackageListBox * | m_pLocalList |
The list of local packages. Holds an other wxPackageArray itself. | |
wxPackageFilterPanel * | m_pLocalFilter |
wxString | m_strDefaultDownloadPath |
the default path where downloaded WXZ are placed | |
wxString | m_strDefaultDecompressionPath |
the default path where WXZ are decompressed | |
wxString | m_strDefaultInstallationPath |
the default path where packages are installed | |
wxPackageArray | m_arrLocal |
wxPackageArray | m_arrNew |
bool | m_bShowDupPackages |
should duplicate packages be shown ? | |
bool | m_bNeedLocalPackageRefresh |
should the idle event handler call RefreshLocalPackages() ? | |
bool | m_bAutoLoadLocalPackages |
need to load wx packages at startup? | |
wxPackageViewerPanel * | m_pViewerPanel |
wxMenuBar * | m_pMenuBar |
wxStatusBar * | m_pStatusBar |
Definition at line 176 of file browsepanel.h.
bool wxPackageBrowserPanel::BrowseTo | ( | const wxString & | path | ) |
Changes current source of "remote package" list to the given path and returns true if it's a valid path. Only remote URLs are allowed (i.e. those starting with http:// or ftp://); local URLs should be added to the local package repository array (see SetLocalRepositoryPaths). The "get new packages" tab inside this panel is infact appropriate only for remote packages since it only contains a "Download" button!
Definition at line 308 of file browsepanel.cpp.
References BrowseNewPackages(), RefreshPackageList(), ResetFilter(), and SetRepositoryURL().
bool wxPackageBrowserPanel::IsPackageSourceLocal | ( | ) | const |
Returns TRUE if the package source currently selected is not a remote resource.
Definition at line 523 of file browsepanel.cpp.
References m_pSourceList.
void wxPackageBrowserPanel::Download | ( | const wxPackageArray & | arr, | |
bool | skipdepcheck = false | |||
) |
Downloads the given array of packages queuing them in the "Downloads" tab of the associated auxiliary viewer panel.
Definition at line 583 of file browsepanel.cpp.
References wxPackageDependencyDlg::Create(), wxPackageDependencyDlg::GetAdditionalPackages(), GetAuxiliaryViewerPanel(), wxPackageBatchDownloadDlg::GetDestination(), wxPackageViewerPanel::GetDownloadQueuePanel(), wxPackageDependencyDlg::IsEmpty(), m_arrLocal, m_arrNew, m_strDefaultDownloadPath, wxPackageDownloadQueuePanel::QueueDownloadOf(), wxPackageViewerPanel::SelectDownloadQueuePanel(), wxPackageBatchDownloadDlg::SetDestination(), wxPackageDependencyDlg::SetPackageArray(), and wxPackageBatchDownloadDlg::SetPackages().
Referenced by Download(), and OnButtonClick().
wxPackageArray wxPackageBrowserPanel::m_arrLocal [protected] |
the list of local packages loaded from local repositories NB: when a filter is applied m_arrLocal != m_pLocalList->GetItems() thus we need two different arrays: one in the control (the filtered&displayed list) and one with all local un-filtered packages (m_arrLocal).
Definition at line 400 of file browsepanel.h.
Referenced by Download(), FilterLocalPackages(), GetLocalPackages(), LoadCompressedPackage(), OnButtonClick(), OnProgressPanelEnd(), and Save().
wxPackageArray wxPackageBrowserPanel::m_arrNew [protected] |
the list of new packages loaded from the curently selected source NB: see the comments about m_arrLocal for more info.
Definition at line 404 of file browsepanel.h.
Referenced by Download(), FilterNewPackages(), GetNewPackages(), OnButtonClick(), and RefreshNewPackages().
the auxiliary wxPackageViewerPanel used to display info about the package selected in this panel (can be NULL)
Definition at line 419 of file browsepanel.h.
Referenced by Create(), GetAuxiliaryViewerPanel(), and SetAuxiliaryViewerPanel().