=
newobjects::CUser_object();
119wxPanel::Create( parent,
id, pos,
size, style );
124GetSizer()->SetSizeHints(
this);
154 boolreplace_all =
false;
155wxSizer *sizer =
NULL;
156wxWindow *win = GetParent();
158sizer = win->GetSizer();
162wxSizerItemList& itemList = sizer->GetChildren();
163 for(
size_t i= 0;
i< itemList.size();
i++)
165wxCheckBox* c_btn =
dynamic_cast<wxCheckBox*
>(itemList[
i]->GetWindow());
166 if(c_btn && c_btn->GetLabel() ==
_(
"Replace All"))
168replace_all = c_btn->GetValue();
217wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
218itemPanel1->SetSizer(itemBoxSizer2);
220wxArrayString standardCommentCtrlStrings;
222 if(structuredCommentRules)
225standardCommentCtrlStrings.Add(wxEmptyString);
231standardCommentCtrlStrings.Add(wxString(prefix));
239wxStaticBox* itemStaticBoxSizer3Static =
newwxStaticBox(itemPanel1,
wxID_ANY,
_(
"What methods were used to obtain these sequences?"));
240wxStaticBoxSizer* itemStaticBoxSizer3 =
newwxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
241itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
244itemStaticBoxSizer3->Add(
m_MethodsSizer, 0, wxALIGN_LEFT|wxALL, 0);
246wxCheckBox* itemCheckBox5 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX5,
_(
"Sanger dideoxy sequencing"), wxDefaultPosition, wxDefaultSize, 0 );
247itemCheckBox5->SetValue(
false);
250wxCheckBox* itemCheckBox6 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX6,
_(
"454"), wxDefaultPosition, wxDefaultSize, 0 );
251itemCheckBox6->SetValue(
false);
254wxCheckBox* itemCheckBox7 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX7,
_(
"Helicos"), wxDefaultPosition, wxDefaultSize, 0 );
255itemCheckBox7->SetValue(
false);
258wxCheckBox* itemCheckBox8 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX8,
_(
"Illumina"), wxDefaultPosition, wxDefaultSize, 0 );
259itemCheckBox8->SetValue(
false);
262wxCheckBox* itemCheckBox9 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX9,
_(
"Ion Torrent"), wxDefaultPosition, wxDefaultSize, 0 );
263itemCheckBox9->SetValue(
false);
266wxCheckBox* itemCheckBox10 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX10,
_(
"Pacific Biosciences"), wxDefaultPosition, wxDefaultSize, 0 );
267itemCheckBox10->SetValue(
false);
270wxCheckBox* itemCheckBox11 =
newwxCheckBox( itemPanel1,
ID_CHECKBOX11,
_(
"SOLiD"), wxDefaultPosition, wxDefaultSize, 0 );
271itemCheckBox11->SetValue(
false);
274wxBoxSizer* itemBoxSizer12 =
newwxBoxSizer(wxHORIZONTAL);
275itemStaticBoxSizer3->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
279itemBoxSizer12->Add(
m_OtherMethod, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
285wxStaticBox* itemStaticBoxSizer15Static =
newwxStaticBox(itemPanel1,
wxID_ANY,
_(
"What program(s) did you use to assemble your sequences?"));
286wxStaticBoxSizer* itemStaticBoxSizer15 =
newwxStaticBoxSizer(itemStaticBoxSizer15Static, wxVERTICAL);
287itemBoxSizer2->Add(itemStaticBoxSizer15, 0, wxGROW|wxALL, 5);
295 m_AddPrograms=
newwxHyperlinkCtrl( itemPanel1,
ID_BUTTON2,
_(
"Add More Assembly Programs"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
298wxFlexGridSizer* itemFlexGridSizer19 =
newwxFlexGridSizer(2, 2, 0, 0);
299itemBoxSizer2->Add(itemFlexGridSizer19, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
301wxStaticText* itemStaticText20 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Assembly Name (optional):"), wxDefaultPosition, wxDefaultSize, 0 );
302itemFlexGridSizer19->Add(itemStaticText20, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
305itemFlexGridSizer19->Add(
m_AssemblyName, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
307wxStaticText* itemStaticText22 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Coverage (optional):"), wxDefaultPosition, wxDefaultSize, 0 );
308itemFlexGridSizer19->Add(itemStaticText22, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
311itemFlexGridSizer19->Add(
m_Coverage, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
313wxBoxSizer* itemBoxSizer23 =
newwxBoxSizer(wxHORIZONTAL);
314itemBoxSizer2->Add(itemBoxSizer23, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
316wxHyperlinkCtrl* itemHyperlinkCtrl24 =
newwxHyperlinkCtrl( itemPanel1,
ID_BUTTON,
_(
"Clear"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
317itemBoxSizer23->Add(itemHyperlinkCtrl24, 0, wxALL, 5);
329 while(pos < itemList.size()) {
330wxCheckBox* method_check =
dynamic_cast<wxCheckBox*
>(itemList[pos]->GetWindow());
332method_check->SetValue(
false);
368 if(!wxPanel::TransferDataToWindow())
374 stringfield_name =
"";
375 const CObject_id& obj_id = (*it)->GetLabel();
376 if( obj_id.
IsStr() ) {
377field_name = obj_id.
GetStr();
380 if((*it)->IsSetData()) {
381 if((*it)->GetData().IsStr()) {
382 value= (*it)->GetData().GetStr();
383}
else if((*it)->GetData().IsInt()) {
398vector<string> techs;
400 stringother_methods =
"";
401 ITERATE(vector<string>, it, techs) {
406 while(pos < itemList.size() && !found) {
407wxCheckBox* method_check =
dynamic_cast<wxCheckBox*
>(itemList[pos]->GetWindow());
410method_check->SetValue(
true);
418other_methods +=
"; ";
420other_methods += *it;
439 "Sequencing Technology",
440 "StructuredCommentPrefix",
441 "StructuredCommentSuffix" 448 if(!
label.IsStr()) {
462 if(!wxPanel::TransferDataFromWindow())
465CUser_object::TData::iterator it =
m_User->SetData().begin();
466 while(it !=
m_User->SetData().end()) {
468it =
m_User->SetData().erase(it);
480 m_User->AddField (
"StructuredCommentPrefix", prefix);
503 while(pos < itemList.size()) {
504wxCheckBox* method_check =
dynamic_cast<wxCheckBox*
>(itemList[pos]->GetWindow());
506 if(method_check->GetValue()) {
521method += other_method;
525seqtech.
SetData().SetStr(method);
529 m_User->AddField (
"StructuredCommentSuffix", prefix);
618 m_User->Assign(desc.GetUser());
User-defined methods of the data storage class.
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
virtual string GetValue()
virtual void SetValue(const string &val)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
bool GetBool(const string &key, bool default_val=false) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
wxHyperlinkCtrl * m_AddPrograms
virtual bool TransferDataFromWindow()
wxBoxSizer * m_MethodsSizer
void x_ChangeToMultiplePrograms()
CRef< objects::CUser_object > GetUser_object() const
CRef< objects::CUser_object > m_User
bool Create(wxWindow *parent, wxWindowID id=ID_CSEQUENCINGTECHNOLOGYPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSingleAssemblyProgramPanel * m_SingleAssemblyProgram
~CSequencingTechnologyPanel()
Destructor.
wxChoice * m_StandardCommentCtrl
void CreateControls()
Creates the controls and sizers.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void SaveSettings() const
static bool ShowToolTips()
Should we show tooltips?
void SetRegistryPath(const string ®_path)
wxTextCtrl * m_AssemblyName
virtual void UpdateSeqdesc(objects::CSeqdesc &desc)
virtual bool TransferDataToWindow()
void Init()
Initialises member variables.
wxTextCtrl * m_OtherMethodText
wxCheckBox * m_OtherMethod
virtual void ChangeSeqdesc(const objects::CSeqdesc &desc)
void OnOtherMethodClick(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX12
void OnButton2HyperlinkClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_BUTTON2
CSequencingTechnologyPanel()
Constructors.
void OnClearClicked(wxHyperlinkEvent &event)
wxEVT_COMMAND_HYPERLINK event handler for ID_BUTTON
wxBoxSizer * m_AssemblyProgramSizer
CAssemblyProgramPanel * m_AssemblyProgram
virtual string GetValue()
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
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.
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 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.
static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string.
static const char label[]
bool IsStr(void) const
Check if variant Str is selected.
const TStr & GetStr(void) const
Get the variant data.
void SetData(TData &value)
Assign a value to Data data member.
vector< CRef< CUser_field > > TData
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
static const int kNumKnownFields
static bool IsKnownField(const CObject_id &label)
static const char * kReplaceAll
static const string kKnownFields[]
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