NCBI C++ ToolKit
|
Search Toolkit Book for CMultiFileInput
#include <gui/widgets/wx/multi_file_input.hpp>
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 |
Definition at line 55 of file multi_file_input.hpp.
Enumerator | |
---|---|
eDeleteAllFilesLink | |
eLoadBtn | |
eFirstControl |
Definition at line 60 of file multi_file_input.hpp.
CMultiFileInput::CMultiFileInput | ( | ) |
Definition at line 91 of file multi_file_input.cpp.
References Init().
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.
|
virtual |
Definition at line 110 of file multi_file_input.cpp.
void CMultiFileInput::AddFilenames | ( | const vector< wxString > & | filenames | ) |
Definition at line 402 of file multi_file_input.cpp.
References i, input(), int, m_Inputs, m_ScrollWnd, m_SingleMode, x_AddFilenameRow(), and x_SendFileTxtChangedEvt().
Referenced by SetFilenames(), x_OnAddFilenames(), and x_SetMultiMode().
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") |
||
) |
Definition at line 128 of file multi_file_input.cpp.
References eDeleteAllFilesLink, m_FileSizer, m_LinkSizer, m_ScrollWnd, ncbi::grid::netcache::search::fields::size, wxID_ANY, wxT, and x_AddFilenameRow().
Referenced by CMultiFileInput().
wxString CMultiFileInput::GetDefaultDir | ( | ) | const |
Definition at line 190 of file multi_file_input.cpp.
References m_DefaultDir.
void CMultiFileInput::GetFilenames | ( | vector< wxString > & | filenames | ) | const |
Definition at line 280 of file multi_file_input.cpp.
References file, filenames, i, input(), and m_Inputs.
Referenced by CFileLoadOptionPanel::GetFilenames(), CFileLoadPanel::GetFilenames(), CProjectLoadOptionPanel::OnFinish(), and x_SetSingleMode().
wxString CMultiFileInput::GetWildcard | ( | ) | const |
Definition at line 202 of file multi_file_input.cpp.
References m_Wildcard.
void CMultiFileInput::Init | ( | void | ) |
Definition at line 115 of file multi_file_input.cpp.
References eFirstControl, m_DlgParent, m_DlgTitle, m_FileSizer, m_LastChildID, m_LinkSizer, m_ScrollWnd, NULL, and wxT.
Referenced by CMultiFileInput().
void CMultiFileInput::OnBrowseBtn | ( | wxCommandEvent & | event | ) |
Definition at line 461 of file multi_file_input.cpp.
References eLoadBtn, GetId(), i, m_Inputs, and x_OnAddFilenames().
void CMultiFileInput::OnLink | ( | wxHyperlinkEvent & | event | ) |
Definition at line 299 of file multi_file_input.cpp.
References eDeleteAllFilesLink, x_DeleteAllFilenames(), and x_DeleteFilename().
void CMultiFileInput::SetDefaultDir | ( | const wxString & | dir | ) |
Definition at line 184 of file multi_file_input.cpp.
References m_DefaultDir.
Referenced by CFileLoadPanel::SetWorkDir().
void CMultiFileInput::SetDlgAttrs | ( | const wxString & | title, |
const wxString & | dir, | ||
const wxString & | wildcard, | ||
wxWindow * | parent | ||
) |
Definition at line 214 of file multi_file_input.cpp.
References m_DefaultDir, m_DlgParent, m_DlgTitle, and m_Wildcard.
Referenced by CProjectLoadOptionPanel::CreateControls().
void CMultiFileInput::SetDlgParent | ( | wxWindow * | parent | ) |
Definition at line 208 of file multi_file_input.cpp.
References m_DlgParent.
void CMultiFileInput::SetDlgTitle | ( | const wxString & | title | ) |
Definition at line 178 of file multi_file_input.cpp.
References m_DlgTitle.
void CMultiFileInput::SetFilenames | ( | const vector< wxString > & | filenames | ) |
Definition at line 291 of file multi_file_input.cpp.
References AddFilenames(), filenames, and x_DeleteAllFilenames().
Referenced by CFileLoadOptionPanel::SetFilenames(), and CFileLoadPanel::SetFilenames().
void CMultiFileInput::SetSingleMode | ( | bool | single | ) |
Definition at line 223 of file multi_file_input.cpp.
References x_SetMultiMode(), and x_SetSingleMode().
Referenced by CFileLoadOptionPanel::x_SetCurrentFormat(), and CFileLoadPanel::x_SetCurrentFormat().
void CMultiFileInput::SetWildcard | ( | const wxString & | wildcard | ) |
Definition at line 196 of file multi_file_input.cpp.
References m_Wildcard.
Referenced by CFileLoadOptionPanel::x_SetCurrentFormat(), and CFileLoadPanel::x_SetCurrentFormat().
|
protected |
Definition at line 311 of file multi_file_input.cpp.
References input(), m_FileSizer, m_Inputs, m_LastChildID, m_ScrollWnd, wxT, and x_SendFileTxtChangedEvt().
Referenced by AddFilenames(), Create(), and x_DeleteAllFilenames().
|
protected |
|
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().
|
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().
|
protected |
Definition at line 377 of file multi_file_input.cpp.
References _ASSERT, AddFilenames(), filenames, i, m_DefaultDir, m_DlgParent, m_DlgTitle, m_SingleMode, m_Wildcard, n, and NULL.
Referenced by OnBrowseBtn().
|
protected |
Definition at line 481 of file multi_file_input.cpp.
References input(), and CAdvancedFileInput::s_InputTxtChangedEvt.
Referenced by AddFilenames(), x_AddFilenameRow(), x_DeleteFilename(), and x_SetSingleMode().
|
protected |
Definition at line 259 of file multi_file_input.cpp.
References AddFilenames(), eDeleteAllFilesLink, ctll::empty(), m_Inputs, m_LinkSizer, m_SaveFilenames, and m_SingleMode.
Referenced by SetSingleMode().
|
protected |
Definition at line 233 of file multi_file_input.cpp.
References eDeleteAllFilesLink, GetFilenames(), m_Inputs, m_LinkSizer, m_SaveFilenames, m_SingleMode, x_DeleteAllFilenames(), and x_SendFileTxtChangedEvt().
Referenced by SetSingleMode().
|
protected |
Definition at line 138 of file multi_file_input.hpp.
Referenced by GetDefaultDir(), SetDefaultDir(), SetDlgAttrs(), and x_OnAddFilenames().
|
protected |
Definition at line 142 of file multi_file_input.hpp.
Referenced by Init(), SetDlgAttrs(), SetDlgParent(), and x_OnAddFilenames().
|
protected |
Definition at line 137 of file multi_file_input.hpp.
Referenced by Init(), SetDlgAttrs(), SetDlgTitle(), and x_OnAddFilenames().
|
protected |
Definition at line 146 of file multi_file_input.hpp.
Referenced by Create(), Init(), x_AddFilenameRow(), x_DeleteAllFilenames(), and x_DeleteFilename().
|
protected |
Definition at line 148 of file multi_file_input.hpp.
Referenced by AddFilenames(), GetFilenames(), OnBrowseBtn(), x_AddFilenameRow(), x_DeleteAllFilenames(), x_DeleteFilename(), x_SetMultiMode(), and x_SetSingleMode().
|
protected |
Definition at line 149 of file multi_file_input.hpp.
Referenced by Init(), and x_AddFilenameRow().
|
protected |
Definition at line 147 of file multi_file_input.hpp.
Referenced by Create(), Init(), x_SetMultiMode(), and x_SetSingleMode().
|
protected |
Definition at line 141 of file multi_file_input.hpp.
Referenced by x_SetMultiMode(), and x_SetSingleMode().
|
protected |
Definition at line 145 of file multi_file_input.hpp.
Referenced by AddFilenames(), Create(), Init(), x_AddFilenameRow(), x_DeleteAllFilenames(), and x_DeleteFilename().
|
protected |
Definition at line 140 of file multi_file_input.hpp.
Referenced by AddFilenames(), x_OnAddFilenames(), x_SetMultiMode(), and x_SetSingleMode().
|
protected |
Definition at line 139 of file multi_file_input.hpp.
Referenced by GetWildcard(), SetDlgAttrs(), SetWildcard(), and x_OnAddFilenames().