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

Search Toolkit Book for CSeqTextPanel

#include <gui/widgets/seq_text/seq_text_panel.hpp>

+ Inheritance diagram for CSeqTextPanel:
+ Collaboration diagram for CSeqTextPanel:

Public Types

enum  {
  ID_CSEQTEXTPANEL = 10000 , ID_TEXTCTRL1 = 10001 , ID_BUTTON = 10002 , ID_BUTTON1 = 10003 ,
  ID_BUTTON2 = 10004 , ID_CHOICE1 = 10005 , ID_WINDOW = 10006
}
 Control identifiers. More...
 

Public Member Functions

 CSeqTextPanel ()
 Constructors. More...
 
 CSeqTextPanel (wxWindow *parent, wxWindowID id=ID_CSEQTEXTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CSEQTEXTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CSeqTextPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
bool InitObject (SConstScopedObject &object)
 
void CreateControls ()
 Creates the controls and sizers. More...
 
CSeqTextWidgetGetWidget () const
 
const CSeqTextDataSourceGetDataSource () const
 
void OnFindBwdClick (wxCommandEvent &event)
 @begin CSeqTextPanel event handler declarations More...
 
void OnFindFwdClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1 More...
 
void OnStopClick (wxCommandEvent &event)
 
void OnFeatureTypeSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE1 More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
virtual void STWH_ChangeConfig ()
 
virtual void STWH_ReportMouseOverPos (TSeqPos pos)
 
CJobAdapter::IJobCallback interface implementation
virtual void OnJobResult (CObject *result, CJobAdapter &adapter)
 
virtual void OnJobFailed (const string &, CJobAdapter &adapter)
 
- Public Member Functions inherited from ISeqTextWidgetHost
virtual ~ISeqTextWidgetHost ()
 
- Public Member Functions inherited from CJobAdapter::IJobCallback
virtual ~IJobCallback ()
 

Static Public Member Functions

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

Public Attributes

wxButton * m_BwdButton
 
wxButton * m_FwdButton
 
wxButton * m_StopButton
 
wxStaticText * m_MousePos
 
CSeqTextWidgetm_SeqTextWidget
 

Private Member Functions

void x_StartSearch (bool forward)
 
void x_RestoreButtonStates ()
 

Private Attributes

CRef< CSeqTextDataSourcem_DataSource
 
CRef< CJobAdapterm_JobAdapter
 

Detailed Description

CSeqTextPanel class declaration

Definition at line 68 of file seq_text_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CSEQTEXTPANEL 
ID_TEXTCTRL1 
ID_BUTTON 
ID_BUTTON1 
ID_BUTTON2 
ID_CHOICE1 
ID_WINDOW 

Definition at line 144 of file seq_text_panel.hpp.

Constructor & Destructor Documentation

◆ CSeqTextPanel() [1/2]

CSeqTextPanel::CSeqTextPanel ( )

Constructors.

CSeqTextPanel type definition

CSeqTextPanel event table definition

CSeqTextPanel constructors

Definition at line 80 of file seq_text_panel.cpp.

References Init().

◆ CSeqTextPanel() [2/2]

CSeqTextPanel::CSeqTextPanel ( wxWindow *  parent,
wxWindowID  id = ID_CSEQTEXTPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 85 of file seq_text_panel.cpp.

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

◆ ~CSeqTextPanel()

CSeqTextPanel::~CSeqTextPanel ( )

Destructor.

CSeqTextPanel destructor

Definition at line 120 of file seq_text_panel.cpp.

References CJobAdapter::Cancel(), and m_JobAdapter.

Member Function Documentation

◆ Create()

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

Creation.

CSeqTextPanel creator

Definition at line 96 of file seq_text_panel.cpp.

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

Referenced by CSeqTextPanel().

◆ CreateControls()

void CSeqTextPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CSeqTextPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 242 of file seq_text_panel.cpp.

◆ GetDataSource()

const CSeqTextDataSource* CSeqTextPanel::GetDataSource ( void  ) const
inline

◆ GetIconResource()

wxIcon CSeqTextPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 255 of file seq_text_panel.cpp.

◆ GetWidget()

CSeqTextWidget* CSeqTextPanel::GetWidget ( ) const
inline

◆ Init()

void CSeqTextPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 135 of file seq_text_panel.cpp.

References m_BwdButton, m_FwdButton, m_MousePos, m_SeqTextWidget, m_StopButton, and NULL.

Referenced by CSeqTextPanel().

◆ InitObject()

bool CSeqTextPanel::InitObject ( SConstScopedObject object)

◆ OnFeatureTypeSelected()

void CSeqTextPanel::OnFeatureTypeSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE1

Definition at line 320 of file seq_text_panel.cpp.

References CSeqTextWidget::ChooseCaseFeature(), and m_SeqTextWidget.

◆ OnFindBwdClick()

void CSeqTextPanel::OnFindBwdClick ( wxCommandEvent &  event)

@begin CSeqTextPanel event handler declarations

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON

Definition at line 345 of file seq_text_panel.cpp.

References m_BwdButton, m_FwdButton, m_StopButton, and x_StartSearch().

◆ OnFindFwdClick()

void CSeqTextPanel::OnFindFwdClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1

Definition at line 353 of file seq_text_panel.cpp.

References m_BwdButton, m_FwdButton, m_StopButton, and x_StartSearch().

◆ OnJobFailed()

void CSeqTextPanel::OnJobFailed ( const string errMsg,
CJobAdapter adapter 
)
virtual

◆ OnJobResult()

void CSeqTextPanel::OnJobResult ( CObject result,
CJobAdapter adapter 
)
virtual

◆ OnStopClick()

void CSeqTextPanel::OnStopClick ( wxCommandEvent &  event)

◆ ShowToolTips()

bool CSeqTextPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 233 of file seq_text_panel.cpp.

◆ STWH_ChangeConfig()

virtual void CSeqTextPanel::STWH_ChangeConfig ( )
inlinevirtual

Implements ISeqTextWidgetHost.

Definition at line 156 of file seq_text_panel.hpp.

◆ STWH_ReportMouseOverPos()

void CSeqTextPanel::STWH_ReportMouseOverPos ( TSeqPos  pos)
virtual

Implements ISeqTextWidgetHost.

Definition at line 314 of file seq_text_panel.cpp.

References NStr::IntToString(), m_MousePos, and ToWxString().

◆ x_RestoreButtonStates()

void CSeqTextPanel::x_RestoreButtonStates ( )
private

Definition at line 368 of file seq_text_panel.cpp.

References m_BwdButton, m_FwdButton, and m_StopButton.

Referenced by OnJobFailed(), OnJobResult(), OnStopClick(), and x_StartSearch().

◆ x_StartSearch()

void CSeqTextPanel::x_StartSearch ( bool  forward)
private

Member Data Documentation

◆ m_BwdButton

wxButton* CSeqTextPanel::m_BwdButton

◆ m_DataSource

CRef<CSeqTextDataSource> CSeqTextPanel::m_DataSource
private

Definition at line 163 of file seq_text_panel.hpp.

Referenced by GetDataSource(), and InitObject().

◆ m_FwdButton

wxButton* CSeqTextPanel::m_FwdButton

◆ m_JobAdapter

CRef<CJobAdapter> CSeqTextPanel::m_JobAdapter
private

Definition at line 164 of file seq_text_panel.hpp.

Referenced by OnStopClick(), x_StartSearch(), and ~CSeqTextPanel().

◆ m_MousePos

wxStaticText* CSeqTextPanel::m_MousePos

Definition at line 141 of file seq_text_panel.hpp.

Referenced by CreateControls(), Init(), and STWH_ReportMouseOverPos().

◆ m_SeqTextWidget

CSeqTextWidget* CSeqTextPanel::m_SeqTextWidget

◆ m_StopButton

wxButton* CSeqTextPanel::m_StopButton

The documentation for this class was generated from the following files:
Modified on Fri Apr 12 17:19:57 2024 by modify_doxy.py rev. 669887