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

Search Toolkit Book for CCompoundConstraintPanel

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

+ Inheritance diagram for CCompoundConstraintPanel:
+ Collaboration diagram for CCompoundConstraintPanel:

Public Member Functions

 CCompoundConstraintPanel ()
 
 CCompoundConstraintPanel (wxWindow *parent, objects::CSeq_entry_Handle seh, 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)
 
 ~CCompoundConstraintPanel ()
 
void Init ()
 
void CreateControls ()
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
void SetSelection (int page)
 
void ClearValues (void)
 
virtual CRef< CEditingActionConstraintGetConstraint (const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
 
void OnAddConstraint (wxCommandEvent &event)
 
void OnRemoveConstraint (wxCommandEvent &event)
 
void OnEditConstraint (wxCommandEvent &event)
 
void AddConstraint (pair< string, SFieldTypeAndMatcher > item, int id)
 
- Public Member Functions inherited from IConstraintPanelBase
virtual ~IConstraintPanelBase ()
 

Static Public Member Functions

static bool ShowToolTips ()
 

Private Attributes

wxCheckListBox * m_CheckListBox
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
map< string, SFieldTypeAndMatcherm_label_to_constraint
 
int m_page
 

Detailed Description

Definition at line 172 of file constraint_panel.hpp.

Constructor & Destructor Documentation

◆ CCompoundConstraintPanel() [1/2]

CCompoundConstraintPanel::CCompoundConstraintPanel ( )

CCompoundConstraintPanel event table definition

CCompoundConstraintPanel constructors

Definition at line 546 of file constraint_panel.cpp.

References Init().

◆ CCompoundConstraintPanel() [2/2]

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

◆ ~CCompoundConstraintPanel()

CCompoundConstraintPanel::~CCompoundConstraintPanel ( )

CCompoundConstraintPanel destructor

Definition at line 583 of file constraint_panel.cpp.

Member Function Documentation

◆ AddConstraint()

void CCompoundConstraintPanel::AddConstraint ( pair< string, SFieldTypeAndMatcher item,
int  id 
)

◆ ClearValues()

void CCompoundConstraintPanel::ClearValues ( void  )

◆ Create()

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

◆ CreateControls()

void CCompoundConstraintPanel::CreateControls ( )

Control creation for CCompoundConstraintPanel

Definition at line 607 of file constraint_panel.cpp.

References _, ID_CONSTRAINT_ADD, ID_CONSTRAINT_LIST, ID_CONSTRAINT_REMOVE, and m_CheckListBox.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CCompoundConstraintPanel::GetBitmapResource ( const wxString &  name)

Get bitmap resources

Definition at line 648 of file constraint_panel.cpp.

◆ GetConstraint()

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

◆ GetIconResource()

wxIcon CCompoundConstraintPanel::GetIconResource ( const wxString &  name)

Get icon resources

Definition at line 661 of file constraint_panel.cpp.

◆ Init()

void CCompoundConstraintPanel::Init ( void  )

Member initialisation

Definition at line 594 of file constraint_panel.cpp.

References m_CheckListBox, m_page, and NULL.

Referenced by CCompoundConstraintPanel().

◆ OnAddConstraint()

void CCompoundConstraintPanel::OnAddConstraint ( wxCommandEvent &  event)

Definition at line 709 of file constraint_panel.cpp.

References m_page, m_TopSeqEntry, and CAddConstraint::SetSelection().

◆ OnEditConstraint()

void CCompoundConstraintPanel::OnEditConstraint ( wxCommandEvent &  event)

◆ OnRemoveConstraint()

void CCompoundConstraintPanel::OnRemoveConstraint ( wxCommandEvent &  event)

◆ SetSelection()

void CCompoundConstraintPanel::SetSelection ( int  page)

Definition at line 670 of file constraint_panel.cpp.

References m_page.

Referenced by CAdvancedConstraintPanel::SetSelection().

◆ ShowToolTips()

bool CCompoundConstraintPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 639 of file constraint_panel.cpp.

Member Data Documentation

◆ m_CheckListBox

wxCheckListBox* CCompoundConstraintPanel::m_CheckListBox
private

◆ m_label_to_constraint

map<string, SFieldTypeAndMatcher> CCompoundConstraintPanel::m_label_to_constraint
private

◆ m_page

int CCompoundConstraintPanel::m_page
private

Definition at line 199 of file constraint_panel.hpp.

Referenced by Init(), OnAddConstraint(), and SetSelection().

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CCompoundConstraintPanel::m_TopSeqEntry
private

Definition at line 197 of file constraint_panel.hpp.

Referenced by OnAddConstraint(), and OnEditConstraint().


The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:05:32 2024 by modify_doxy.py rev. 669887