A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/pcr__primers__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/pcr_primers_panel.cpp Source File

30 #include "wx/wxprec.h" 47 #include <wx/choice.h> 48 #include <wx/valnum.h> 91

wxScrolledWindow::Create( parent,

id

, pos,

size

, style );

96

GetSizer()->SetSizeHints(

this

);

131

SetScrollbars(1, 1, 0, 0);

132  m_Sizer

=

new

wxFlexGridSizer(0, 2, 0, 0);

144  for

(

size_t i

= 0;

i

<

cnt

;

i

++)

156  int

win_height, win_width;

157

GetSize(&win_width, &win_height);

166

wxSizerItemList& children =

m_Sizer

->GetChildren();

167

wxSizerItemList::iterator node = children.begin();

168  while

( node != children.end())

170

(**node).DeleteWindows();

177  if

(!wxPanel::TransferDataToWindow())

188  data

.seq = wxEmptyString;

189  data

.name = wxEmptyString;

190  data

.forward_dir = fwd_dir;

198  m_Sizer

->Add(panel, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 0);

200

wxHyperlinkCtrl* itemHyperlinkCtrl =

new CHyperlink

(

this

,

wxID_ANY

,

wxT

(

"Delete"

),

wxT

(

""

), wxDefaultPosition, wxSize(60,-1), wxHL_DEFAULT_STYLE );

201  m_Sizer

->Add(itemHyperlinkCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

205

panel->GetClientSize(&row_width, &row_height);

208

itemHyperlinkCtrl->GetClientSize (&link_width, &link_height);

209  if

(link_height > row_height)

210

row_height = link_height;

212

row_width += link_width;

223  if

(!wxPanel::TransferDataFromWindow())

226

wxSizerItemList& children =

m_Sizer

->GetChildren();

227

wxSizerItemList::iterator node = children.begin();

230  while

(node != children.end())

232

wxWindow *w = (*node)->GetWindow();

264  if

((*reaction)->CanGetForward()) {

267  if

((*primer)->IsSetSeq() || (*primer)->IsSetName())

271  if

((*primer)->IsSetSeq()) {

272

seq = (*primer)->GetSeq();

274  if

((*primer)->IsSetName()) {

275

name = (*primer)->GetName();

286  if

((*reaction)->CanGetReverse()) {

289  if

((*primer)->IsSetSeq() || (*primer)->IsSetName())

293  if

((*primer)->IsSetSeq()) {

294

seq = (*primer)->GetSeq();

296  if

((*primer)->IsSetName()) {

297

name = (*primer)->GetName();

318  m_Data

.push_back(entry1);

319  m_Data

.push_back(entry2);

325  source

.ResetPcr_primers();

328  for

(

size_t i

= 0;

i

<

m_Data

.size();

i

++) {

337  for

(

size_t i

= 0;

i

<

m_Data

.size();

i

++) {

341  if

(!

m_Data

[

i

].name.IsEmpty())

343  if

(!

m_Data

[

i

].seq.IsEmpty())

347

reaction->

SetForward

().Set().push_back(primer);

349

reaction->

SetReverse

().Set().push_back(primer);

352  source

.SetPcr_primers().Set().push_back(reaction);

364  for

(wxSizerItemList::iterator it = itemList.begin(); it != itemList.end(); ++it)

366

wxWindow* child = (**it).GetWindow();

367  if

(child && child == wnd)

384

wxWindow* wnd = (wxWindow*)event.GetEventObject();

385  if

(wnd ==

NULL

)

return

;

387

wxSizerItemList& itemList =

m_Sizer

->GetChildren();

454

wxPanel::Create( parent,

id

, pos,

size

, style );

459

GetSizer()->SetSizeHints(

this

);

493

wxBoxSizer* sizer1 =

new

wxBoxSizer(wxHORIZONTAL);

494

itemPanel1->SetSizer(sizer1);

496

wxArrayString primerDirStrings;

497

primerDirStrings.Add(

_

(

"Forward"

));

498

primerDirStrings.Add(

_

(

"Reverse"

));

500

wxIntegerValidator<unsigned int>

val

;

502

sizer1->Add(

m_PrimerSet

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);

505

sizer1->Add(

m_PrimerDir

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);

508

sizer1->Add(

m_PrimerName

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);

511

sizer1->Add(

m_PrimerSeq

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 0);

517  if

(!wxPanel::TransferDataToWindow())

555  return

wxPanel::TransferDataFromWindow();

601

wxTextCtrl* item = (wxTextCtrl*)event.GetEventObject();

602  if

(item->GetValue().IsEmpty())

return

;

606

wxWindow* parent = this->GetParent();

610  while

(parent && !listpanel)

612

parent = parent->GetParent();

615  if

(!listpanel)

return

;

User-defined methods of the data storage class.

CHyperlink is wrapper class for wxHyperlinkCtrl On OSX platform it posts URL click instead of sending...

void SetData(SPrimerData entry)

void CreateControls()

Creates the controls and sizers.

void OnSeqUpdated(wxCommandEvent &event)

static bool ShowToolTips()

Should we show tooltips?

virtual bool TransferDataToWindow()

virtual bool TransferDataFromWindow()

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

~CPCRPrimerEntry()

Destructor.

void Init()

Initialises member variables.

wxTextCtrl * m_PrimerName

CPCRPrimerEntry()

Constructors.

bool Create(wxWindow *parent, wxWindowID id=10034, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)

Creation.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

static void Clean(string &seq)

bool Create(wxWindow *parent, wxWindowID id=10032, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxWS_EX_VALIDATE_RECURSIVELY)

Creation.

vector< CPCRPrimerEntry::SPrimerData > m_Data

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

~CPCRPrimersPanel()

Destructor.

void OnDelete(wxHyperlinkEvent &event)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxFlexGridSizer * m_Sizer

CPCRPrimersPanel()

Constructors.

int x_FindRow(wxWindow *wnd, wxSizerItemList &itemList)

void x_AddRow(const CPCRPrimerEntry::SPrimerData &data)

static bool ShowToolTips()

Should we show tooltips?

virtual bool TransferDataToWindow()

objects::CBioSource * m_Source

void Init()

Initialises member variables.

void CreateControls()

Creates the controls and sizers.

virtual bool TransferDataFromWindow()

void UpdateBioSourcePrimers(objects::CBioSource &source)

void x_AddEmptyRow(int nset=0, bool fwd_dir=true)

void x_AdjustScrollWindow()

iterator_bool insert(const value_type &val)

const_iterator begin() const

const_iterator end() const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

void SetSeq(const TSeq &value)

Assign a value to Seq data member.

void SetForward(TForward &value)

Assign a value to Forward data member.

void SetReverse(TReverse &value)

Assign a value to Reverse data member.

void SetName(const TName &value)

Assign a value to Name data member.

const struct ncbi::grid::netcache::search::fields::SIZE size

const CharType(& source)[N]

#define ID_PCRPRIMER_NAME

#define FOR_EACH_PCRPRIMER_IN_PCRPRIMERSET(Itr, Var)

FOR_EACH_PCRPRIMER_IN_PCRPRIMERSET.

#define FOR_EACH_PCRREACTION_IN_PCRREACTIONSET(Itr, Var)

FOR_EACH_PCRREACTION_IN_PCRREACTIONSET.

#define row(bind, expected)

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