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

Search Toolkit Book for CMacroLocationConstraintPanel

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

+ Inheritance diagram for CMacroLocationConstraintPanel:
+ Collaboration diagram for CMacroLocationConstraintPanel:

Public Types

enum  { ID_LENGTHCONSTR = 10890 , ID_5DISTCONSTR = 10891 , ID_3DISTCONSTR = 10892 }
 

Public Member Functions

 CMacroLocationConstraintPanel ()
 Constructors. More...
 
 CMacroLocationConstraintPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
 ~CMacroLocationConstraintPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnLengthSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for wxID_ANY More...
 
void On5DistSelected (wxCommandEvent &event)
 
void On3DistSelected (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
virtual pair< string, stringGetMatcher (const pair< string, string > &target, size_t num)
 
virtual vector< CFuncWithArgsGetFuncWithArgs (const pair< string, string > &target, size_t num) const
 
virtual void SetMatcher (const vector< CFuncWithArgs > &func_info)
 
string GetLocationConstraint ()
 
string GetDescription () const
 
- Public Member Functions inherited from CMacroMatcherPanelBase
virtual ~CMacroMatcherPanelBase ()
 
virtual void SetFieldName (const string &field)
 
virtual void PopulateFeatureListbox (objects::CSeq_entry_Handle seh)
 
virtual void SetFieldNames (const vector< string > &field_names)
 
virtual void GetVars (vector< string > &vars, size_t num)
 
virtual string GetQualName (const pair< string, string > &target)
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 
- Static Public Member Functions inherited from CMacroMatcherPanelBase
static const EMMatcherPanelType s_GetMatcherPanels (const CFuncWithArgs &func_info)
 

Private Attributes

wxChoice * m_Strand
 
wxChoice * m_NucOrProt
 
wxChoice * m_5Partial
 
wxChoice * m_3Partial
 
wxChoice * m_LocType
 
wxChoice * m_LengthType
 
wxTextCtrl * m_Length
 
wxChoice * m_5DistType
 
wxTextCtrl * m_5Dist
 
wxChoice * m_3DistType
 
wxTextCtrl * m_3Dist
 

Detailed Description

CMacroLocationConstraintPanel class declaration

Definition at line 61 of file macro_loc_constraint_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_LENGTHCONSTR 
ID_5DISTCONSTR 
ID_3DISTCONSTR 

Definition at line 119 of file macro_loc_constraint_panel.hpp.

Constructor & Destructor Documentation

◆ CMacroLocationConstraintPanel() [1/2]

CMacroLocationConstraintPanel::CMacroLocationConstraintPanel ( )

Constructors.

Definition at line 75 of file macro_loc_constraint_panel.cpp.

References Init().

◆ CMacroLocationConstraintPanel() [2/2]

CMacroLocationConstraintPanel::CMacroLocationConstraintPanel ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CMacroLocationConstraintPanel()

CMacroLocationConstraintPanel::~CMacroLocationConstraintPanel ( )

Destructor.

Definition at line 107 of file macro_loc_constraint_panel.cpp.

Member Function Documentation

◆ Create()

bool CMacroLocationConstraintPanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CMacroLocationConstraintPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CMacroLocationConstraintPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 308 of file macro_loc_constraint_panel.cpp.

◆ GetDescription()

string CMacroLocationConstraintPanel::GetDescription ( void  ) const

◆ GetFuncWithArgs()

vector< CFuncWithArgs > CMacroLocationConstraintPanel::GetFuncWithArgs ( const pair< string, string > &  target,
size_t  num 
) const
virtual

◆ GetIconResource()

wxIcon CMacroLocationConstraintPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 321 of file macro_loc_constraint_panel.cpp.

◆ GetLocationConstraint()

string CMacroLocationConstraintPanel::GetLocationConstraint ( )

◆ GetMatcher()

pair< string, string > CMacroLocationConstraintPanel::GetMatcher ( const pair< string, string > &  target,
size_t  num 
)
virtual

Implements CMacroMatcherPanelBase.

Definition at line 368 of file macro_loc_constraint_panel.cpp.

References GetDescription(), and GetLocationConstraint().

◆ Init()

void CMacroLocationConstraintPanel::Init ( void  )

Initialises member variables.

Definition at line 118 of file macro_loc_constraint_panel.cpp.

References m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, m_Strand, and NULL.

Referenced by CMacroLocationConstraintPanel().

◆ On3DistSelected()

void CMacroLocationConstraintPanel::On3DistSelected ( wxCommandEvent &  event)

Definition at line 354 of file macro_loc_constraint_panel.cpp.

References m_3Dist, and m_3DistType.

◆ On5DistSelected()

void CMacroLocationConstraintPanel::On5DistSelected ( wxCommandEvent &  event)

Definition at line 342 of file macro_loc_constraint_panel.cpp.

References m_5Dist, and m_5DistType.

◆ OnLengthSelected()

void CMacroLocationConstraintPanel::OnLengthSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for wxID_ANY

Definition at line 330 of file macro_loc_constraint_panel.cpp.

References m_Length, and m_LengthType.

◆ SetMatcher()

void CMacroLocationConstraintPanel::SetMatcher ( const vector< CFuncWithArgs > &  func_info)
virtual

◆ ShowToolTips()

bool CMacroLocationConstraintPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 299 of file macro_loc_constraint_panel.cpp.

Member Data Documentation

◆ m_3Dist

wxTextCtrl* CMacroLocationConstraintPanel::m_3Dist
private

◆ m_3DistType

wxChoice* CMacroLocationConstraintPanel::m_3DistType
private

◆ m_3Partial

wxChoice* CMacroLocationConstraintPanel::m_3Partial
private

◆ m_5Dist

wxTextCtrl* CMacroLocationConstraintPanel::m_5Dist
private

◆ m_5DistType

wxChoice* CMacroLocationConstraintPanel::m_5DistType
private

◆ m_5Partial

wxChoice* CMacroLocationConstraintPanel::m_5Partial
private

◆ m_Length

wxTextCtrl* CMacroLocationConstraintPanel::m_Length
private

◆ m_LengthType

wxChoice* CMacroLocationConstraintPanel::m_LengthType
private

◆ m_LocType

wxChoice* CMacroLocationConstraintPanel::m_LocType
private

◆ m_NucOrProt

wxChoice* CMacroLocationConstraintPanel::m_NucOrProt
private

◆ m_Strand

wxChoice* CMacroLocationConstraintPanel::m_Strand
private

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