1 #ifndef GUI_WIDGETS_EDIT___FEATURE_FIELD_NAME_PANEL__HPP
2 #define GUI_WIDGETS_EDIT___FEATURE_FIELD_NAME_PANEL__HPP
44 #include <wx/listbox.h>
45 #include <wx/stattext.h>
62 #define SYMBOL_CFEATUREFIELDNAMEPANEL_STYLE wxTAB_TRAVERSAL
63 #define SYMBOL_CFEATUREFIELDNAMEPANEL_TITLE _("FeatureFieldNamePanel")
64 #define SYMBOL_CFEATUREFIELDNAMEPANEL_IDNAME ID_CFEATUREFIELDNAMEPANEL
65 #define SYMBOL_CFEATUREFIELDNAMEPANEL_SIZE wxDefaultSize
66 #define SYMBOL_CFEATUREFIELDNAMEPANEL_POSITION wxDefaultPosition
89 bool Create( wxWindow* parent,
102 void CreateControls();
107 void OnQualifierListboxSelected( wxCommandEvent& event );
110 void PopulateFeatureListbox(
void);
116 wxBitmap GetBitmapResource(
const wxString& name );
119 wxIcon GetIconResource(
const wxString& name );
123 static bool ShowToolTips();
131 string GetFeatureType();
132 bool SetFeatureType(
const string& feature_type);
133 string GetQualifierName();
134 virtual string GetFieldName(
const bool subfield =
false);
138 static string s_GetMacroFieldName(
const string& feature,
const string& qualifier,
const string& target,
const string& selected_field =
kEmptyStr);
141 ID_CFEATUREFIELDNAMEPANEL = 6110,
142 ID_FEATQUALIFIER_LISTBOX
145 virtual vector<string>
GetChoices(
bool& allow_other);
146 void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh, vector<const objects::CFeatListItem *> *featlist =
nullptr);
150 static wxArrayString s_FillFeatQualList(objects::CSeqFeatData::ESubtype subtype);
163 #define CUpdateFeatListEventHandler(func) \
164 (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(CUpdateFeatListEventFunction, &func)
166 #define EVT_UPDATE_FEATURE_LIST(id, fn) \
167 wx__DECLARE_EVT1(wxEVT_COMMAND_UPDATE_FEATLIST, id, CUpdateFeatListEventHandler(fn))
const objects::CGenetic_code_table & m_code_table
CFeatureFieldNamePanel * m_Sibling
wxStaticText * m_FeatureTypeLabel
wxListBox * m_QualifierName
CFeatureTypePanel * m_FeatureType
CFeatureTypePanel * GetFeatureTypePanel(void)
virtual void UpdateEditor()=0
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
virtual void SetShowLegalOnly(bool show)
virtual string GetMacroFieldName(const string &target, const string &selected_field=kEmptyStr)
virtual vector< string > GetChoices(bool &allow_other)
virtual bool SetFieldName(const string &field)=0
virtual void ClearValues(void)
Include a standard set of the NCBI C++ Toolkit most basic headers.
void(wxEvtHandler::* CUpdateFeatListEventFunction)(wxCommandEvent &)
#define SYMBOL_CFEATUREFIELDNAMEPANEL_SIZE
#define SYMBOL_CFEATUREFIELDNAMEPANEL_IDNAME
#define SYMBOL_CFEATUREFIELDNAMEPANEL_POSITION
DECLARE_EXPORTED_EVENT_TYPE(, wxEVT_COMMAND_UPDATE_FEATLIST, wxCommandEvent)
#define SYMBOL_CFEATUREFIELDNAMEPANEL_STYLE
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_EDIT_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size