(parent,
id, caption, pos,
size, style);
88 bool CncRNASubPanel::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
91SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
92wxPanel::Create( parent,
id, pos,
size, style );
97GetSizer()->SetSizeHints(
this);
139wxFlexGridSizer* itemFlexGridSizer2 =
newwxFlexGridSizer(0, 2, 0, 0);
140itemPanel1->SetSizer(itemFlexGridSizer2);
142wxStaticText* itemStaticText3 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Class"), wxDefaultPosition, wxDefaultSize, 0 );
143itemFlexGridSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
145wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
146itemFlexGridSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL|
wxFIXED_MINSIZE, 5);
148wxArrayString m_ClassCtrlStrings;
149 m_ClassCtrl=
newwxChoice( itemPanel1,
ID_CHOICE5, wxDefaultPosition, wxDefaultSize, m_ClassCtrlStrings, 0 );
150itemBoxSizer4->Add(
m_ClassCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
156wxStaticText* itemStaticText7 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Product"), wxDefaultPosition, wxDefaultSize, 0 );
157itemFlexGridSizer2->Add(itemStaticText7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
160itemFlexGridSizer2->Add(
m_ProductCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
165 ITERATE(vector<string>, it, class_vals) {
174 if(!wxPanel::TransferDataToWindow()) {
178 if(
m_Gen->IsSetClass()) {
179 boolneed_other =
false;
180 boolextra_val =
false;
203 if(
m_Gen->IsSetProduct()) {
214 if(!wxPanel::TransferDataFromWindow()) {
226 m_Gen->ResetClass();
228 m_Gen->SetClass(ncrnaclass);
233 m_Gen->ResetProduct();
235 m_Gen->SetProduct(product);
User-defined methods of the data storage class.
static vector< string > GetncRNAClassList()
~CncRNASubPanel()
Destructor.
void OnChoice5Selected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE5
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CNCRNASUBPANEL, const wxString &caption=_("ncRNA SubPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxTextCtrl * m_ProductCtrl
CRef< objects::CRNA_gen > m_Gen
virtual bool TransferDataToWindow()
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual bool TransferDataFromWindow()
wxTextCtrl * m_OtherClass
static bool ShowToolTips()
Should we show tooltips?
CncRNASubPanel()
Constructors.
#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.
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