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

Search Toolkit Book for CRegionPanel

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

+ Inheritance diagram for CRegionPanel:
+ Collaboration diagram for CRegionPanel:

Public Member Functions

 CRegionPanel ()
 Constructors. More...
 
 CRegionPanel (wxWindow *parent, string region, wxWindowID id=10017, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10017, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CRegionPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
virtual bool TransferDataFromWindow ()
 
string GetRegion ()
 
bool GetConvertToMiscFeat (void)
 

Static Public Member Functions

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

Private Attributes

string m_Region
 
wxTextCtrl * m_TextCtrl
 
wxCheckBox * m_ConvertToMiscFeat
 

Detailed Description

Definition at line 68 of file region_panel.hpp.

Constructor & Destructor Documentation

◆ CRegionPanel() [1/2]

CRegionPanel::CRegionPanel ( )

Constructors.

Definition at line 64 of file region_panel.cpp.

References Init().

◆ CRegionPanel() [2/2]

CRegionPanel::CRegionPanel ( wxWindow *  parent,
string  region,
wxWindowID  id = 10017,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 69 of file region_panel.cpp.

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

◆ ~CRegionPanel()

CRegionPanel::~CRegionPanel ( )

Destructor.

Definition at line 100 of file region_panel.cpp.

Member Function Documentation

◆ Create()

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

Creation.

CRNAPanel creator

Definition at line 82 of file region_panel.cpp.

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

Referenced by CRegionPanel().

◆ CreateControls()

void CRegionPanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 115 of file region_panel.cpp.

References _, ID_REGIONPANEL_TEXTCTRL, m_ConvertToMiscFeat, m_Region, m_TextCtrl, ToWxString(), and wxID_ANY.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CRegionPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 154 of file region_panel.cpp.

◆ GetConvertToMiscFeat()

bool CRegionPanel::GetConvertToMiscFeat ( void  )
inline

Definition at line 104 of file region_panel.hpp.

References m_ConvertToMiscFeat.

Referenced by CEditObjectSeq_feat::GetEditCommand().

◆ GetIconResource()

wxIcon CRegionPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 165 of file region_panel.cpp.

◆ GetRegion()

string CRegionPanel::GetRegion ( void  )

Definition at line 172 of file region_panel.cpp.

References m_Region.

Referenced by CEditObjectSeq_feat::GetEditCommand().

◆ Init()

void CRegionPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 109 of file region_panel.cpp.

References m_ConvertToMiscFeat, and NULL.

Referenced by CRegionPanel().

◆ ShowToolTips()

bool CRegionPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 145 of file region_panel.cpp.

◆ TransferDataFromWindow()

bool CRegionPanel::TransferDataFromWindow ( )
virtual

Definition at line 131 of file region_panel.cpp.

References m_Region, m_TextCtrl, result, and ToStdString().

Member Data Documentation

◆ m_ConvertToMiscFeat

wxCheckBox* CRegionPanel::m_ConvertToMiscFeat
private

Definition at line 108 of file region_panel.hpp.

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

◆ m_Region

string CRegionPanel::m_Region
private

Definition at line 106 of file region_panel.hpp.

Referenced by CreateControls(), GetRegion(), and TransferDataFromWindow().

◆ m_TextCtrl

wxTextCtrl* CRegionPanel::m_TextCtrl
private

Definition at line 107 of file region_panel.hpp.

Referenced by CreateControls(), and TransferDataFromWindow().


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