28 #ifndef _PKG_SEQUENCE_EDITFIELD_CONSTRAINT_PANEL_H_
29 #define _PKG_SEQUENCE_EDITFIELD_CONSTRAINT_PANEL_H_
45 #include <wx/choice.h>
62 #define SYMBOL_CFIELDCONSTRAINTPANEL_STYLE wxTAB_TRAVERSAL
63 #define SYMBOL_CFIELDCONSTRAINTPANEL_TITLE _("FieldConstraintPanel")
64 #define SYMBOL_CFIELDCONSTRAINTPANEL_IDNAME ID_CFIELDCONSTRAINTPANEL
65 #define SYMBOL_CFIELDCONSTRAINTPANEL_SIZE wxDefaultSize
66 #define SYMBOL_CFIELDCONSTRAINTPANEL_POSITION wxDefaultPosition
89 bool Create( wxWindow* parent,
133 virtual string GetFieldName(
const bool subfield =
false);
135 virtual vector<string>
GetChoices(
bool& allow_other);
const vector< CFieldNamePanel::EFieldType > GetFieldTypes()
CFieldNamePanel::EFieldType GetFieldType()
CFieldNamePanel::EFieldType GetFieldType()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CFieldChoicePanel * GetFieldChoicePanel(void)
@ ID_CFIELDCONSTRAINTPANEL_CONSTRAINT
@ ID_CFIELDCONSTRAINTPANEL_FIELD
@ ID_CFIELDCONSTRAINTPANEL
virtual vector< string > GetChoices(bool &allow_other)
bool Create(wxWindow *parent, wxWindowID id=ID_CFIELDCONSTRAINTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
~CFieldConstraintPanel()
Destructor.
const vector< CFieldNamePanel::EFieldType > GetFieldTypes()
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
CFieldChoicePanel * m_FieldType
CRef< edit::CStringConstraint > GetStringConstraint()
virtual void UpdateEditor()
CFieldConstraintPanel()
Constructors.
CStringConstraintPanel * m_StringConstraintPanel
virtual string GetFieldName(const bool subfield=false)
Returns the name of the field as selected in the panel.
static bool ShowToolTips()
Should we show tooltips?
bool SetFieldType(CFieldNamePanel::EFieldType field_type)
virtual bool SetFieldName(const string &field)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define SYMBOL_CFIELDCONSTRAINTPANEL_STYLE
#define SYMBOL_CFIELDCONSTRAINTPANEL_POSITION
#define SYMBOL_CFIELDCONSTRAINTPANEL_IDNAME
#define SYMBOL_CFIELDCONSTRAINTPANEL_SIZE
#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