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

Search Toolkit Book for CLatLonTool

#include <gui/packages/pkg_sequence_edit/latlon_tool.hpp>

+ Inheritance diagram for CLatLonTool:
+ Collaboration diagram for CLatLonTool:

Public Member Functions

 CLatLonTool ()
 Constructors. More...
 
 CLatLonTool (wxWindow *parent, objects::CSeq_entry_Handle seh, wxWindowID id=wxID_ANY, const wxString &caption=_("LatLon Tool"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("LatLon Tool"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CLatLonTool ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
CRef< objects::CSeq_table > GetValuesTableFromSeqEntry ()
 
CRef< CCmdCompositeGetCommandFromValuesTable (CRef< objects::CSeq_table >)
 
CRef< CCmdCompositeGetCommand ()
 
CRef< objects::CSeq_table > GetChoices (CRef< objects::CSeq_table > values_table)
 
int GetCollapsible ()
 
string GetErrorMessage ()
 
bool IsReadOnlyColumn (string column_name)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void OnClickOk (wxCommandEvent &event)
 
void OnClickCancel (wxCommandEvent &event)
 
- Public Member Functions inherited from CReportEditingDialog
virtual bool Show (bool show=1)
 Report opening events in dialogs used in the editing package. More...
 

Static Public Member Functions

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

Private Member Functions

void x_FindBioSource (objects::CSeq_entry_Handle tse, CCmdComposite *composite=NULL)
 
void x_ApplyToDescriptors (const objects::CSeq_entry &se, CCmdComposite *composite)
 
bool x_ApplyToBioSource (objects::CBioSource &biosource)
 
void x_GatherLatLon (const objects::CBioSource &biosource)
 

Private Attributes

wxGrid * m_Grid
 
vector< stringm_LatLon
 
map< string, stringm_Current_to_Suggested
 
CSeq_entry_Handle m_TopSeqEntry
 
bool m_Found
 
CSeqTableGridPanelm_GridPanel
 
CStringConstraintSelectm_StringConstraintPanel
 
bool m_Modified
 

Detailed Description

Definition at line 48 of file latlon_tool.hpp.

Constructor & Destructor Documentation

◆ CLatLonTool() [1/2]

CLatLonTool::CLatLonTool ( )

Constructors.

Definition at line 62 of file latlon_tool.cpp.

References Init().

◆ CLatLonTool() [2/2]

CLatLonTool::CLatLonTool ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("LatLon Tool"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CLatLonTool()

CLatLonTool::~CLatLonTool ( )

Destructor.

Definition at line 101 of file latlon_tool.cpp.

Member Function Documentation

◆ Create()

bool CLatLonTool::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("LatLon Tool"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

Definition at line 86 of file latlon_tool.cpp.

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

◆ CreateControls()

void CLatLonTool::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CLatLonTool::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 314 of file latlon_tool.cpp.

◆ GetChoices()

CRef<objects::CSeq_table> CLatLonTool::GetChoices ( CRef< objects::CSeq_table >  values_table)
inline

Definition at line 74 of file latlon_tool.hpp.

Referenced by CreateControls().

◆ GetCollapsible()

int CLatLonTool::GetCollapsible ( )
inline

Definition at line 75 of file latlon_tool.hpp.

Referenced by CreateControls().

◆ GetCommand()

CRef< CCmdComposite > CLatLonTool::GetCommand ( void  )

◆ GetCommandFromValuesTable()

CRef< CCmdComposite > CLatLonTool::GetCommandFromValuesTable ( CRef< objects::CSeq_table >  )

◆ GetErrorMessage()

string CLatLonTool::GetErrorMessage ( )

Definition at line 295 of file latlon_tool.cpp.

Referenced by CSequenceEditingEventHandler::LatLonTool().

◆ GetIconResource()

wxIcon CLatLonTool::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 327 of file latlon_tool.cpp.

◆ GetValuesTableFromSeqEntry()

CRef< CSeq_table > CLatLonTool::GetValuesTableFromSeqEntry ( )

◆ Init()

void CLatLonTool::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 110 of file latlon_tool.cpp.

References m_Grid, and NULL.

◆ IsReadOnlyColumn()

bool CLatLonTool::IsReadOnlyColumn ( string  column_name)
inline

Definition at line 78 of file latlon_tool.hpp.

Referenced by CreateControls().

◆ OnClickCancel()

void CLatLonTool::OnClickCancel ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1

Definition at line 352 of file latlon_tool.cpp.

References _, CSeqTableGridPanel::GetModified(), and m_GridPanel.

◆ OnClickOk()

void CLatLonTool::OnClickOk ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON

Definition at line 340 of file latlon_tool.cpp.

◆ ShowToolTips()

bool CLatLonTool::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 305 of file latlon_tool.cpp.

◆ x_ApplyToBioSource()

bool CLatLonTool::x_ApplyToBioSource ( objects::CBioSource &  biosource)
private

◆ x_ApplyToDescriptors()

void CLatLonTool::x_ApplyToDescriptors ( const objects::CSeq_entry &  se,
CCmdComposite composite 
)
private

◆ x_FindBioSource()

void CLatLonTool::x_FindBioSource ( objects::CSeq_entry_Handle  tse,
CCmdComposite composite = NULL 
)
private

◆ x_GatherLatLon()

void CLatLonTool::x_GatherLatLon ( const objects::CBioSource &  biosource)
private

Member Data Documentation

◆ m_Current_to_Suggested

map<string,string> CLatLonTool::m_Current_to_Suggested
private

Definition at line 97 of file latlon_tool.hpp.

Referenced by GetCommandFromValuesTable(), and x_ApplyToBioSource().

◆ m_Found

bool CLatLonTool::m_Found
private

Definition at line 99 of file latlon_tool.hpp.

Referenced by GetCommandFromValuesTable(), x_ApplyToBioSource(), and x_GatherLatLon().

◆ m_Grid

wxGrid* CLatLonTool::m_Grid
private

Definition at line 95 of file latlon_tool.hpp.

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

◆ m_GridPanel

CSeqTableGridPanel* CLatLonTool::m_GridPanel
private

Definition at line 100 of file latlon_tool.hpp.

Referenced by CreateControls(), GetCommand(), and OnClickCancel().

◆ m_LatLon

vector<string> CLatLonTool::m_LatLon
private

Definition at line 96 of file latlon_tool.hpp.

Referenced by CreateControls(), GetValuesTableFromSeqEntry(), and x_GatherLatLon().

◆ m_Modified

bool CLatLonTool::m_Modified
private

Definition at line 102 of file latlon_tool.hpp.

Referenced by GetCommandFromValuesTable().

◆ m_StringConstraintPanel

CStringConstraintSelect* CLatLonTool::m_StringConstraintPanel
private

Definition at line 101 of file latlon_tool.hpp.

Referenced by CreateControls().

◆ m_TopSeqEntry

CSeq_entry_Handle CLatLonTool::m_TopSeqEntry
private

Definition at line 98 of file latlon_tool.hpp.

Referenced by GetCommandFromValuesTable(), and x_ApplyToDescriptors().


The documentation for this class was generated from the following files:
Modified on Tue May 21 10:55:54 2024 by modify_doxy.py rev. 669887