NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CGenTextCtrl Class Reference

Search Toolkit Book for CGenTextCtrl

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

+ Inheritance diagram for CGenTextCtrl:
+ Collaboration diagram for CGenTextCtrl:

Public Member Functions

 CGenTextCtrl ()
 
 CGenTextCtrl (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTextCtrlNameStr)
 
virtual ~CGenTextCtrl ()
 
void StorePosition ()
 
void RestorePosition ()
 
void OnKillFocus (wxFocusEvent &event)
 
void OnSetFocus (wxFocusEvent &event)
 
void OnSetChildFocus (wxChildFocusEvent &event)
 
void OnActivate (wxActivateEvent &event)
 
void OnScroll (wxScrollWinEvent &event)
 
void OnScrollWinTop (wxScrollWinEvent &event)
 
void OnIdle (wxIdleEvent &)
 
void ShowPosition (long pos)
 

Protected Member Functions

 wxDECLARE_NO_COPY_CLASS (CGenTextCtrl)
 

Private Attributes

long m_scroll_pos
 
bool m_safe_to_store
 

Detailed Description

Definition at line 58 of file generic_panel.hpp.

Constructor & Destructor Documentation

◆ CGenTextCtrl() [1/2]

CGenTextCtrl::CGenTextCtrl ( )
inline

Definition at line 61 of file generic_panel.hpp.

◆ CGenTextCtrl() [2/2]

CGenTextCtrl::CGenTextCtrl ( wxWindow *  parent,
wxWindowID  id,
const wxString &  value = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxValidator &  validator = wxDefaultValidator,
const wxString &  name = wxTextCtrlNameStr 
)
inline

Definition at line 62 of file generic_panel.hpp.

◆ ~CGenTextCtrl()

virtual CGenTextCtrl::~CGenTextCtrl ( )
inlinevirtual

Definition at line 63 of file generic_panel.hpp.

Member Function Documentation

◆ OnActivate()

void CGenTextCtrl::OnActivate ( wxActivateEvent &  event)

Definition at line 443 of file generic_panel.cpp.

References m_safe_to_store, and RestorePosition().

◆ OnIdle()

void CGenTextCtrl::OnIdle ( wxIdleEvent &  )

Definition at line 463 of file generic_panel.cpp.

References StorePosition().

◆ OnKillFocus()

void CGenTextCtrl::OnKillFocus ( wxFocusEvent &  event)

Definition at line 423 of file generic_panel.cpp.

◆ OnScroll()

void CGenTextCtrl::OnScroll ( wxScrollWinEvent &  event)

Definition at line 457 of file generic_panel.cpp.

References StorePosition().

◆ OnScrollWinTop()

void CGenTextCtrl::OnScrollWinTop ( wxScrollWinEvent &  event)

Definition at line 474 of file generic_panel.cpp.

◆ OnSetChildFocus()

void CGenTextCtrl::OnSetChildFocus ( wxChildFocusEvent &  event)

Definition at line 436 of file generic_panel.cpp.

References m_safe_to_store, and RestorePosition().

◆ OnSetFocus()

void CGenTextCtrl::OnSetFocus ( wxFocusEvent &  event)

Definition at line 429 of file generic_panel.cpp.

References m_safe_to_store, and RestorePosition().

◆ RestorePosition()

void CGenTextCtrl::RestorePosition ( )

Definition at line 479 of file generic_panel.cpp.

References m_safe_to_store, and m_scroll_pos.

Referenced by OnActivate(), OnSetChildFocus(), OnSetFocus(), and CGenericPanel::SetText().

◆ ShowPosition()

void CGenTextCtrl::ShowPosition ( long  pos)

◆ StorePosition()

void CGenTextCtrl::StorePosition ( )

Definition at line 485 of file generic_panel.cpp.

References m_safe_to_store, and m_scroll_pos.

Referenced by OnIdle(), OnScroll(), CGenericPanel::SetText(), and ShowPosition().

◆ wxDECLARE_NO_COPY_CLASS()

CGenTextCtrl::wxDECLARE_NO_COPY_CLASS ( CGenTextCtrl  )
protected

Member Data Documentation

◆ m_safe_to_store

bool CGenTextCtrl::m_safe_to_store
private

◆ m_scroll_pos

long CGenTextCtrl::m_scroll_pos
private

Definition at line 78 of file generic_panel.hpp.

Referenced by RestorePosition(), and StorePosition().


The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:01:08 2024 by modify_doxy.py rev. 669887