objects::CSeq_entry_Handle seh,
87vector<const objects::CFeatListItem *> *featlist,
88 boolload_macro_fields,
93: m_TopSeqEntry(seh), m_featlist(featlist), m_LoadMacroFields(load_macro_fields)
107wxPanel::Create( parent,
id, pos,
size, style );
112GetSizer()->SetSizeHints(
this);
142wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
143itemPanel1->SetSizer(itemBoxSizer2);
146itemBoxSizer2->Add(
m_Notebook, 0, wxALIGN_TOP|wxALL, 5);
160 m_Notebook->AddPage(panel4,
_(
"CDS-Gene-Prot-mRNA"));
173panel6->
SetMacroSelf(macro::CMacroBioData::sm_MolInfo);
182panel7->
SetMacroSelf(macro::CMacroBioData::sm_Pubdesc);
186 m_Notebook->AddPage(panel8,
_(
"Structured Comment"));
194panel9->
SetMacroSelf(macro::CMacroBioData::sm_DBLink);
217wxCommandEvent fieldTypeEvent(wxEVT_COMMAND_UPDATE_STRUCTCOMMENT_FIELD);
218fieldTypeEvent.SetEventObject(
this);
219GetEventHandler()->ProcessEvent(fieldTypeEvent);
226wxWindow *win =
m_Notebook->GetCurrentPage();
245 if(sel != wxNOT_FOUND)
247field_type =
m_Notebook->GetPageText(sel).ToStdString();
296 if(page != wxNOT_FOUND)
308wxWindow* win =
m_Notebook->GetCurrentPage();
310 if(panel && !field.empty())
322wxWindow* win =
m_Notebook->GetCurrentPage();
325 boolallow_other =
true;
326vector<string> choices = panel->
GetChoices(allow_other);
344 stringconst_ncRNA_class;
345 autoconst_subtype =
GetSubtype(field_name_panel, const_ncRNA_class);
349field, field_type, subtype, ncRNA_class,
385: m_TopSeqEntry(seh), m_featlist(featlist)
399wxPanel::Create( parent,
id, pos,
size, style );
404GetSizer()->SetSizeHints(
this);
446wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
447itemPanel1->SetSizer(itemBoxSizer2);
450itemBoxSizer2->Add(
m_Notebook, 1, wxGROW|wxALL, 0);
511wxWindow* win =
m_Notebook->GetCurrentPage();
515 returnpanel->
GetConstraint(field, field_type, subtype, ncRNA_class);
566wxPanel::Create( parent,
id, pos,
size, style );
571GetSizer()->SetSizeHints(
this);
612wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
613itemPanel1->SetSizer(itemBoxSizer2);
618wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
619itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
621wxButton* itemButton13 =
newwxButton( itemPanel1,
ID_CONSTRAINT_ADD,
_(
"Add Constraint"), wxDefaultPosition, wxDefaultSize, 0 );
622itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
624wxButton* itemButton14 =
newwxButton( itemPanel1,
ID_CONSTRAINT_REMOVE,
_(
"Clear Constraints"), wxDefaultPosition, wxDefaultSize, 0 );
625itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
686item.second.field_type,
688item.second.m_ncRNAClass,
689item.second.matcher);
692 if(item.second.enabled2)
699item.second.field_type2,
700item.second.subtype2,
701item.second.m_ncRNAClass2,
702item.second.matcher2);
720wxArrayInt checked_items;
722 if(checked_items.IsEmpty())
724 intanswer = wxMessageBox (
_(
"No items checked, remove all?"),
ToWxString(
"Warning"), wxYES_NO | wxICON_QUESTION);
736 for(
size_t i= 0;
i< checked_items.GetCount();
i++)
738 intj = checked_items.Item(
i);
744 for(
autorit=to_delete.rbegin(); rit != to_delete.rend(); ++rit)
770 const string&
label=
event.GetString().ToStdString();
771 int id=
event.GetInt();
void SetSelection(int page)
void SetConstraint(const SFieldTypeAndMatcher &constraint)
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
virtual bool SetFieldName(const string &field)
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)
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)
wxChoicebook * m_Notebook
bool SetFieldName(const string &field)
wxIcon GetIconResource(const wxString &name)
void OnPageChanged(wxBookCtrlEvent &event)
CRef< edit::CStringConstraint > GetStringConstraint(void)
static vector< string > GetFieldNames()
void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr)
void SetMacroFieldNames(const vector< string > &field_names)
void SetMacroSelf(const string &self)
virtual bool SetFieldName(const string &field)
void SetFieldNames(const vector< string > &field_names)
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
virtual vector< string > GetChoices(bool &allow_other)
virtual bool SetFieldName(const string &field)=0
static EFieldType GetFieldTypeFromName(const string &field_type_name)
virtual vector< string > GetMacroValues()
virtual void ClearValues(void)
static vector< string > GetStrings()
static vector< string > GetMacroFieldNames()
static vector< string > GetFieldNames()
static vector< string > GetMacroFieldNames()
static vector< string > GetMacroFieldNames(bool extended=false)
static vector< string > GetFieldNames(bool extended=false)
virtual bool SetFieldName(const string &field)
virtual bool SetFieldName(const string &field)
CRef< edit::CStringConstraint > GetStringConstraint()
void SetChoices(const vector< string > &choices, const vector< string > &values)
string GetMacroStringConstraint(const string &field_name)
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)=0
iterator_bool insert(const value_type &val)
iterator_bool insert(const value_type &val)
#define ID_CONSTRAINT_LIST
#define ID_CONSTRAINT_ADD
#define ID_CONSTRAINT_CHOICEBOOK
#define ID_CONSTRAINT_REMOVE
CRef< CEditingActionConstraint > CreateEditingActionConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class, const string &const_field, CFieldNamePanel::EFieldType const_field_type, int const_subtype, string &const_ncRNA_class, CRef< CConstraintMatcher >constraint)
int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)
const char * kDefinitionLineLabel
const char * kFieldTypeSeqId
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4