NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CMultiFileInput Class Reference

Search Toolkit Book for CMultiFileInput

CMultiFileInput. More...

#include <gui/widgets/wx/multi_file_input.hpp>

+ Inheritance diagram for CMultiFileInput:
+ Collaboration diagram for CMultiFileInput:

Classes

class  CDropTarget
 

Public Types

enum  eControlIDs { eDeleteAllFilesLink = 20001 , eLoadBtn , eFirstControl }
 

Public Member Functions

 CMultiFileInput ()
 
 CMultiFileInput (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 
virtual ~CMultiFileInput ()
 
void Init ()
 
void Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 
void GetFilenames (vector< wxString > &filenames) const
 
void SetFilenames (const vector< wxString > &filenames)
 
void AddFilenames (const vector< wxString > &filenames)
 
void OnLink (wxHyperlinkEvent &event)
 
void OnBrowseBtn (wxCommandEvent &event)
 
Attributes of wxFileDialog show on "Add Files" command
void SetDlgTitle (const wxString &title)
 
void SetDefaultDir (const wxString &dir)
 
wxString GetDefaultDir () const
 
void SetWildcard (const wxString &wildcard)
 
wxString GetWildcard () const
 
void SetDlgParent (wxWindow *parent)
 
void SetDlgAttrs (const wxString &title, const wxString &dir, const wxString &wildcard, wxWindow *parent)
 
void SetSingleMode (bool single)
 

Protected Member Functions

void x_AddFilenameRow (const wxString &filename)
 
void x_OnAddFilenames ()
 
void x_AddFilenames (const vector< wxString > &paths)
 
void x_DeleteAllFilenames ()
 
void x_DeleteFilename (int link_id)
 
void x_SetSingleMode ()
 
void x_SetMultiMode ()
 
void x_SendFileTxtChangedEvt (CAdvancedFileInput *input, const wxString &txt)
 

Protected Attributes

wxString m_DlgTitle
 
wxString m_DefaultDir
 
wxString m_Wildcard
 
bool m_SingleMode
 
vector< wxString > m_SaveFilenames
 
wxWindow * m_DlgParent
 
wxScrolledWindow * m_ScrollWnd
 
wxFlexGridSizer * m_FileSizer
 
wxBoxSizer * m_LinkSizer
 
vector< CAdvancedFileInput * > m_Inputs
 
int m_LastChildID
 

Detailed Description

CMultiFileInput.

Definition at line 55 of file multi_file_input.hpp.

Member Enumeration Documentation

◆ eControlIDs

Enumerator
eDeleteAllFilesLink 
eLoadBtn 
eFirstControl 

Definition at line 60 of file multi_file_input.hpp.

Constructor & Destructor Documentation

◆ CMultiFileInput() [1/2]

CMultiFileInput::CMultiFileInput ( )

Definition at line 91 of file multi_file_input.cpp.

References Init().

◆ CMultiFileInput() [2/2]

CMultiFileInput::CMultiFileInput ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

Definition at line 97 of file multi_file_input.cpp.

References Create(), Init(), and ncbi::grid::netcache::search::fields::size.

◆ ~CMultiFileInput()

CMultiFileInput::~CMultiFileInput ( )
virtual

Definition at line 110 of file multi_file_input.cpp.

Member Function Documentation

◆ AddFilenames()

void CMultiFileInput::AddFilenames ( const vector< wxString > &  filenames)

◆ Create()

void CMultiFileInput::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

◆ GetDefaultDir()

wxString CMultiFileInput::GetDefaultDir ( ) const

Definition at line 190 of file multi_file_input.cpp.

References m_DefaultDir.

◆ GetFilenames()

void CMultiFileInput::GetFilenames ( vector< wxString > &  filenames) const

◆ GetWildcard()

wxString CMultiFileInput::GetWildcard ( ) const

Definition at line 202 of file multi_file_input.cpp.

References m_Wildcard.

◆ Init()

void CMultiFileInput::Init ( void  )

◆ OnBrowseBtn()

void CMultiFileInput::OnBrowseBtn ( wxCommandEvent &  event)

Definition at line 461 of file multi_file_input.cpp.

References eLoadBtn, GetId(), i, m_Inputs, and x_OnAddFilenames().

◆ OnLink()

void CMultiFileInput::OnLink ( wxHyperlinkEvent &  event)

◆ SetDefaultDir()

void CMultiFileInput::SetDefaultDir ( const wxString &  dir)

Definition at line 184 of file multi_file_input.cpp.

References m_DefaultDir.

Referenced by CFileLoadPanel::SetWorkDir().

◆ SetDlgAttrs()

void CMultiFileInput::SetDlgAttrs ( const wxString &  title,
const wxString &  dir,
const wxString &  wildcard,
wxWindow *  parent 
)

◆ SetDlgParent()

void CMultiFileInput::SetDlgParent ( wxWindow *  parent)

Definition at line 208 of file multi_file_input.cpp.

References m_DlgParent.

◆ SetDlgTitle()

void CMultiFileInput::SetDlgTitle ( const wxString &  title)

Definition at line 178 of file multi_file_input.cpp.

References m_DlgTitle.

◆ SetFilenames()

void CMultiFileInput::SetFilenames ( const vector< wxString > &  filenames)

◆ SetSingleMode()

void CMultiFileInput::SetSingleMode ( bool  single)

◆ SetWildcard()

void CMultiFileInput::SetWildcard ( const wxString &  wildcard)

◆ x_AddFilenameRow()

void CMultiFileInput::x_AddFilenameRow ( const wxString &  filename)
protected

◆ x_AddFilenames()

void CMultiFileInput::x_AddFilenames ( const vector< wxString > &  paths)
protected

◆ x_DeleteAllFilenames()

void CMultiFileInput::x_DeleteAllFilenames ( )
protected

Definition at line 449 of file multi_file_input.cpp.

References m_FileSizer, m_Inputs, m_ScrollWnd, and x_AddFilenameRow().

Referenced by OnLink(), SetFilenames(), and x_SetSingleMode().

◆ x_DeleteFilename()

void CMultiFileInput::x_DeleteFilename ( int  link_id)
protected

Definition at line 344 of file multi_file_input.cpp.

References input(), m_FileSizer, m_Inputs, m_ScrollWnd, and x_SendFileTxtChangedEvt().

Referenced by OnLink().

◆ x_OnAddFilenames()

void CMultiFileInput::x_OnAddFilenames ( )
protected

◆ x_SendFileTxtChangedEvt()

void CMultiFileInput::x_SendFileTxtChangedEvt ( CAdvancedFileInput input,
const wxString &  txt 
)
protected

◆ x_SetMultiMode()

void CMultiFileInput::x_SetMultiMode ( )
protected

◆ x_SetSingleMode()

void CMultiFileInput::x_SetSingleMode ( )
protected

Member Data Documentation

◆ m_DefaultDir

wxString CMultiFileInput::m_DefaultDir
protected

Definition at line 138 of file multi_file_input.hpp.

Referenced by GetDefaultDir(), SetDefaultDir(), SetDlgAttrs(), and x_OnAddFilenames().

◆ m_DlgParent

wxWindow* CMultiFileInput::m_DlgParent
protected

Definition at line 142 of file multi_file_input.hpp.

Referenced by Init(), SetDlgAttrs(), SetDlgParent(), and x_OnAddFilenames().

◆ m_DlgTitle

wxString CMultiFileInput::m_DlgTitle
protected

Definition at line 137 of file multi_file_input.hpp.

Referenced by Init(), SetDlgAttrs(), SetDlgTitle(), and x_OnAddFilenames().

◆ m_FileSizer

wxFlexGridSizer* CMultiFileInput::m_FileSizer
protected

◆ m_Inputs

vector<CAdvancedFileInput*> CMultiFileInput::m_Inputs
protected

◆ m_LastChildID

int CMultiFileInput::m_LastChildID
protected

Definition at line 149 of file multi_file_input.hpp.

Referenced by Init(), and x_AddFilenameRow().

◆ m_LinkSizer

wxBoxSizer* CMultiFileInput::m_LinkSizer
protected

Definition at line 147 of file multi_file_input.hpp.

Referenced by Create(), Init(), x_SetMultiMode(), and x_SetSingleMode().

◆ m_SaveFilenames

vector<wxString> CMultiFileInput::m_SaveFilenames
protected

Definition at line 141 of file multi_file_input.hpp.

Referenced by x_SetMultiMode(), and x_SetSingleMode().

◆ m_ScrollWnd

wxScrolledWindow* CMultiFileInput::m_ScrollWnd
protected

◆ m_SingleMode

bool CMultiFileInput::m_SingleMode
protected

◆ m_Wildcard

wxString CMultiFileInput::m_Wildcard
protected

Definition at line 139 of file multi_file_input.hpp.

Referenced by GetWildcard(), SetDlgAttrs(), SetWildcard(), and x_OnAddFilenames().


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