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

Search Toolkit Book for CSingleRefGeneTrackLocPanel

#include <gui/widgets/edit/single_ref_gene_track_loc_panel.hpp>

+ Inheritance diagram for CSingleRefGeneTrackLocPanel:
+ Collaboration diagram for CSingleRefGeneTrackLocPanel:

Public Types

enum  {
  ID_CSINGLEREFGENETRACKLOCPANEL = 10149 , ID_ACCESSION_TXT = 10150 , ID_GI_TXT = 10151 , ID_START_TXT = 10152 ,
  ID_STOP_TXT = 10153 , ID_COMMENT_TXT = 10154
}
 Control identifiers. More...
 

Public Member Functions

 CSingleRefGeneTrackLocPanel ()
 Constructors. More...
 
 CSingleRefGeneTrackLocPanel (wxWindow *parent, objects::CUser_field &field, wxWindowID id=ID_CSINGLEREFGENETRACKLOCPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CSINGLEREFGENETRACKLOCPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CSingleRefGeneTrackLocPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
CRef< objects::CUser_field > GetUser_field ()
 
void OnAccessionTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ACCESSION_TXT More...
 
void OnGiTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_GI_TXT More...
 
void OnStartTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_START_TXT More...
 
void OnStopTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_STOP_TXT More...
 
void OnCommentTxtTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_COMMENT_TXT More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
- Public Member Functions inherited from CSingleUserFieldPanel
virtual ~CSingleUserFieldPanel ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Public Attributes

wxTextCtrl * m_Accession
 
wxTextCtrl * m_GI
 
wxTextCtrl * m_Start
 
wxTextCtrl * m_Stop
 
wxTextCtrl * m_Comment
 

Private Member Functions

bool x_IsControlled (const string &field)
 

Private Attributes

CRef< objects::CUser_field > m_Field
 

Additional Inherited Members

- Protected Member Functions inherited from CSingleUserFieldPanel
void x_OnChange ()
 
- Protected Attributes inherited from CSingleUserFieldPanel
CRef< objects::CUser_field > m_Field
 

Detailed Description

CSingleRefGeneTrackLocPanel class declaration

Definition at line 78 of file single_ref_gene_track_loc_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CSINGLEREFGENETRACKLOCPANEL 
ID_ACCESSION_TXT 
ID_GI_TXT 
ID_START_TXT 
ID_STOP_TXT 
ID_COMMENT_TXT 

Definition at line 142 of file single_ref_gene_track_loc_panel.hpp.

Constructor & Destructor Documentation

◆ CSingleRefGeneTrackLocPanel() [1/2]

CSingleRefGeneTrackLocPanel::CSingleRefGeneTrackLocPanel ( )

Constructors.

CSingleRefGeneTrackLocPanel type definition

CSingleRefGeneTrackLocPanel event table definition

CSingleRefGeneTrackLocPanel constructors

Definition at line 78 of file single_ref_gene_track_loc_panel.cpp.

References Init().

◆ CSingleRefGeneTrackLocPanel() [2/2]

CSingleRefGeneTrackLocPanel::CSingleRefGeneTrackLocPanel ( wxWindow *  parent,
objects::CUser_field &  field,
wxWindowID  id = ID_CSINGLEREFGENETRACKLOCPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CSingleRefGeneTrackLocPanel()

CSingleRefGeneTrackLocPanel::~CSingleRefGeneTrackLocPanel ( )

Destructor.

CSingleRefGeneTrackLocPanel destructor

Definition at line 116 of file single_ref_gene_track_loc_panel.cpp.

Member Function Documentation

◆ Create()

bool CSingleRefGeneTrackLocPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CSINGLEREFGENETRACKLOCPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CSingleRefGeneTrackLocPanel::CreateControls ( )

Creates the controls and sizers.

Control creation for CSingleRefGeneTrackLocPanel

Definition at line 143 of file single_ref_gene_track_loc_panel.cpp.

References ID_ACCESSION_TXT, ID_COMMENT_TXT, ID_GI_TXT, ID_START_TXT, ID_STOP_TXT, m_Accession, m_Comment, m_GI, m_Start, and m_Stop.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CSingleRefGeneTrackLocPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 339 of file single_ref_gene_track_loc_panel.cpp.

◆ GetIconResource()

wxIcon CSingleRefGeneTrackLocPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 352 of file single_ref_gene_track_loc_panel.cpp.

◆ GetUser_field()

CRef< CUser_field > CSingleRefGeneTrackLocPanel::GetUser_field ( )
virtual

◆ Init()

void CSingleRefGeneTrackLocPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 127 of file single_ref_gene_track_loc_panel.cpp.

References m_Accession, m_Comment, m_GI, m_Start, m_Stop, and NULL.

◆ OnAccessionTxtTextUpdated()

void CSingleRefGeneTrackLocPanel::OnAccessionTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ACCESSION_TXT

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ACCESSION_TXT

Definition at line 366 of file single_ref_gene_track_loc_panel.cpp.

References NStr::IsBlank(), ToStdString(), and CSingleUserFieldPanel::x_OnChange().

◆ OnCommentTxtTextUpdated()

void CSingleRefGeneTrackLocPanel::OnCommentTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_COMMENT_TXT

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_COMMENT_TXT

Definition at line 422 of file single_ref_gene_track_loc_panel.cpp.

References NStr::IsBlank(), ToStdString(), and CSingleUserFieldPanel::x_OnChange().

◆ OnGiTxtTextUpdated()

void CSingleRefGeneTrackLocPanel::OnGiTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_GI_TXT

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_GI_TXT

Definition at line 380 of file single_ref_gene_track_loc_panel.cpp.

References NStr::IsBlank(), ToStdString(), and CSingleUserFieldPanel::x_OnChange().

◆ OnStartTxtTextUpdated()

void CSingleRefGeneTrackLocPanel::OnStartTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_START_TXT

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_START_TXT

Definition at line 394 of file single_ref_gene_track_loc_panel.cpp.

References NStr::IsBlank(), ToStdString(), and CSingleUserFieldPanel::x_OnChange().

◆ OnStopTxtTextUpdated()

void CSingleRefGeneTrackLocPanel::OnStopTxtTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_STOP_TXT

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_STOP_TXT

Definition at line 408 of file single_ref_gene_track_loc_panel.cpp.

References NStr::IsBlank(), ToStdString(), and CSingleUserFieldPanel::x_OnChange().

◆ ShowToolTips()

bool CSingleRefGeneTrackLocPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 330 of file single_ref_gene_track_loc_panel.cpp.

◆ TransferDataFromWindow()

bool CSingleRefGeneTrackLocPanel::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CSingleRefGeneTrackLocPanel::TransferDataToWindow ( )
virtual

◆ x_IsControlled()

bool CSingleRefGeneTrackLocPanel::x_IsControlled ( const string field)
private

Definition at line 233 of file single_ref_gene_track_loc_panel.cpp.

References NStr::EqualNocase().

Referenced by TransferDataFromWindow().

Member Data Documentation

◆ m_Accession

wxTextCtrl* CSingleRefGeneTrackLocPanel::m_Accession

◆ m_Comment

wxTextCtrl* CSingleRefGeneTrackLocPanel::m_Comment

◆ m_Field

CRef<objects::CUser_field> CSingleRefGeneTrackLocPanel::m_Field
private

◆ m_GI

wxTextCtrl* CSingleRefGeneTrackLocPanel::m_GI

◆ m_Start

wxTextCtrl* CSingleRefGeneTrackLocPanel::m_Start

◆ m_Stop

wxTextCtrl* CSingleRefGeneTrackLocPanel::m_Stop

The documentation for this class was generated from the following files:
Modified on Sat Jul 13 13:37:03 2024 by modify_doxy.py rev. 669887