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

Search Toolkit Book for CDbxrefPanel

#include "dbxref_panel.hpp"
(Private to src/gui/widgets/edit.)

+ Inheritance diagram for CDbxrefPanel:
+ Collaboration diagram for CDbxrefPanel:

Public Types

enum  { ID_CDBXREFPANEL = 10091 , ID_SCROLLEDWINDOW2 = 10092 }
 Control identifiers. More...
 

Public Member Functions

 CDbxrefPanel ()
 Constructors. More...
 
 CDbxrefPanel (wxWindow *parent, CSerialObject &object, wxWindowID id=ID_CDBXREFPANEL, const wxString &caption=_("DbxrefPanel"), 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_CDBXREFPANEL, const wxString &caption=_("DbxrefPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CDbxrefPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
void PopulateDbxrefs (objects::CSeq_feat &seq_feat)
 
void PopulateDbxrefs (objects::COrg_ref &org)
 
void AddLastDbxref (wxWindow *link)
 
void DeleteTaxonRef ()
 
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 ()
 Should we show tooltips? More...
 

Public Attributes

wxScrolledWindow * m_ScrolledWindow
 
wxBoxSizer * m_Sizer
 

Private Member Functions

void x_UpdateXrefs ()
 
wxWindow * x_AddRow (CRef< objects::CDbtag > tag)
 

Private Attributes

CSerialObjectm_Object
 
vector< CRef< objects::CDbtag > > m_Xrefs
 
int m_NumRows
 
int m_TotalHeight
 
int m_TotalWidth
 
int m_ScrollRate
 
int m_MaxRowsDisplayed
 

Detailed Description

CDbxrefPanel class declaration

Definition at line 81 of file dbxref_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CDBXREFPANEL 
ID_SCROLLEDWINDOW2 

Definition at line 133 of file dbxref_panel.hpp.

Constructor & Destructor Documentation

◆ CDbxrefPanel() [1/2]

CDbxrefPanel::CDbxrefPanel ( )

Constructors.

CDbxrefPanel type definition

CDbxrefPanel event table definition

CDbxrefPanel constructors

Definition at line 68 of file dbxref_panel.cpp.

References Init().

◆ CDbxrefPanel() [2/2]

CDbxrefPanel::CDbxrefPanel ( wxWindow *  parent,
CSerialObject object,
wxWindowID  id = ID_CDBXREFPANEL,
const wxString &  caption = _("DbxrefPanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CDbxrefPanel()

CDbxrefPanel::~CDbxrefPanel ( )

Destructor.

CDbxrefPanel destructor

Definition at line 137 of file dbxref_panel.cpp.

Member Function Documentation

◆ AddLastDbxref()

void CDbxrefPanel::AddLastDbxref ( wxWindow *  link)

◆ Create()

bool CDbxrefPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CDBXREFPANEL,
const wxString &  caption = _("DbxrefPanel"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CDbxrefPanel creator

Definition at line 116 of file dbxref_panel.cpp.

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

Referenced by CDbxrefPanel().

◆ CreateControls()

void CDbxrefPanel::CreateControls ( )

Creates the controls and sizers.

Control creation for CDbxrefPanel

Definition at line 161 of file dbxref_panel.cpp.

References _, ID_SCROLLEDWINDOW2, m_ScrolledWindow, and m_Sizer.

Referenced by Create().

◆ DeleteTaxonRef()

void CDbxrefPanel::DeleteTaxonRef ( )

◆ GetBitmapResource()

wxBitmap CDbxrefPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 374 of file dbxref_panel.cpp.

◆ GetIconResource()

wxIcon CDbxrefPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 387 of file dbxref_panel.cpp.

◆ Init()

void CDbxrefPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 148 of file dbxref_panel.cpp.

References m_ScrolledWindow, m_Sizer, and NULL.

Referenced by CDbxrefPanel().

◆ PopulateDbxrefs() [1/2]

void CDbxrefPanel::PopulateDbxrefs ( objects::COrg_ref &  org)

◆ PopulateDbxrefs() [2/2]

void CDbxrefPanel::PopulateDbxrefs ( objects::CSeq_feat &  seq_feat)

◆ ShowToolTips()

bool CDbxrefPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 365 of file dbxref_panel.cpp.

◆ TransferDataFromWindow()

bool CDbxrefPanel::TransferDataFromWindow ( )
virtual

Definition at line 246 of file dbxref_panel.cpp.

References CSingleDbxref_SubPanel::GetDbtag(), m_Sizer, and m_Xrefs.

Referenced by AddLastDbxref().

◆ TransferDataToWindow()

bool CDbxrefPanel::TransferDataToWindow ( )
virtual

◆ x_AddRow()

wxWindow * CDbxrefPanel::x_AddRow ( CRef< objects::CDbtag >  tag)
private

◆ x_UpdateXrefs()

void CDbxrefPanel::x_UpdateXrefs ( )
private

Member Data Documentation

◆ m_MaxRowsDisplayed

int CDbxrefPanel::m_MaxRowsDisplayed
private

Definition at line 148 of file dbxref_panel.hpp.

◆ m_NumRows

int CDbxrefPanel::m_NumRows
private

Definition at line 144 of file dbxref_panel.hpp.

Referenced by DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().

◆ m_Object

CSerialObject* CDbxrefPanel::m_Object
private

Definition at line 140 of file dbxref_panel.hpp.

Referenced by x_UpdateXrefs().

◆ m_ScrolledWindow

wxScrolledWindow* CDbxrefPanel::m_ScrolledWindow

◆ m_ScrollRate

int CDbxrefPanel::m_ScrollRate
private

Definition at line 147 of file dbxref_panel.hpp.

Referenced by AddLastDbxref(), TransferDataToWindow(), and x_AddRow().

◆ m_Sizer

wxBoxSizer* CDbxrefPanel::m_Sizer

◆ m_TotalHeight

int CDbxrefPanel::m_TotalHeight
private

Definition at line 145 of file dbxref_panel.hpp.

Referenced by AddLastDbxref(), DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().

◆ m_TotalWidth

int CDbxrefPanel::m_TotalWidth
private

Definition at line 146 of file dbxref_panel.hpp.

Referenced by AddLastDbxref(), DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().

◆ m_Xrefs

vector< CRef< objects::CDbtag > > CDbxrefPanel::m_Xrefs
private

The documentation for this class was generated from the following files:
Modified on Sat May 25 14:18:27 2024 by modify_doxy.py rev. 669887