wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
103wxPanel::Create( parent,
id, pos,
size, style );
108GetSizer()->SetSizeHints(
this);
147wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
148itemPanel1->SetSizer(itemBoxSizer2);
159codeId =
code.GetId();
160codeName =
code.GetName();
166 intidIndex = -1, idByName = -1;
168 string str= (*it)->GetName();
169 int id= (*it)->GetId();
171string::size_type pos =
str.find(
';');
172 string tmp= (pos != string::npos) ?
str.substr(0, pos) +
", etc.":
str;
173 intindex = m_GeneticCode->Append(
ToWxString(
tmp), (
void*)
id);
178 if(codeName ==
str)
187m_GeneticCode->SetSelection(idIndex);
190m_ConflictCtrl->SetValue (
true);
197 bool result= wxPanel::TransferDataFromWindow();
199 intindex = m_GeneticCode->GetSelection();
201 if(index != wxNOT_FOUND)
202 id= (long)m_GeneticCode->GetClientData(index);
207 code->Set().push_back(ce);
212 if(m_ConflictCtrl->GetValue ()) {
User-defined methods of the data storage class.
void SetCdregionFields(objects::CCdregion &cds)
CCDSProductPanel()
Constructors.
~CCDSProductPanel()
Destructor.
virtual bool TransferDataFromWindow()
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
bool Create(wxWindow *parent, wxWindowID id=ID_CCDSPRODUCTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
static const CGenetic_code_table & GetCodeTable(void)
Base class for all serializable objects.
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
virtual const CTypeInfo * GetThisTypeInfo(void) const =0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const string & GetName(void) const
Get name of this type.
bool IsSetCode(void) const
genetic code used Check if a value has been assigned to Code data member.
void ResetCode(void)
Reset Code data member.
void SetCode(TCode &value)
Assign a value to Code data member.
list< CRef< CGenetic_code > > Tdata
bool IsSetConflict(void) const
conflict Check if a value has been assigned to Conflict data member.
TFrame GetFrame(void) const
Get the Frame member data.
const TCode & GetCode(void) const
Get the Code member data.
void ResetFrame(void)
Reset Frame data member.
void ResetConflict(void)
Reset Conflict data member.
const Tdata & Get(void) const
Get the member data.
void SetConflict(TConflict value)
Assign a value to Conflict data member.
void SetFrame(TFrame value)
Assign a value to Frame data member.
TConflict GetConflict(void) const
Get the Conflict member data.
bool IsSetFrame(void) const
Check if a value has been assigned to Frame data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &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