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

Search Toolkit Book for CTableDelimitersPanel

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

+ Inheritance diagram for CTableDelimitersPanel:
+ Collaboration diagram for CTableDelimitersPanel:

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
 
CTableImportListCtrlm_DelimiterListCtrl
 

Protected Attributes

string m_RegPath
 
bool m_DelimsInitialized
 
CRef< CTableImportDataSourcem_ImportedTableData
 

Detailed Description

CTableDelimitersPanel class declaration

Definition at line 74 of file table_delimeters_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CTABLEDELIMITERSPANEL 
ID_TABDELIMCHECK 
ID_SEMICOLONDELIMCHECK 
ID_COMMADELIMCHECK 
ID_SPACEDELIMCHECK 
ID_OTHERDELIMCHECK 
ID_TABLEDELIMITERTEXTCTRL 
ID_ADJACENTDELIMITERSCHECK 
ID_RADIOBOX 
ID_PANEL3 
ID_CTABLEIMPORTLISTCTRL2 

Definition at line 161 of file table_delimeters_panel.hpp.

Constructor & Destructor Documentation

◆ CTableDelimitersPanel() [1/2]

CTableDelimitersPanel::CTableDelimitersPanel ( )

Definition at line 75 of file table_delimeters_panel.cpp.

References Init().

◆ CTableDelimitersPanel() [2/2]

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 
)

◆ ~CTableDelimitersPanel()

CTableDelimitersPanel::~CTableDelimitersPanel ( )

Definition at line 102 of file table_delimeters_panel.cpp.

Member Function Documentation

◆ Create()

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 
)

◆ CreateControls()

void CTableDelimitersPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CTableDelimitersPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 370 of file table_delimeters_panel.cpp.

◆ GetIconResource()

wxIcon CTableDelimitersPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 378 of file table_delimeters_panel.cpp.

◆ Init()

void CTableDelimitersPanel::Init ( void  )

◆ IsInputValid()

bool CTableDelimitersPanel::IsInputValid ( )

◆ LoadSettings()

void CTableDelimitersPanel::LoadSettings ( )

◆ OnAdjacentDelimitersCheckClick()

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

◆ OnCommaDelimCheckClick()

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

◆ OnCtableImportListctrlColDragging()

void CTableDelimitersPanel::OnCtableImportListctrlColDragging ( wxListEvent &  event)

Definition at line 427 of file table_delimeters_panel.cpp.

References m_DelimiterListCtrl.

◆ OnOtherDelimCheckClick()

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

◆ OnRadioBoxSelected()

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

◆ OnSemiColonDelimCheckClick()

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

◆ OnSpaceDelimCheckClick()

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

◆ OnTabDelimCheckClick()

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

◆ OnTableDelimiterTextCtrlTextUpdated()

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

◆ SaveSettings()

void CTableDelimitersPanel::SaveSettings ( ) const

◆ SetImportDataSource()

void CTableDelimitersPanel::SetImportDataSource ( CRef< CTableImportDataSource ds)
inline

Definition at line 96 of file table_delimeters_panel.hpp.

References m_ImportedTableData.

Referenced by CTableImportWizard::x_GetDelimitersPanel().

◆ SetMainTitle()

void CTableDelimitersPanel::SetMainTitle ( const wxString &  title)

Definition at line 271 of file table_delimeters_panel.cpp.

◆ SetRegistryPath()

void CTableDelimitersPanel::SetRegistryPath ( const string path)

Definition at line 351 of file table_delimeters_panel.cpp.

References m_RegPath.

Referenced by CTableImportWizard::x_GetDelimitersPanel().

◆ Show()

bool CTableDelimitersPanel::Show ( bool  show = true)
virtual

◆ ShowToolTips()

bool CTableDelimitersPanel::ShowToolTips ( )
static

Definition at line 366 of file table_delimeters_panel.cpp.

Referenced by CreateControls().

◆ UpdateDelimiters()

void CTableDelimitersPanel::UpdateDelimiters ( )

Member Data Documentation

◆ m_CommaDelimCheck

wxCheckBox* CTableDelimitersPanel::m_CommaDelimCheck

Definition at line 152 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_DelimiterListCtrl

CTableImportListCtrl* CTableDelimitersPanel::m_DelimiterListCtrl

◆ m_DelimsInitialized

bool CTableDelimitersPanel::m_DelimsInitialized
protected

Definition at line 179 of file table_delimeters_panel.hpp.

Referenced by Init(), Show(), and UpdateDelimiters().

◆ m_DelimTextCtrl

wxTextCtrl* CTableDelimitersPanel::m_DelimTextCtrl

Definition at line 155 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_ImportedTableData

CRef<CTableImportDataSource> CTableDelimitersPanel::m_ImportedTableData
protected

Definition at line 180 of file table_delimeters_panel.hpp.

Referenced by SetImportDataSource(), Show(), and UpdateDelimiters().

◆ m_ListCtrlPanel

wxPanel* CTableDelimitersPanel::m_ListCtrlPanel

Definition at line 158 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_MergeAdjacentDelimiters

wxCheckBox* CTableDelimitersPanel::m_MergeAdjacentDelimiters

Definition at line 156 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_OtherDelimCheck

wxCheckBox* CTableDelimitersPanel::m_OtherDelimCheck

Definition at line 154 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_RegPath

string CTableDelimitersPanel::m_RegPath
protected

Definition at line 176 of file table_delimeters_panel.hpp.

Referenced by SetRegistryPath().

◆ m_SemicolonDelimCheck

wxCheckBox* CTableDelimitersPanel::m_SemicolonDelimCheck

Definition at line 151 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_SpaceDelimCheck

wxCheckBox* CTableDelimitersPanel::m_SpaceDelimCheck

Definition at line 153 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_TabDelimCheck

wxCheckBox* CTableDelimitersPanel::m_TabDelimCheck

Definition at line 150 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().

◆ m_TextQualifier

wxRadioBox* CTableDelimitersPanel::m_TextQualifier

Definition at line 157 of file table_delimeters_panel.hpp.

Referenced by CreateControls(), Init(), Show(), and UpdateDelimiters().


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