32 #ifndef CONSTRAINT_PANEL__HPP
33 #define CONSTRAINT_PANEL__HPP
37 #include <wx/listbook.h>
38 #include <wx/choicebk.h>
39 #include <wx/checklst.h>
63 #define ID_CONSTRAINT_CHOICEBOOK 14002
64 #define ID_CONSTRAINT_ADD 14003
65 #define ID_CONSTRAINT_REMOVE 14004
66 #define ID_CONSTRAINT_LIST 14005
85 objects::CSeq_entry_Handle seh,
86 vector<const objects::CFeatListItem *> *featlist =
nullptr,
87 bool load_macro_fields =
false,
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize&
size = wxDefaultSize,
91 long style = wxTAB_TRAVERSAL|wxSIMPLE_BORDER );
93 bool Create( wxWindow* parent,
95 const wxPoint& pos = wxDefaultPosition,
96 const wxSize&
size = wxDefaultSize,
97 long style = wxTAB_TRAVERSAL );
175 DECLARE_EVENT_TABLE()
179 CCompoundConstraintPanel( wxWindow* parent, objects::CSeq_entry_Handle seh, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
180 bool Create( wxWindow* parent, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
194 void AddConstraint(pair<string, SFieldTypeAndMatcher> item,
int id);
206 DECLARE_EVENT_TABLE()
210 CAdvancedConstraintPanel( wxWindow* parent, objects::CSeq_entry_Handle seh, vector<const objects::CFeatListItem *> *featlist =
nullptr,
211 wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
212 bool Create( wxWindow* parent, wxWindowID
id =
wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize&
size = wxDefaultSize,
long style = wxTAB_TRAVERSAL );
User-defined methods of the data storage class.
CConstraintPanel * m_BasicConstraintPanel
CCompoundConstraintPanel * m_CompoundConstraintPanel
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
vector< const objects::CFeatListItem * > * m_featlist
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
CAdvancedConstraintPanel()
CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
void SetSelection(int page)
~CAdvancedConstraintPanel()
wxBitmap GetBitmapResource(const wxString &name)
objects::CSeq_entry_Handle m_TopSeqEntry
wxBitmap GetBitmapResource(const wxString &name)
void OnRemoveConstraint(wxCommandEvent &event)
void AddConstraint(pair< string, SFieldTypeAndMatcher > item, int id)
void SetSelection(int page)
void OnAddConstraint(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
objects::CSeq_entry_Handle m_TopSeqEntry
CCompoundConstraintPanel()
void OnEditConstraint(wxCommandEvent &event)
static bool ShowToolTips()
~CCompoundConstraintPanel()
wxIcon GetIconResource(const wxString &name)
wxCheckListBox * m_CheckListBox
map< string, SFieldTypeAndMatcher > m_label_to_constraint
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
CFeatureFieldNamePanel * m_feat_field_panel
static bool ShowToolTips()
virtual void UpdateEditor(void)
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
CStringConstraintPanel * m_StringConstraintPanel
void SetSelection(int page)
vector< const objects::CFeatListItem * > * m_featlist
objects::CSeq_entry_Handle m_TopSeqEntry
string GetFieldType(void) const
CFieldNamePanel * GetFieldNamePanel(void)
wxBitmap GetBitmapResource(const wxString &name)
void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
string GetMacroStringConstraint(const string &field_name)
CStringConstraintPanel * GetStringConstraintPanel()
wxChoicebook * m_Notebook
bool SetFieldName(const string &field)
wxIcon GetIconResource(const wxString &name)
void OnPageChanged(wxBookCtrlEvent &event)
CRef< edit::CStringConstraint > GetStringConstraint(void)
void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr)
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)=0
virtual ~IConstraintPanelBase()
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
CRef< CConstraintMatcher > matcher
CFieldNamePanel::EFieldType field_type2
CRef< CConstraintMatcher > matcher2
CFieldNamePanel::EFieldType field_type
CRef< CString_constraint > string_constraint
CRef< objects::CLocation_constraint > location_constraint