NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CWinMaskFilesDlg Class Reference

Search Toolkit Book for CWinMaskFilesDlg

#include "winmask_files_dlg.hpp"
(Private to src/gui/widgets/loaders.)

+ Inheritance diagram for CWinMaskFilesDlg:
+ Collaboration diagram for CWinMaskFilesDlg:

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_jobm_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
 

Detailed Description

CWinMaskFilesDlg class declaration

Definition at line 77 of file winmask_files_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

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

anonymous enum
Enumerator
ID_LOADING_TEXT 
ID_LOADING_PROGRESS 

Definition at line 139 of file winmask_files_dlg.hpp.

Constructor & Destructor Documentation

◆ CWinMaskFilesDlg() [1/2]

CWinMaskFilesDlg::CWinMaskFilesDlg ( )

Definition at line 85 of file winmask_files_dlg.cpp.

References Init().

◆ CWinMaskFilesDlg() [2/2]

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 
)

◆ ~CWinMaskFilesDlg()

CWinMaskFilesDlg::~CWinMaskFilesDlg ( )

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

void CWinMaskFilesDlg::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CWinMaskFilesDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 345 of file winmask_files_dlg.cpp.

◆ GetIconResource()

wxIcon CWinMaskFilesDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 350 of file winmask_files_dlg.cpp.

◆ Init()

void CWinMaskFilesDlg::Init ( void  )

◆ OnResetDownloads()

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().

◆ OnUseDownloadedSelected()

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.

◆ OnUseWMPATHSelected()

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.

◆ ShowToolTips()

bool CWinMaskFilesDlg::ShowToolTips ( )
static

Definition at line 340 of file winmask_files_dlg.cpp.

◆ TransferDataFromWindow()

bool CWinMaskFilesDlg::TransferDataFromWindow ( )
virtual

◆ x_FillFileList()

void CWinMaskFilesDlg::x_FillFileList ( )
private

Definition at line 276 of file winmask_files_dlg.cpp.

References f, m_FileList, sFtpFileList, ToWxString(), and x_ShowLoadingFiles().

Referenced by CreateControls().

◆ x_ShowLoadingFiles()

void CWinMaskFilesDlg::x_ShowLoadingFiles ( bool  show)
private

Member Data Documentation

◆ m_FileList

wxCheckListBox* CWinMaskFilesDlg::m_FileList

◆ m_FileListTitle

wxStaticText* CWinMaskFilesDlg::m_FileListTitle

Definition at line 126 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), Init(), and x_ShowLoadingFiles().

◆ m_FileListTitleSizer

wxBoxSizer* CWinMaskFilesDlg::m_FileListTitleSizer

Definition at line 125 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), Init(), and x_ShowLoadingFiles().

◆ m_FutureJob

std::unique_ptr<async_job> CWinMaskFilesDlg::m_FutureJob
private

Definition at line 149 of file winmask_files_dlg.hpp.

Referenced by CreateControls().

◆ m_HelpLine

wxStaticText* CWinMaskFilesDlg::m_HelpLine

Definition at line 128 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), and Init().

◆ m_ResetCache

bool CWinMaskFilesDlg::m_ResetCache
private

◆ m_UseDownloadedCtrl

wxRadioButton* CWinMaskFilesDlg::m_UseDownloadedCtrl

Definition at line 124 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), Init(), and OnUseWMPATHSelected().

◆ m_UseWMPATHCtrl

wxRadioButton* CWinMaskFilesDlg::m_UseWMPATHCtrl

◆ m_WMPATHNotAvailableCtrl

wxStaticText* CWinMaskFilesDlg::m_WMPATHNotAvailableCtrl

Definition at line 122 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), and Init().

◆ m_WMPATHValueCtrl

wxStaticText* CWinMaskFilesDlg::m_WMPATHValueCtrl

Definition at line 123 of file winmask_files_dlg.hpp.

Referenced by CreateControls(), and Init().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:06 2024 by modify_doxy.py rev. 669887