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/srcmod__list__panel_8cpp_source.html below:

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

30 #include "wx/wxprec.h" 49 #include <wx/checkbox.h> 104 

wxPanel::Create( parent,

id

, pos,

size

, style );

109

GetSizer()->SetSizeHints(

this

);

157

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxHORIZONTAL);

158

itemPanel1->SetSizer(itemBoxSizer2);

160

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

161

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_TOP|wxALL, 5);

163

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxVERTICAL);

164

itemBoxSizer3->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

174

itemBoxSizer3->Add(530, 0, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);

176

wxBoxSizer* itemBoxSizer8 =

new

wxBoxSizer(wxVERTICAL);

177

itemBoxSizer3->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

179

wxFlexGridSizer* itemFlexGridSizer9 =

new

wxFlexGridSizer(0, 3, 0, 0);

180

itemBoxSizer3->Add(itemFlexGridSizer9, 0, wxGROW|wxALL, 0);

182

wxStaticText* itemStaticText10 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Source Note"

), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );

183

itemFlexGridSizer9->Add(itemStaticText10, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

186

itemFlexGridSizer9->Add(

m_SrcInfo

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 0);

188

wxHyperlinkCtrl* itemHyperlinkCtrl12 =

new

wxHyperlinkCtrl( itemPanel1,

ID_CLR_SRC_NOTE

,

_

(

"Clear"

), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );

189

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

191

wxStaticText* itemStaticText13 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Organism Note"

), wxDefaultPosition, wxDefaultSize, 0 );

192

itemFlexGridSizer9->Add(itemStaticText13, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

195

itemFlexGridSizer9->Add(

m_OrgNote

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 0);

197

wxHyperlinkCtrl* itemHyperlinkCtrl15 =

new

wxHyperlinkCtrl( itemPanel1,

ID_CLR_ORG_NOTE

,

_

(

"Clear"

), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );

198

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

200

itemBoxSizer2->Add(0, 500, 0, wxALIGN_TOP|wxALL, 0);

209

wxBoxSizer* itemBoxSizer9 =

new

wxBoxSizer(wxVERTICAL);

210

itemBoxSizer3->Add(itemBoxSizer9, 1, wxGROW|wxALL, 5);

218

itemBoxSizer9->Add(

m_PCRCheckbox

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

231

wxStaticText* itemStaticTextPCRSet =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Set"

), wxDefaultPosition, wxSize(25,-1), wxALIGN_CENTRE );

234

wxStaticText* itemStaticTextPCRDir =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Direction"

), wxDefaultPosition, wxSize(80,-1), wxALIGN_CENTRE );

237

wxStaticText* itemStaticText14 =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Name"

), wxDefaultPosition, wxSize(80,-1), wxALIGN_CENTRE );

240

wxStaticText* itemStaticText15 =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Sequence"

), wxDefaultPosition, wxSize(80,-1), wxALIGN_CENTRE );

243

wxStaticText* itemStaticText16 =

new

wxStaticText(

this

, wxID_STATIC,

_

(

" "

), wxDefaultPosition, wxSize(80,-1), wxALIGN_CENTRE );

249

wxButton* itemButton1 =

new

wxButton(

this

,

ID_ADD_PCR_PRIMER

,

_

(

"Add Another Primer"

), wxDefaultPosition, wxDefaultSize, 0 );

278  if

(!wxPanel::TransferDataToWindow())

330  m_Source

->GetOrg().GetOrgname().IsSetMod())

342  om

->Assign(**src_it);

377

wxSizerItemList& children =

m_Sizer

->GetChildren();

378

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

379  for

(; node != children.end(); ++node)

380

(**node).DeleteWindows();

383  for

(

auto

&& it :

m_Data

) {

420  m_Sizer

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

422  wxT

(

"Delete"

),

wxT

(

""

), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );

423  m_Sizer

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

427

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

431

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

432  if

(link_height > row_height) {

433

row_height = link_height;

435

row_width += link_width;

448  x_AddRow

(wxEmptyString, wxEmptyString);

453  if

(!wxPanel::TransferDataFromWindow())

461  m_Source

->SetOrg().SetOrgname().ResetMod();

480  m_Source

->SetOrg().SetOrgname().SetMod().push_back(org_mod);

487  m_Source

->SetSubtype().push_back(sub_src);

492

wxSizerItemList& children =

m_Sizer

->GetChildren();

493

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

494  for

(; node != children.end(); ++node) {

495

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

500  if

(singlemod_panel) {

528

wxSizerItemList& children =

m_Sizer

->GetChildren();

529

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

531  while

(node != children.end()) {

533

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

545  m_Data

.push_back(single_modifier_data);

557

biosrc.

SetOrg

().SetOrgname().ResetMod();

562

sub_src->

SetSubtype

((*src_it)->GetSubtype());

563

sub_src->

SetName

((*src_it)->GetName());

570

biosrc.

SetOrg

().SetOrgname().ResetMod();

574

org_mod->

SetSubtype

((*src_it)->GetSubtype());

575

org_mod->

SetSubname

((*src_it)->GetSubname());

576

biosrc.

SetOrg

().SetOrgname().SetMod().push_back(org_mod);

583

biosrc.

SetOrg

().SetOrgname().SetMod().push_back(org_mod);

599 static bool s_IsLastRow

(wxWindow* wnd, wxSizerItemList& itemList)

601  bool

is_last =

false

;

605  for

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

606

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

607  if

(child && child == wnd) {

627

wxSizerItemList& itemList =

m_Sizer

->GetChildren();

639

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

644

wxSizerItemList& itemList =

m_Sizer

->GetChildren();

645

wxSizerItemList::iterator item_it =

x_FindRow

(wnd, itemList);

647  for

(

int i

= 0; item_it != itemList.end() &&

i

<

kCtrlColNum

; ++

i

) {

648

(**item_it).DeleteWindows();

649

item_it = itemList.erase(item_it);

652  if

(itemList.empty()) {

661  return

itemList.end();

663

wxSizerItemList::iterator

row

= itemList.end(), it = itemList.begin();

665  for

(; it != itemList.end(); ++it) {

666

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

716  auto

dit =

m_Data

.begin();

717  while

(dit !=

m_Data

.end())

EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1

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

@OrgMod.hpp User-defined methods of the data storage class.

static bool IsValidSubtypeName(const string &str, EVocabulary vocabulary=eVocabulary_raw)

static string GetSubtypeName(TSubtype stype, EVocabulary vocabulary=eVocabulary_raw)

static TSubtype GetSubtypeValue(const string &str, EVocabulary vocabulary=eVocabulary_raw)

virtual bool TransferDataToWindow()

virtual bool TransferDataFromWindow()

void UpdateBioSourcePrimers(objects::CBioSource &source)

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

void x_AdjustScrollWindow()

CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboa...

void OnPCRCheckBox(wxCommandEvent &event)

void OnAddPCRPrimer(wxCommandEvent &event)

void OnDelete(wxHyperlinkEvent &event)

list< CRef< objects::COrgMod > > m_ReadOnlyQuals

void OnClrSrcNoteHyperlinkClicked(wxHyperlinkEvent &event)

wxEVT_COMMAND_HYPERLINK event handler for ID_CLR_SRC_NOTE

void OnClrOrgNoteHyperlinkClicked(wxHyperlinkEvent &event)

wxEVT_COMMAND_HYPERLINK event handler for ID_CLR_ORG_NOTE

void x_SetSrcOrgMod(int subtype, const string &value)

wxSizerItemList::iterator x_FindRow(wxWindow *wnd, wxSizerItemList &itemList)

virtual bool TransferDataFromWindow()

CRef< objects::CBioSource > m_Source

wxScrolledWindow * m_ScrolledWindow

wxBoxSizer * m_PCRPrimersBoxSizer1

CRichTextCtrl * m_OrgNote

void PopulateModifiers(objects::CBioSource &biosrc)

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

virtual bool TransferDataToWindow()

CRichTextCtrl * m_SrcInfo

void x_AddRow(wxString name, wxString value)

static bool ShowToolTips()

Should we show tooltips?

wxBoxSizer * m_PCRPrimersBoxSizer2

void OnChangedTaxname(void)

void CreateControls()

Creates the controls and sizers.

wxFlexGridSizer * m_Sizer

void SetSource(const objects::CBioSource &biosrc)

void x_SetSrcSubMod(int subtype, const string &value)

wxCheckBox * m_PCRCheckbox

CSrcModListPanel()

Constructors.

void x_ShowPCRPrimerItems(bool value)

CPCRPrimersPanel * m_PCRPrimersPanel

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void Init()

Initialises member variables.

wxBoxSizer * m_PCRPrimersBoxSizer3

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

Creation.

void AddLastSrcMod(wxWindow *link)

~CSrcModListPanel()

Destructor.

void x_SetBioSourceModifier(const string &name, const string &value)

const SModData & GetModifierData()

static TSubtype GetSubtypeValue(const string &str, EVocabulary vocabulary=eVocabulary_raw)

static bool IsValidSubtypeName(const string &str, EVocabulary vocabulary=eVocabulary_raw)

static string GetSubtypeName(CSubSource::TSubtype stype, EVocabulary vocabulary=eVocabulary_raw)

#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.

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

#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 const char label[]

void SetSubtype(TSubtype value)

Assign a value to Subtype data member.

bool IsSetOrg(void) const

Check if a value has been assigned to Org data member.

list< CRef< CSubSource > > TSubtype

const TOrg & GetOrg(void) const

Get the Org member data.

void SetOrg(TOrg &value)

Assign a value to Org data member.

void SetName(const TName &value)

Assign a value to Name data member.

TSubtype & SetSubtype(void)

Assign a value to Subtype data member.

void ResetSubtype(void)

Reset Subtype data member.

void SetSubtype(TSubtype value)

Assign a value to Subtype data member.

list< CRef< COrgMod > > TMod

bool IsSetOrgname(void) const

Check if a value has been assigned to Orgname data member.

void SetSubname(const TSubname &value)

Assign a value to Subname data member.

@ eSubtype_gb_acronym

used by taxonomy database

@ eSubtype_gb_synonym

used by taxonomy database

@ eSubtype_other

ASN5: old-name (254) will be added to next spec.

@ eSubtype_gb_anamorph

used by taxonomy database

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

const GenericPointer< typename T::ValueType > T2 value

const CharType(& source)[N]

#define ID_ADD_PCR_PRIMER

static bool s_IsLastRow(wxWindow *wnd, wxSizerItemList &itemList)

static bool s_IsReadOnly(COrgMod::TSubtype subtype)

static bool s_IsNonText(string label)

CRef< objects::CObjectManager > om

#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