NCBI C++ ToolKit
|
Search Toolkit Book for CWinMaskFilesDlg
#include "winmask_files_dlg.hpp"
(Private to src/gui/widgets/loaders
.)
Public Types | |
enum | { ID_CWIN_MASK_FILES_DLG = 10023 , ID_RADIOBUTTON = 10029 , ID_RADIOBUTTON1 = 10030 , ID_BUTTON2 = 10031 , ID_CHECKLISTBOX1 = 10027 } |
Control identifiers. More... | |
enum | { ID_LOADING_TEXT = 9998 , ID_LOADING_PROGRESS = 9999 } |
Public Member Functions | |
CWinMaskFilesDlg () | |
CWinMaskFilesDlg (wxWindow *parent, wxWindowID id=ID_CWIN_MASK_FILES_DLG, const wxString &caption=_("WindowMasker files information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CWIN_MASK_FILES_DLG, const wxString &caption=_("WindowMasker files information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
~CWinMaskFilesDlg () | |
void | Init () |
void | CreateControls () |
virtual bool | TransferDataFromWindow () |
void | OnUseWMPATHSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON More... | |
void | OnUseDownloadedSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON1 More... | |
void | OnResetDownloads (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2 More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Public Member Functions inherited from CDialog | |
CDialog () | |
virtual void | InitDialog () |
virtual void | EndModal (int retCode) |
virtual void | SetRegistryPath (const string &path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
wxRadioButton * | m_UseWMPATHCtrl |
wxStaticText * | m_WMPATHNotAvailableCtrl |
wxStaticText * | m_WMPATHValueCtrl |
wxRadioButton * | m_UseDownloadedCtrl |
wxBoxSizer * | m_FileListTitleSizer |
wxStaticText * | m_FileListTitle |
wxCheckListBox * | m_FileList |
wxStaticText * | m_HelpLine |
Private Member Functions | |
void | x_FillFileList () |
void | x_ShowLoadingFiles (bool show) |
Private Attributes | |
bool | m_ResetCache |
std::unique_ptr< async_job > | m_FutureJob |
Additional Inherited Members | |
Protected Member Functions inherited from CDialog | |
virtual void | x_LoadSettings (const CRegistryReadView &) |
override these functions in derived classes More... | |
virtual void | x_SaveSettings (CRegistryWriteView) const |
void | x_CorrectDisplay (wxRect &rc) |
move to the parent display More... | |
Protected Attributes inherited from CDialog | |
string | m_RegPath |
CWinMaskFilesDlg class declaration
Definition at line 77 of file winmask_files_dlg.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CWIN_MASK_FILES_DLG | |
ID_RADIOBUTTON | |
ID_RADIOBUTTON1 | |
ID_BUTTON2 | |
ID_CHECKLISTBOX1 |
Definition at line 130 of file winmask_files_dlg.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_LOADING_TEXT | |
ID_LOADING_PROGRESS |
Definition at line 139 of file winmask_files_dlg.hpp.
CWinMaskFilesDlg::CWinMaskFilesDlg | ( | ) |
Definition at line 85 of file winmask_files_dlg.cpp.
References Init().
CWinMaskFilesDlg::CWinMaskFilesDlg | ( | wxWindow * | parent, |
wxWindowID | id = ID_CWIN_MASK_FILES_DLG , |
||
const wxString & | caption = _("WindowMasker files information") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 90 of file winmask_files_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CWinMaskFilesDlg::~CWinMaskFilesDlg | ( | ) |
Definition at line 113 of file winmask_files_dlg.cpp.
References CTaxIdHelper::GetInstance(), m_ResetCache, and CTaxIdHelper::Reset().
bool CWinMaskFilesDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CWIN_MASK_FILES_DLG , |
||
const wxString & | caption = _("WindowMasker files information") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 97 of file winmask_files_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CWinMaskFilesDlg().
void CWinMaskFilesDlg::CreateControls | ( | ) |
Definition at line 135 of file winmask_files_dlg.cpp.
References _, CWinMaskerFileStorage::GeFtpUrl(), CWinMaskerFileStorage::GetEnvPath(), CWinMaskerFileStorage::GetInstance(), CWinMaskerFileStorage::GetUseEnvPath(), ID_BUTTON2, ID_CHECKLISTBOX1, ID_LOADING_PROGRESS, ID_LOADING_TEXT, ID_RADIOBUTTON, ID_RADIOBUTTON1, job_async(), m_FileList, m_FileListTitle, m_FileListTitleSizer, m_FutureJob, m_HelpLine, m_UseDownloadedCtrl, m_UseWMPATHCtrl, m_WMPATHNotAvailableCtrl, m_WMPATHValueCtrl, max(), NCBI_CATCH, sFtpFileList, wxID_ANY, wxT, x_FillFileList(), and x_ShowLoadingFiles().
Referenced by Create().
wxBitmap CWinMaskFilesDlg::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 345 of file winmask_files_dlg.cpp.
wxIcon CWinMaskFilesDlg::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 350 of file winmask_files_dlg.cpp.
void CWinMaskFilesDlg::Init | ( | void | ) |
Definition at line 119 of file winmask_files_dlg.cpp.
References m_FileList, m_FileListTitle, m_FileListTitleSizer, m_HelpLine, m_UseDownloadedCtrl, m_UseWMPATHCtrl, m_WMPATHNotAvailableCtrl, m_WMPATHValueCtrl, and NULL.
Referenced by CWinMaskFilesDlg().
void CWinMaskFilesDlg::OnResetDownloads | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2
Definition at line 325 of file winmask_files_dlg.cpp.
References CWinMaskerFileStorage::GetInstance(), CWinMaskerFileStorage::IsDownloading(), m_ResetCache, wxT, and CWinMaskerFileStorage::x_ClearDownloads().
void CWinMaskFilesDlg::OnUseDownloadedSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON1
Definition at line 319 of file winmask_files_dlg.cpp.
References m_FileList, and m_UseWMPATHCtrl.
void CWinMaskFilesDlg::OnUseWMPATHSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON
Definition at line 313 of file winmask_files_dlg.cpp.
References m_FileList, and m_UseDownloadedCtrl.
|
static |
Definition at line 340 of file winmask_files_dlg.cpp.
|
virtual |
Definition at line 284 of file winmask_files_dlg.cpp.
References CWinMaskerFileStorage::GetInstance(), CWinMaskerFileStorage::GetUseEnvPath(), i, m_FileList, m_ResetCache, m_UseWMPATHCtrl, CWinMaskerFileStorage::SetUseEnvPath(), sFtpFileList, and CWinMaskerFileStorage::x_DownloadFiles().
|
private |
Definition at line 276 of file winmask_files_dlg.cpp.
References f, m_FileList, sFtpFileList, ToWxString(), and x_ShowLoadingFiles().
Referenced by CreateControls().
|
private |
Definition at line 268 of file winmask_files_dlg.cpp.
References ID_LOADING_PROGRESS, ID_LOADING_TEXT, m_FileListTitle, and m_FileListTitleSizer.
Referenced by CreateControls(), and x_FillFileList().
wxCheckListBox* CWinMaskFilesDlg::m_FileList |
Definition at line 127 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), Init(), OnUseDownloadedSelected(), OnUseWMPATHSelected(), TransferDataFromWindow(), and x_FillFileList().
wxStaticText* CWinMaskFilesDlg::m_FileListTitle |
Definition at line 126 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), Init(), and x_ShowLoadingFiles().
wxBoxSizer* CWinMaskFilesDlg::m_FileListTitleSizer |
Definition at line 125 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), Init(), and x_ShowLoadingFiles().
|
private |
Definition at line 149 of file winmask_files_dlg.hpp.
Referenced by CreateControls().
wxStaticText* CWinMaskFilesDlg::m_HelpLine |
Definition at line 128 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), and Init().
|
private |
Definition at line 148 of file winmask_files_dlg.hpp.
Referenced by OnResetDownloads(), TransferDataFromWindow(), and ~CWinMaskFilesDlg().
wxRadioButton* CWinMaskFilesDlg::m_UseDownloadedCtrl |
Definition at line 124 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), Init(), and OnUseWMPATHSelected().
wxRadioButton* CWinMaskFilesDlg::m_UseWMPATHCtrl |
Definition at line 121 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), Init(), OnUseDownloadedSelected(), and TransferDataFromWindow().
wxStaticText* CWinMaskFilesDlg::m_WMPATHNotAvailableCtrl |
Definition at line 122 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), and Init().
wxStaticText* CWinMaskFilesDlg::m_WMPATHValueCtrl |
Definition at line 123 of file winmask_files_dlg.hpp.
Referenced by CreateControls(), and Init().