NCBI C++ ToolKit
|
Search Toolkit Book for CTableDelimitersPanel
#include "table_delimeters_panel.hpp"
(Private to src/gui/widgets/loaders
.)
Public Types | |
enum | { ID_CTABLEDELIMITERSPANEL = 10072 , ID_TABDELIMCHECK = 10074 , ID_SEMICOLONDELIMCHECK = 10075 , ID_COMMADELIMCHECK = 10076 , ID_SPACEDELIMCHECK = 10077 , ID_OTHERDELIMCHECK = 10078 , ID_TABLEDELIMITERTEXTCTRL = 10079 , ID_ADJACENTDELIMITERSCHECK = 10073 , ID_RADIOBOX = 10080 , ID_PANEL3 = 10082 , ID_CTABLEIMPORTLISTCTRL2 = 10071 } |
Control identifiers. More... | |
Public Member Functions | |
CTableDelimitersPanel () | |
CTableDelimitersPanel (wxWindow *parent, wxWindowID id=ID_CTABLEDELIMITERSPANEL, const wxString &caption=_("Set Table Delimiters"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CTABLEDELIMITERSPANEL, const wxString &caption=_("Set Table Delimiters"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
~CTableDelimitersPanel () | |
void | Init () |
void | CreateControls () |
virtual bool | Show (bool show=true) |
Override Show() to allow initialization each time window is displayed. More... | |
void | SetMainTitle (const wxString &title) |
void | SetImportDataSource (CRef< CTableImportDataSource > ds) |
bool | IsInputValid () |
void | UpdateDelimiters () |
Called after any options that may update the partioning of the table into columns are updated. More... | |
void | SetRegistryPath (const string &path) |
void | LoadSettings () |
void | SaveSettings () const |
void | OnTabDelimCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TABDELIMCHECK More... | |
void | OnSemiColonDelimCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_SEMICOLONDELIMCHECK More... | |
void | OnCommaDelimCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_COMMADELIMCHECK More... | |
void | OnSpaceDelimCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_SPACEDELIMCHECK More... | |
void | OnOtherDelimCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_OTHERDELIMCHECK More... | |
void | OnTableDelimiterTextCtrlTextUpdated (wxCommandEvent &event) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TABLEDELIMITERTEXTCTRL More... | |
void | OnAdjacentDelimitersCheckClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ADJACENTDELIMITERSCHECK More... | |
void | OnRadioBoxSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_RADIOBOX More... | |
void | OnCtableImportListctrlColDragging (wxListEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
wxCheckBox * | m_TabDelimCheck |
wxCheckBox * | m_SemicolonDelimCheck |
wxCheckBox * | m_CommaDelimCheck |
wxCheckBox * | m_SpaceDelimCheck |
wxCheckBox * | m_OtherDelimCheck |
wxTextCtrl * | m_DelimTextCtrl |
wxCheckBox * | m_MergeAdjacentDelimiters |
wxRadioBox * | m_TextQualifier |
wxPanel * | m_ListCtrlPanel |
CTableImportListCtrl * | m_DelimiterListCtrl |
Protected Attributes | |
string | m_RegPath |
bool | m_DelimsInitialized |
CRef< CTableImportDataSource > | m_ImportedTableData |
CTableDelimitersPanel class declaration
Definition at line 74 of file table_delimeters_panel.hpp.
anonymous enum |
Control identifiers.
Definition at line 161 of file table_delimeters_panel.hpp.
CTableDelimitersPanel::CTableDelimitersPanel | ( | ) |
Definition at line 75 of file table_delimeters_panel.cpp.
References Init().
CTableDelimitersPanel::CTableDelimitersPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CTABLEDELIMITERSPANEL , |
||
const wxString & | caption = _("Set Table Delimiters") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file table_delimeters_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CTableDelimitersPanel::~CTableDelimitersPanel | ( | ) |
Definition at line 102 of file table_delimeters_panel.cpp.
bool CTableDelimitersPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CTABLEDELIMITERSPANEL , |
||
const wxString & | caption = _("Set Table Delimiters") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 86 of file table_delimeters_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CTableDelimitersPanel().
void CTableDelimitersPanel::CreateControls | ( | ) |
Definition at line 126 of file table_delimeters_panel.cpp.
References _, ID_ADJACENTDELIMITERSCHECK, ID_COMMADELIMCHECK, ID_CTABLEIMPORTLISTCTRL2, ID_OTHERDELIMCHECK, ID_PANEL3, ID_RADIOBOX, ID_SEMICOLONDELIMCHECK, ID_SPACEDELIMCHECK, ID_TABDELIMCHECK, ID_TABLEDELIMITERTEXTCTRL, m_CommaDelimCheck, m_DelimiterListCtrl, m_DelimTextCtrl, m_ListCtrlPanel, m_MergeAdjacentDelimiters, m_OtherDelimCheck, m_SemicolonDelimCheck, m_SpaceDelimCheck, m_TabDelimCheck, m_TextQualifier, ShowToolTips(), wxID_ANY, and wxT.
Referenced by Create().
wxBitmap CTableDelimitersPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 370 of file table_delimeters_panel.cpp.
wxIcon CTableDelimitersPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 378 of file table_delimeters_panel.cpp.
void CTableDelimitersPanel::Init | ( | void | ) |
Definition at line 108 of file table_delimeters_panel.cpp.
References m_CommaDelimCheck, m_DelimiterListCtrl, m_DelimsInitialized, m_DelimTextCtrl, m_ListCtrlPanel, m_MergeAdjacentDelimiters, m_OtherDelimCheck, m_SemicolonDelimCheck, m_SpaceDelimCheck, m_TabDelimCheck, m_TextQualifier, and NULL.
Referenced by CTableDelimitersPanel().
bool CTableDelimitersPanel::IsInputValid | ( | ) |
Definition at line 275 of file table_delimeters_panel.cpp.
Referenced by CTableImportWizard::CDelimitersPage::CanLeavePage().
void CTableDelimitersPanel::LoadSettings | ( | ) |
Definition at line 357 of file table_delimeters_panel.cpp.
Referenced by CTableImportWizard::x_GetDelimitersPanel().
void CTableDelimitersPanel::OnAdjacentDelimitersCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_ADJACENTDELIMITERSCHECK
Definition at line 417 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnCommaDelimCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_COMMADELIMCHECK
Definition at line 397 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnCtableImportListctrlColDragging | ( | wxListEvent & | event | ) |
Definition at line 427 of file table_delimeters_panel.cpp.
References m_DelimiterListCtrl.
void CTableDelimitersPanel::OnOtherDelimCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_OTHERDELIMCHECK
Definition at line 407 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnRadioBoxSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_RADIOBOX
Definition at line 422 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnSemiColonDelimCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_SEMICOLONDELIMCHECK
Definition at line 392 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnSpaceDelimCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_SPACEDELIMCHECK
Definition at line 402 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnTabDelimCheckClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TABDELIMCHECK
Definition at line 387 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::OnTableDelimiterTextCtrlTextUpdated | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TABLEDELIMITERTEXTCTRL
Definition at line 412 of file table_delimeters_panel.cpp.
References UpdateDelimiters().
void CTableDelimitersPanel::SaveSettings | ( | ) | const |
Definition at line 362 of file table_delimeters_panel.cpp.
Referenced by CTableImportWizard::CDelimitersPage::CanLeavePage().
|
inline |
Definition at line 96 of file table_delimeters_panel.hpp.
References m_ImportedTableData.
Referenced by CTableImportWizard::x_GetDelimitersPanel().
void CTableDelimitersPanel::SetMainTitle | ( | const wxString & | title | ) |
Definition at line 271 of file table_delimeters_panel.cpp.
Definition at line 351 of file table_delimeters_panel.cpp.
References m_RegPath.
Referenced by CTableImportWizard::x_GetDelimitersPanel().
Override Show() to allow initialization each time window is displayed.
Definition at line 213 of file table_delimeters_panel.cpp.
References CTableImportListCtrl::eMultiColumn, CTableImportDataSource::GetDelimiterRules(), CTableImportDataSource::GetDelimiters(), CTableDelimiterRules::GetMergeDelimiters(), CTableDelimiterRules::GetQuoteChar(), i, CRef< C, Locker >::IsNull(), m_CommaDelimCheck, m_DelimiterListCtrl, m_DelimsInitialized, m_DelimTextCtrl, m_ImportedTableData, m_MergeAdjacentDelimiters, m_OtherDelimCheck, m_SemicolonDelimCheck, m_SpaceDelimCheck, m_TabDelimCheck, m_TextQualifier, CTableImportListCtrl::SetDataSource(), CTableImportListCtrl::SetViewType(), ncbi::grid::netcache::search::fields::size, ToWxString(), and wxT.
|
static |
Definition at line 366 of file table_delimeters_panel.cpp.
Referenced by CreateControls().
void CTableDelimitersPanel::UpdateDelimiters | ( | ) |
Called after any options that may update the partioning of the table into columns are updated.
Definition at line 280 of file table_delimeters_panel.cpp.
References ERR_POST, CTableImportDataSource::GetDelimiterRules(), CTableDelimiterRules::GetMergeDelimiters(), CTableDelimiterRules::GetQuoteChar(), Info(), CRef< C, Locker >::IsNull(), CTableDelimiterRules::LogDelims(), m_CommaDelimCheck, m_DelimiterListCtrl, m_DelimsInitialized, m_DelimTextCtrl, m_ImportedTableData, m_MergeAdjacentDelimiters, m_OtherDelimCheck, m_SemicolonDelimCheck, m_SpaceDelimCheck, m_TabDelimCheck, m_TextQualifier, CTableDelimiterRules::MatchingDelimiters(), CTableImportDataSource::RecomputeFields(), CTableImportListCtrl::SetDataSource(), CTableDelimiterRules::SetDelimiters(), CTableDelimiterRules::SetMergeDelimiters(), CTableDelimiterRules::SetQuoteChar(), and ToStdString().
Referenced by OnAdjacentDelimitersCheckClick(), OnCommaDelimCheckClick(), OnOtherDelimCheckClick(), OnRadioBoxSelected(), OnSemiColonDelimCheckClick(), OnSpaceDelimCheckClick(), OnTabDelimCheckClick(), and OnTableDelimiterTextCtrlTextUpdated().
wxCheckBox* CTableDelimitersPanel::m_CommaDelimCheck |
Definition at line 152 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
CTableImportListCtrl* CTableDelimitersPanel::m_DelimiterListCtrl |
Definition at line 159 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), OnCtableImportListctrlColDragging(), Show(), and UpdateDelimiters().
|
protected |
Definition at line 179 of file table_delimeters_panel.hpp.
Referenced by Init(), Show(), and UpdateDelimiters().
wxTextCtrl* CTableDelimitersPanel::m_DelimTextCtrl |
Definition at line 155 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
|
protected |
Definition at line 180 of file table_delimeters_panel.hpp.
Referenced by SetImportDataSource(), Show(), and UpdateDelimiters().
wxPanel* CTableDelimitersPanel::m_ListCtrlPanel |
Definition at line 158 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), and Init().
wxCheckBox* CTableDelimitersPanel::m_MergeAdjacentDelimiters |
Definition at line 156 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
wxCheckBox* CTableDelimitersPanel::m_OtherDelimCheck |
Definition at line 154 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
|
protected |
Definition at line 176 of file table_delimeters_panel.hpp.
Referenced by SetRegistryPath().
wxCheckBox* CTableDelimitersPanel::m_SemicolonDelimCheck |
Definition at line 151 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
wxCheckBox* CTableDelimitersPanel::m_SpaceDelimCheck |
Definition at line 153 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
wxCheckBox* CTableDelimitersPanel::m_TabDelimCheck |
Definition at line 150 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().
wxRadioBox* CTableDelimitersPanel::m_TextQualifier |
Definition at line 157 of file table_delimeters_panel.hpp.
Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().