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

Search Toolkit Book for CConstraintPanel

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

+ Inheritance diagram for CConstraintPanel:
+ Collaboration diagram for CConstraintPanel:

Public Member Functions

 CConstraintPanel ()
 
 CConstraintPanel (wxWindow *parent, objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr, bool load_macro_fields=false, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxSIMPLE_BORDER)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
 ~CConstraintPanel ()
 
void Init ()
 
void CreateControls ()
 
void OnPageChanged (wxBookCtrlEvent &event)
 
void SetSelection (int page)
 
CFieldNamePanelGetFieldNamePanel (void)
 
CRef< edit::CStringConstraint > GetStringConstraint (void)
 
string GetMacroStringConstraint (const string &field_name)
 
CStringConstraintPanelGetStringConstraintPanel ()
 
string GetFieldType (void) const
 
bool SetFieldName (const string &field)
 
void ClearValues (void)
 
void ListPresentFeaturesFirst (objects::CSeq_entry_Handle seh)
 
virtual void UpdateEditor (void)
 
virtual CRef< CEditingActionConstraintGetConstraint (const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
- Public Member Functions inherited from CFieldNamePanelParent
virtual ~CFieldNamePanelParent ()
 
- Public Member Functions inherited from IConstraintPanelBase
virtual ~IConstraintPanelBase ()
 

Static Public Member Functions

static bool ShowToolTips ()
 

Private Attributes

wxChoicebook * m_Notebook
 
CStringConstraintPanelm_StringConstraintPanel
 
CFeatureFieldNamePanelm_feat_field_panel
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
vector< const objects::CFeatListItem * > * m_featlist
 
bool m_LoadMacroFields { false }
 

Detailed Description

Definition at line 77 of file constraint_panel.hpp.

Constructor & Destructor Documentation

◆ CConstraintPanel() [1/2]

CConstraintPanel::CConstraintPanel ( )

CConstraintPanel event table definition

CConstraintPanel constructors

Definition at line 80 of file constraint_panel.cpp.

References Init().

◆ CConstraintPanel() [2/2]

CConstraintPanel::CConstraintPanel ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
vector< const objects::CFeatListItem * > *  featlist = nullptr,
bool  load_macro_fields = false,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL|wxSIMPLE_BORDER 
)

Definition at line 85 of file constraint_panel.cpp.

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

◆ ~CConstraintPanel()

CConstraintPanel::~CConstraintPanel ( )
inline

Definition at line 99 of file constraint_panel.hpp.

Member Function Documentation

◆ ClearValues()

void CConstraintPanel::ClearValues ( void  )

◆ Create()

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

◆ CreateControls()

void CConstraintPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CConstraintPanel::GetBitmapResource ( const wxString &  name)

Get bitmap resources

Definition at line 272 of file constraint_panel.cpp.

◆ GetConstraint()

CRef< CEditingActionConstraint > CConstraintPanel::GetConstraint ( const string field,
CFieldNamePanel::EFieldType  field_type,
int  subtype,
const string ncRNA_class 
)
virtual

◆ GetFieldNamePanel()

CFieldNamePanel * CConstraintPanel::GetFieldNamePanel ( void  )

◆ GetFieldType()

string CConstraintPanel::GetFieldType ( void  ) const

◆ GetIconResource()

wxIcon CConstraintPanel::GetIconResource ( const wxString &  name)

Get icon resources

Definition at line 285 of file constraint_panel.cpp.

◆ GetMacroStringConstraint()

string CConstraintPanel::GetMacroStringConstraint ( const string field_name)

◆ GetStringConstraint()

CRef< edit::CStringConstraint > CConstraintPanel::GetStringConstraint ( void  )

◆ GetStringConstraintPanel()

CStringConstraintPanel* CConstraintPanel::GetStringConstraintPanel ( )
inline

Definition at line 112 of file constraint_panel.hpp.

References m_StringConstraintPanel.

Referenced by CConvertCdsToMiscFeat::CreateControls().

◆ Init()

void CConstraintPanel::Init ( void  )

Member initialisation

Definition at line 123 of file constraint_panel.cpp.

References m_feat_field_panel, m_Notebook, m_StringConstraintPanel, and NULL.

Referenced by CConstraintPanel().

◆ ListPresentFeaturesFirst()

void CConstraintPanel::ListPresentFeaturesFirst ( objects::CSeq_entry_Handle  seh)
inline

◆ OnPageChanged()

void CConstraintPanel::OnPageChanged ( wxBookCtrlEvent &  event)

Definition at line 334 of file constraint_panel.cpp.

References UpdateEditor().

◆ SetFieldName()

bool CConstraintPanel::SetFieldName ( const string field)

◆ SetSelection()

void CConstraintPanel::SetSelection ( int  page)

◆ ShowToolTips()

bool CConstraintPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 263 of file constraint_panel.cpp.

◆ UpdateEditor()

void CConstraintPanel::UpdateEditor ( void  )
virtual

Member Data Documentation

◆ m_feat_field_panel

CFeatureFieldNamePanel* CConstraintPanel::m_feat_field_panel
private

Definition at line 132 of file constraint_panel.hpp.

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

◆ m_featlist

vector<const objects::CFeatListItem *>* CConstraintPanel::m_featlist
private

Definition at line 134 of file constraint_panel.hpp.

Referenced by CreateControls().

◆ m_LoadMacroFields

bool CConstraintPanel::m_LoadMacroFields { false }
private

Definition at line 135 of file constraint_panel.hpp.

Referenced by CreateControls().

◆ m_Notebook

wxChoicebook* CConstraintPanel::m_Notebook
private

◆ m_StringConstraintPanel

CStringConstraintPanel* CConstraintPanel::m_StringConstraintPanel
private

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CConstraintPanel::m_TopSeqEntry
private

Definition at line 133 of file constraint_panel.hpp.

Referenced by CreateControls().


The documentation for this class was generated from the following files:
Modified on Tue Apr 23 07:39:00 2024 by modify_doxy.py rev. 669887