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

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

46 #include <wx/textctrl.h> 47 #include <wx/choice.h> 48 #include <wx/stattext.h> 49 #include <wx/button.h> 51 #include <wx/valtext.h> 52 #include <wx/msgdlg.h> 80

: m_is_inpress(

false

)

86

: m_is_inpress(is_inpress)

100 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);

101

wxPanel::Create( parent,

id

, pos,

size

, style );

106

GetSizer()->SetSizeHints(

this

);

155

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

156

itemPanel1->SetSizer(itemBoxSizer2);

158

wxBoxSizer* itemBoxSizer1 =

new

wxBoxSizer(wxHORIZONTAL);

159

itemBoxSizer2->Add(itemBoxSizer1, 0, wxALIGN_LEFT|wxALL, 0);

161

wxArrayString m_ChoiceCtrlStrings;

162

m_ChoiceCtrlStrings.Add(

_

(

"PubMed ID"

));

163

m_ChoiceCtrlStrings.Add(

_

(

"DOI"

));

165

itemBoxSizer1->Add(

m_ChoiceCtrl

, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

173

itemBoxSizer1->Add(

m_PubMedID

, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

175

wxButton* itemButton4 =

new

wxButton( itemPanel1,

ID_PUBPMIDLOOKBTN

,

_

(

"Lookup"

), wxDefaultPosition, wxDefaultSize, 0 );

176

itemBoxSizer1->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

178

wxFlexGridSizer* itemFlexGridSizer1 =

new

wxFlexGridSizer(0, 2, 0, 0);

179

itemBoxSizer2->Add(itemFlexGridSizer1, 0, wxGROW|wxALL, 0);

181

wxStaticText* itemStaticText3 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Reference title*"

), wxDefaultPosition, wxDefaultSize, 0 );

182

itemFlexGridSizer1->Add(itemStaticText3, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

184

wxStaticText* itemStaticText4 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Journal title*"

), wxDefaultPosition, wxDefaultSize, 0 );

185

itemFlexGridSizer1->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

188

itemFlexGridSizer1->Add(

m_ReferenceTitle

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

191

itemFlexGridSizer1->Add(

m_JournalTitle

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

193

wxFlexGridSizer* itemFlexGridSizer2 =

new

wxFlexGridSizer(0, 5, 0, 0);

194

itemBoxSizer2->Add(itemFlexGridSizer2, 0, wxGROW|wxALL, 0);

196

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Year*"

), wxDefaultPosition, wxDefaultSize, 0 );

197

itemFlexGridSizer2->Add(itemStaticText5, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

199

wxStaticText* itemStaticText6 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Volume*"

), wxDefaultPosition, wxDefaultSize, 0 );

200

itemFlexGridSizer2->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

202

wxStaticText* itemStaticText7 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Issue"

), wxDefaultPosition, wxDefaultSize, 0 );

203

itemFlexGridSizer2->Add(itemStaticText7, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

205

wxStaticText* itemStaticText8 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Pages from*"

), wxDefaultPosition, wxDefaultSize, 0 );

206

itemFlexGridSizer2->Add(itemStaticText8, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

208

wxStaticText* itemStaticText9 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Pages to*"

), wxDefaultPosition, wxDefaultSize, 0 );

209

itemFlexGridSizer2->Add(itemStaticText9, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxTOP, 5);

211  m_YearCtrl

=

new

wxTextCtrl( itemPanel1,

ID_PUBYEAR

, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );

212

itemFlexGridSizer2->Add(

m_YearCtrl

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

213  m_YearCtrl

->SetValidator( wxTextValidator( wxFILTER_NUMERIC ) );

215  m_VolCtrl

=

new

wxTextCtrl( itemPanel1,

ID_PUBVOL

, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );

216

itemFlexGridSizer2->Add(

m_VolCtrl

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

218  m_IssueCtrl

=

new

wxTextCtrl( itemPanel1,

ID_PUBISSUE

, wxEmptyString, wxDefaultPosition, wxSize(40, -1), 0 );

219

itemFlexGridSizer2->Add(

m_IssueCtrl

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

222

itemFlexGridSizer2->Add(

m_PagesFromCtrl

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

225

itemFlexGridSizer2->Add(

m_PagesToCtrl

, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

279  case

wxNOT_FOUND :

break

;

291

pubdesc = pubdesc_str.first;

292  error

= pubdesc_str.second;

299

wxMessageBox(

wxT

(

"No article found \n"

) + wxString(

error

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

308

wxMessageBox(

wxT

(

"Failed to look up journal title abbreviation possibly due to service failure"

),

wxT

(

"Warning"

), wxOK | wxICON_WARNING,

NULL

);

335  bool

found_doi =

false

;

336  if

(

m_Art

->IsSetIds()) {

337  for

(

auto id

:

m_Art

->GetIds().Get()) {

373  if

(

m_Art

->IsSetTitle() &&

m_Art

->GetTitle().IsSet() && !

m_Art

->GetTitle().Get().empty()) {

376  if

(

m_Art

->IsSetFrom() &&

m_Art

->GetFrom().IsJournal()) {

377  const

objects::CCit_jour& jour =

m_Art

->GetFrom().GetJournal();

378  if

(jour.IsSetTitle() && jour.GetTitle().IsSet() && !jour.GetTitle().Get().empty()) {

381  if

(jour.IsSetImp()) {

382  const

objects::CImprint& imp = jour.GetImp();

383  if

(imp.IsSetDate() && imp.GetDate().IsStd() &&

384

imp.GetDate().GetStd().IsSetYear()) {

387  if

(imp.IsSetVolume()) {

390  if

(imp.IsSetIssue()) {

393  if

(imp.IsSetPages()) {

394  const string

& pages = imp.GetPages();

419  m_Art

->ResetTitle();

421  if

(

m_Art

->SetTitle().Set().empty()) {

427

objects::CCit_jour&

journal

=

m_Art

->SetFrom().SetJournal();

429  if

(

journal

.SetTitle().Set().empty()) {

434

objects::CImprint& imp =

journal

.SetImp();

436

imp.SetDate().SetStr(

"?"

);

439

imp.SetDate().SetStd().SetYear(year);

469  text

+=

"Reference Title\n"

;

471  text

+=

"Journal Title\n"

;

473  text

+=

"Publication Year\n"

;

475  text

+=

"Publication Volume\n"

;

477  text

+=

"Pages From\n"

;

479  text

+=

"Pages To\n"

;

User-defined methods of the data storage class.

User-defined methods of the data storage class.

static pair< CRef< objects::CPubdesc >, string > GetPubFromCrossRef(const string &doi)

void ApplyPub(objects::CPubdesc &pubdesc)

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

wxTextCtrl * m_ReferenceTitle

wxTextCtrl * m_PagesFromCtrl

void OnLookupClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PUBPMIDLOOKBTN

void SetCitArt(objects::CCit_art &art)

void Init()

Initialises member variables.

wxTextCtrl * m_JournalTitle

~CPublishedRefPanel()

Destructor.

void x_UpdateDOIPmidControls()

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

Creation.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxTextCtrl * m_PagesToCtrl

void CreateControls()

Creates the controls and sizers.

virtual bool TransferDataToWindow()

void ReportMissingFields(string &text)

CPublishedRefPanel()

Constructors.

virtual bool TransferDataFromWindow()

static bool ShowToolTips()

Should we show tooltips?

void SetPmid(TEntrezId pmid)

CRef< objects::CCit_art > m_Art

SStrictId_Entrez::TId TEntrezId

TEntrezId type for entrez ids which require the same strictness as TGi.

#define ENTREZ_ID_FROM(T, value)

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

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 enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)

Convert numeric value to string.

static void text(MDB_val *v)

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

User-defined methods of the data storage class.

CRef< CPub > journal(ParserPtr pp, char *bptr, char *eptr, CRef< CAuth_list > &auth_list, CRef< CTitle::C_E > &title, bool has_muid, CRef< CCit_art > &cit_art, Int4 er)

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