CSrcModEditPanel::Create( parent,
id, pos,
size, style );
102GetSizer()->SetSizeHints(
this);
144wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
145itemCSrcModEditPanel1->SetSizer(itemBoxSizer2);
147wxStaticText* itemStaticText3 =
newwxStaticText( itemCSrcModEditPanel1, wxID_STATIC,
_(
"Inst"), wxDefaultPosition, wxDefaultSize, 0 );
148itemBoxSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
150 m_Inst=
newwxTextCtrl( itemCSrcModEditPanel1,
ID_VOUCHER_INST, wxEmptyString, wxDefaultPosition, wxSize(60, -1), 0 );
151itemBoxSizer2->Add(
m_Inst, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
153wxStaticText* itemStaticText5 =
newwxStaticText( itemCSrcModEditPanel1, wxID_STATIC,
_(
"Coll"), wxDefaultPosition, wxDefaultSize, 0 );
154itemBoxSizer2->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
156 m_Coll=
newwxTextCtrl( itemCSrcModEditPanel1,
ID_VOUCHER_COLL, wxEmptyString, wxDefaultPosition, wxSize(60, -1), 0 );
157itemBoxSizer2->Add(
m_Coll, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
159wxStaticText* itemStaticText7 =
newwxStaticText( itemCSrcModEditPanel1, wxID_STATIC,
_(
"SpecID/Text"), wxDefaultPosition, wxDefaultSize, 0 );
160itemBoxSizer2->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
162 m_ID=
newwxTextCtrl( itemCSrcModEditPanel1,
ID_VOUCHER_TEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
163itemBoxSizer2->Add(
m_ID, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);
216 returninst +
":"+ id;
218 returninst +
":"+ coll +
":"+ id;
230 if(pos == string::npos) {
233inst =
val.substr(0, pos);
234 stringremainder =
val.substr(pos + 1);
236 if(pos == string::npos) {
239coll = remainder.substr(0, pos);
240 id= remainder.substr(pos + 1);
void OnVoucherTextTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_TEXT
void CreateControls()
Creates the controls and sizers.
virtual void SetValue(const string &val)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnVoucherCollTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_COLL
~CVoucherPanel()
Destructor.
virtual string GetValue()
static bool ShowToolTips()
Should we show tooltips?
virtual bool IsWellFormatted(const string &val)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=10005, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
void OnVoucherInstTextUpdated(wxCommandEvent &event)
wxEVT_COMMAND_TEXT_UPDATED event handler for ID_VOUCHER_INST
CVoucherPanel()
Constructors.
void Init()
Initialises member variables.
#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)
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