46 #include <wx/bitmap.h>
48 #include <wx/choice.h>
49 #include <wx/textctrl.h>
50 #include <wx/stattext.h>
104 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
105 wxPanel::Create( parent,
id, pos,
size, style );
110 GetSizer()->SetSizeHints(
this);
154 m_KeyCtrl =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Static text"), wxDefaultPosition, wxSize(160, -1), 0 );
165 key =
"mobile_element_type";
180 vector<string> choices;
181 choices.push_back(
"insertion sequence");
182 choices.push_back(
"retrotransposon");
183 choices.push_back(
"non-LTR retrotransposon");
184 choices.push_back(
"transposon");
185 choices.push_back(
"integron");
186 choices.push_back(
"other");
187 choices.push_back(
"SINE");
188 choices.push_back(
"MITE");
189 choices.push_back(
"LINE");
192 vector<string> choices;
193 choices.push_back(
"satellite");
194 choices.push_back(
"microsatellite");
195 choices.push_back(
"minisatellite");
206 vector<string> choices;
209 choices.push_back(*it);
234 if (!wxPanel::TransferDataToWindow())
252 if (!wxPanel::TransferDataFromWindow())
void SetControlledList(vector< string > choices)
@Gb_qual.hpp User-defined methods of the data storage class.
static const TLegalRecombinationClassSet & GetSetOfLegalRecombinationClassValues(void)
static bool IsParseable(const string &val)
static const vector< string > & GetRegulatoryClassList()
CSingleGbQualSubPanel()
Constructors.
void Init()
Initialises member variables.
void SetGbQual(CRef< objects::CGb_qual > &qual)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual bool TransferDataToWindow()
virtual bool TransferDataFromWindow()
CFormattedQualPanel * m_ValueCtrl
void CreateControls()
Creates the controls and sizers.
CRef< objects::CGb_qual > GetGbQual()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_SINGLEGBQUALSUBPANEL, const wxString &caption=_("SingleGbQual SubPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
~CSingleGbQualSubPanel()
Destructor.
CRef< objects::CGb_qual > m_Qual
void SetControlledList(vector< string > choices)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
static bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
wxString ToWxString(const string &s)