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

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

64 #include <wx/bitmap.h> 66 #include <wx/stattext.h> 67 #include <wx/textctrl.h> 68 #include <wx/choice.h> 69 #include <wx/button.h> 70 #include <wx/msgdlg.h> 74 #include <wx/textdlg.h> 75 #include <wx/txtstrm.h> 118

wxWindowID

id

,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

119

: m_Object(

nullptr

), m_pPmid(pmid), m_pMuid(muid), m_pSerialNumber(serial_number)

139 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

140

wxPanel::Create( parent,

id

, pos,

size

, style );

145

GetSizer()->SetSizeHints(

this

);

197

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

198

itemPanel1->SetSizer(itemBoxSizer2);

200

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

201

itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

203

wxStaticText* itemStaticText4 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Journal"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

204

itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

207

itemFlexGridSizer3->Add(

m_JournalTitle

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

209

wxStaticText* itemStaticText6 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Volume"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

210

itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

213

itemFlexGridSizer3->Add(

m_Volume

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

215

wxStaticText* itemStaticText8 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Issue"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

216

itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

219

itemFlexGridSizer3->Add(

m_Issue

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

221

wxStaticText* itemStaticText10 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Pages"

), wxDefaultPosition, wxDefaultSize, 0 );

222

itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

225

itemFlexGridSizer3->Add(

m_Pages

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

227

wxStaticText* itemStaticText12 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"PubMedId"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

228

itemFlexGridSizer3->Add(itemStaticText12, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

231

itemFlexGridSizer3->Add(

m_PmidCtrl

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

233

wxStaticText* itemStaticText14 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"muid"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

234

itemFlexGridSizer3->Add(itemStaticText14, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

237

itemFlexGridSizer3->Add(

m_MuidCtrl

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

239

wxStaticText* itemStaticText16 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Serial number"

), wxDefaultPosition, wxDefaultSize,wxALIGN_RIGHT );

240

itemFlexGridSizer3->Add(itemStaticText16, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

243

itemFlexGridSizer3->Add(

m_SerialNoCtrl

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

245

wxStaticText* itemStaticText18 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Erratum"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

246

itemFlexGridSizer3->Add(itemStaticText18, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

248

wxArrayString m_ErratumCtrlStrings;

249

m_ErratumCtrlStrings.Add(wxEmptyString);

250

m_ErratumCtrlStrings.Add(

_

(

"Retracted"

));

251

m_ErratumCtrlStrings.Add(

_

(

"Notice"

));

252

m_ErratumCtrlStrings.Add(

_

(

"In-error"

));

253

m_ErratumCtrlStrings.Add(

_

(

"Erratum"

));

255

itemFlexGridSizer3->Add(

m_ErratumCtrl

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

257

wxStaticText* itemStaticText20 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Explanation"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

258

itemFlexGridSizer3->Add(itemStaticText20, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

263

wxStaticText* itemStaticText22 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Publication Status"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

264

itemFlexGridSizer3->Add(itemStaticText22, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

266

wxArrayString m_PubstatusCtrlStrings;

267

m_PubstatusCtrlStrings.Add(

_

(

"Received"

));

268

m_PubstatusCtrlStrings.Add(

_

(

"Accepted"

));

269

m_PubstatusCtrlStrings.Add(

_

(

"Electronic Publication"

));

270

m_PubstatusCtrlStrings.Add(

_

(

"Print Publication"

));

271

m_PubstatusCtrlStrings.Add(

_

(

"Revised"

));

272

m_PubstatusCtrlStrings.Add(

_

(

"PMC Publication"

));

273

m_PubstatusCtrlStrings.Add(

_

(

"PMC Revision"

));

274

m_PubstatusCtrlStrings.Add(

_

(

"Entrez Date"

));

275

m_PubstatusCtrlStrings.Add(

_

(

"PubMed Revision"

));

276

m_PubstatusCtrlStrings.Add(

_

(

"Ahead of Print"

));

277

m_PubstatusCtrlStrings.Add(

_

(

"Pre-Medline (Obsolete)"

));

278

m_PubstatusCtrlStrings.Add(

_

(

"MeSH Date"

));

279

m_PubstatusCtrlStrings.Add(

_

(

"Other"

));

281

itemFlexGridSizer3->Add(

m_PubstatusCtrl

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

283

wxBoxSizer* itemBoxSizer24 =

new

wxBoxSizer(wxHORIZONTAL);

284

itemBoxSizer2->Add(itemBoxSizer24, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

286

wxStaticText* itemStaticText25 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Publication Date"

), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );

287

itemBoxSizer24->Add(itemStaticText25, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

290

itemBoxSizer24->Add(

m_PubDateSizer

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

292

wxBoxSizer* itemBoxSizer27 =

new

wxBoxSizer(wxHORIZONTAL);

293

itemBoxSizer2->Add(itemBoxSizer27, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

295

wxButton* itemButton28 =

new

wxButton( itemPanel1,

ID_ARTICLE_LOOKUP

,

_

(

"Lookup Article"

), wxDefaultPosition, wxDefaultSize, 0 );

296

itemBoxSizer27->Add(itemButton28, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

298

wxButton* itemButton29 =

new

wxButton( itemPanel1,

ID_JOURNAL_LOOKUP_RELAXED

,

_

(

"Lookup Relaxed"

), wxDefaultPosition, wxDefaultSize, 0 );

299

itemBoxSizer27->Add(itemButton29, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

301

wxButton* itemButton30 =

new

wxButton( itemPanel1,

ID_JOURNAL_LOOKUP_ISOJTA

,

_

(

"Lookup ISOJTA"

), wxDefaultPosition, wxDefaultSize, 0 );

302

itemBoxSizer27->Add(itemButton30, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

335  "Journal Title"

,

false

));

342  if

(!wxPanel::TransferDataToWindow())

347  int

pubstatus =

journal

.GetImp().GetPubstatus();

374  if

(

journal

.IsSetImp() &&

journal

.GetImp().IsSetRetract() &&

journal

.GetImp().GetRetract().IsSetType()) {

375  int

erratum_type =

journal

.GetImp().GetRetract().GetType();

376  switch

(erratum_type) {

383  if

(

journal

.GetImp().GetRetract().IsSetExp()) {

412  if

(!wxPanel::TransferDataFromWindow())

417  if

(pubstatus > -1 && pubstatus < 12) {

418  journal

.SetImp().SetPubstatus(pubstatus + 1);

419

}

else if

(pubstatus == 12) {

420  journal

.SetImp().SetPubstatus(255);

422  journal

.SetImp().ResetPubstatus();

426  if

(erratum > 0 && erratum < 5) {

427  journal

.SetImp().SetRetract().SetType((objects::CCitRetract_Base::TType)(erratum));

430  journal

.SetImp().SetRetract().SetExp(exp);

432  journal

.SetImp().SetRetract().ResetExp();

435  journal

.SetImp().ResetRetract();

503  if

(erratum > -1 && erratum < 4) {

517

wxWindow* parent = this->GetParent();

519  while

(parent && !listpanel)

521

parent = parent->GetParent();

533  while

( !

done

&& dlg.ShowModal() == wxID_OK ) {

536

wxWindow* parent = this->GetParent();

538  while

(parent && !listpanel)

540

parent = parent->GetParent();

544

listpanel->

SetPub

(*new_pubdesc);

548

wxMessageBox(

wxT

(

"Please choose a matching publication"

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

557

wxWindow* parent = this->GetParent();

559  while

(parent && !listpanel)

561

parent = parent->GetParent();

579

wxWindow* parent = this->GetParent();

581  while

(parent && !listpanel)

583

parent = parent->GetParent();

588

listpanel->

SetPub

(*new_pubdesc);

592

wxMessageBox(

wxT

(

"Publication lookup failed"

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

608

wxMessageBox(

wxT

(

"You must provide a journal name to look up!"

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

612

vector<string> titles;

616

wxMessageBox(

wxT

(

"Possible service failure. Please check back later."

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

621  if

(titles.empty()) {

622

wxMessageBox(

wxT

(

"No matches found!"

),

wxT

(

"Error"

), wxOK | wxICON_ERROR,

NULL

);

624

}

else if

(titles.size() == 1) {

625

new_title = titles[0];

628  if

( dlg.ShowModal() == wxID_OK ) {

633  if

(pos != string::npos) {

634

new_title = new_title.substr(0, pos);

659  if

(!title.

IsSet

()) {

663  if

((*it)->IsIso_jta()) {

678  "Journal Title"

,

val

));

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

static bool LookupIsojta(string old_title, vector< string > &titles)

bool TransferDataFromWindow()

bool TransferDataToWindow()

CRef< CSerialObject > m_EditedJournal

CJournalPanel()

Constructors.

void x_UpdateJournalTitle()

CFlexibleDatePanel * m_PubDatePanel

@ ID_JOURNAL_LOOKUP_ISOJTA

@ ID_JOURNAL_LOOKUP_RELAXED

void CreateControls()

Creates the controls and sizers.

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

Creation.

void OnJournalErratumSelected(wxCommandEvent &event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOURNAL_ERRATUM

bool TransferDataFromWindow()

void OnJournalLookupIsojtaClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_ISOJTA

void OnJournalPmidTextUpdated(wxCommandEvent &event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_JOURNAL_PMID

~CJournalPanel()

Destructor.

CRef< objects::CCit_jour > GetCit_jour() const

wxTextCtrl * m_JournalTitle

wxBoxSizer * m_PubDateSizer

void Init()

Initialises member variables.

wxTextCtrl * m_ErratumExplanation

wxTextCtrl * m_SerialNoCtrl

static bool ShowToolTips()

Should we show tooltips?

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void OnJournalLookupRelaxedClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_RELAXED

wxChoice * m_PubstatusCtrl

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void OnArticleLookup(wxCommandEvent &event)

void SetFinalValidation(bool val)

bool x_HasIsoJtaTitle(const objects::CTitle &title)

bool TransferDataToWindow()

void SetPub(const objects::CPubdesc &pubdesc)

virtual bool TransferDataFromWindow()

CRef< objects::CPubdesc > GetPubdesc() const

CRef< objects::CPubdesc > GetPubdesc()

void SetPubdesc(const objects::CPubdesc &pubdesc)

void SendQuery(bool use_pubmed_citmatch=false)

Base class for all serializable objects.

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

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)

Check if a string ends with a specified suffix value.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string (in-place)

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 StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)

Check if a string starts with a specified prefix value.

list< CRef< C_E > > Tdata

bool IsSet(void) const

Check if a value has been assigned to data member.

const Tdata & Get(void) const

Get the member data.

@ e_Iso_jta

specifically ISO jta J

@ e_Name

Title, Anal,Coll,Mono AJB.

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

API (CPMCIDSearch) for looking up PubMed IDs based on other types of IDs.

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