86 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
87 CFormattedQualPanel::Create( parent,
id, pos,
size, style );
92 GetSizer()->SetSizeHints(
this);
135 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
136 itemCFormattedQualPanel1->SetSizer(itemBoxSizer2);
138 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
139 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
141 wxArrayString m_ControlledListCtrlStrings;
146 itemBoxSizer3->Add(
m_FreeTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
159 if (pos == string::npos) {
167 string part1 =
val.substr(0, pos);
168 string part2 =
val.substr(pos + 1);
190 string val = part1 +
":" + part2;
201 if (height !=
NULL) {
219 ITERATE (vector<string>, it, choices) {
267 wxTextCtrl* item = (wxTextCtrl*)event.GetEventObject();
virtual void NotifyParentOfChange()
void OnTextctrl28TextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL28
void Init()
Initialises member variables.
virtual void GetDimensions(int *width, int *height)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxTextCtrl * m_FreeTextCtrl
void SetControlledList(vector< string > choices)
void CreateControls()
Creates the controls and sizers.
virtual void SetValue(string val)
virtual string GetValue()
wxChoice * m_ControlledListCtrl
bool Create(wxWindow *parent, wxWindowID id=ID_CTWOPARTQUALPANEL, const wxString &caption=_("TwoPartQualPanel"), 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?
~CTwoPartQualPanel()
Destructor.
CTwoPartQualPanel()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
#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 SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)