NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CJournalPanel Class Reference

Search Toolkit Book for CJournalPanel

#include "journal_panel.hpp"
(Private to src/gui/widgets/edit.)

+ Inheritance diagram for CJournalPanel:
+ Collaboration diagram for CJournalPanel:

Public Types

enum  {
  ID_JOURNAL = 10034 , ID_JOURNAL_TITLE , ID_JOURNAL_VOLUME , ID_JOURNAL_ISSUE ,
  ID_JOURNAL_PAGES , ID_JOURNAL_PMID , ID_JOURNAL_MUID , ID_JOURNAL_SERIALNO ,
  ID_JOURNAL_ERRATUM , ID_JOURNAL_EXPLANATION , ID_JOURNAL_PUBSTATUS , ID_JOURNAL_LOOKUP_RELAXED ,
  ID_JOURNAL_LOOKUP_ISOJTA , ID_PMID_LOOKUP , ID_ARTICLE_LOOKUP
}
 Control identifiers. More...
 

Public Member Functions

 CJournalPanel ()
 Constructors. More...
 
 CJournalPanel (wxWindow *parent, CSerialObject &object, long *pmid, long *muid, long *serial_number, wxWindowID id=ID_JOURNAL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_JOURNAL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CJournalPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
bool TransferDataToWindow ()
 
bool TransferDataFromWindow ()
 
CRef< objects::CCit_jour > GetCit_jour () const
 
void OnJournalPmidTextUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_JOURNAL_PMID More...
 
void OnJournalErratumSelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOURNAL_ERRATUM More...
 
void OnJournalLookupRelaxedClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_RELAXED More...
 
void OnJournalLookupIsojtaClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_ISOJTA More...
 
void OnArticleLookup (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetFinalValidation (bool val)
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Public Attributes

wxTextCtrl * m_JournalTitle
 
wxTextCtrl * m_Volume
 
wxTextCtrl * m_Issue
 
wxTextCtrl * m_Pages
 
wxTextCtrl * m_PmidCtrl
 
wxTextCtrl * m_MuidCtrl
 
wxTextCtrl * m_SerialNoCtrl
 
wxChoice * m_ErratumCtrl
 
wxTextCtrl * m_ErratumExplanation
 
wxChoice * m_PubstatusCtrl
 
wxBoxSizer * m_PubDateSizer
 
CFlexibleDatePanelm_PubDatePanel
 

Private Member Functions

bool x_HasIsoJtaTitle (const objects::CTitle &title)
 
void x_UpdateJournalTitle ()
 
void LookupIsjta (string old_title, vector< string > &titles)
 

Private Attributes

CSerialObjectm_Object
 
CRef< CSerialObjectm_EditedJournal
 
long * m_pPmid
 
long * m_pMuid
 
long * m_pSerialNumber
 
bool m_IsIsoJtaTitle
 

Detailed Description

CJournalPanel class declaration

Definition at line 84 of file journal_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_JOURNAL 
ID_JOURNAL_TITLE 
ID_JOURNAL_VOLUME 
ID_JOURNAL_ISSUE 
ID_JOURNAL_PAGES 
ID_JOURNAL_PMID 
ID_JOURNAL_MUID 
ID_JOURNAL_SERIALNO 
ID_JOURNAL_ERRATUM 
ID_JOURNAL_EXPLANATION 
ID_JOURNAL_PUBSTATUS 
ID_JOURNAL_LOOKUP_RELAXED 
ID_JOURNAL_LOOKUP_ISOJTA 
ID_PMID_LOOKUP 
ID_ARTICLE_LOOKUP 

Definition at line 162 of file journal_panel.hpp.

Constructor & Destructor Documentation

◆ CJournalPanel() [1/2]

CJournalPanel::CJournalPanel ( )

Constructors.

Definition at line 112 of file journal_panel.cpp.

References Init().

◆ CJournalPanel() [2/2]

CJournalPanel::CJournalPanel ( wxWindow *  parent,
CSerialObject object,
long *  pmid,
long *  muid,
long *  serial_number,
wxWindowID  id = ID_JOURNAL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CJournalPanel()

CJournalPanel::~CJournalPanel ( )

Destructor.

Definition at line 157 of file journal_panel.cpp.

Member Function Documentation

◆ Create()

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

Creation.

Definition at line 136 of file journal_panel.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CJournalPanel().

◆ CreateControls()

void CJournalPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CJournalPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 472 of file journal_panel.cpp.

◆ GetCit_jour()

CRef< CCit_jour > CJournalPanel::GetCit_jour ( ) const

Definition at line 449 of file journal_panel.cpp.

References journal().

Referenced by CPublicationTypePanel::x_CollectDetails().

◆ GetIconResource()

wxIcon CJournalPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 485 of file journal_panel.cpp.

◆ Init()

void CJournalPanel::Init ( void  )

◆ LookupIsjta()

void CJournalPanel::LookupIsjta ( string  old_title,
vector< string > &  titles 
)
private

◆ OnArticleLookup()

void CJournalPanel::OnArticleLookup ( wxCommandEvent &  event)

◆ OnJournalErratumSelected()

void CJournalPanel::OnJournalErratumSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_JOURNAL_ERRATUM

Definition at line 499 of file journal_panel.cpp.

References m_ErratumCtrl, and m_ErratumExplanation.

◆ OnJournalLookupIsojtaClick()

void CJournalPanel::OnJournalLookupIsojtaClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_JOURNAL_LOOKUP_ISOJTA

Definition at line 604 of file journal_panel.cpp.

References NStr::Find(), CISOJTALookupDlg::GetISOJTA(), NStr::IsBlank(), CDoiLookup::LookupIsojta(), m_IsIsoJtaTitle, m_JournalTitle, NULL, ToStdString(), ToWxString(), wxT, and x_UpdateJournalTitle().

◆ OnJournalLookupRelaxedClick()

void CJournalPanel::OnJournalLookupRelaxedClick ( wxCommandEvent &  event)

◆ OnJournalPmidTextUpdated()

void CJournalPanel::OnJournalPmidTextUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_JOURNAL_PMID

Definition at line 647 of file journal_panel.cpp.

References NStr::EndsWith(), m_PmidCtrl, NStr::StartsWith(), ToStdString(), ToWxString(), and NStr::TruncateSpacesInPlace().

◆ SetFinalValidation()

void CJournalPanel::SetFinalValidation ( bool  val)

◆ ShowToolTips()

bool CJournalPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 463 of file journal_panel.cpp.

◆ TransferDataFromWindow()

bool CJournalPanel::TransferDataFromWindow ( )

◆ TransferDataToWindow()

bool CJournalPanel::TransferDataToWindow ( )

◆ x_HasIsoJtaTitle()

bool CJournalPanel::x_HasIsoJtaTitle ( const objects::CTitle &  title)
private

Definition at line 657 of file journal_panel.cpp.

References CTitle_Base::Get(), CTitle_Base::IsSet(), and ITERATE.

Referenced by CreateControls(), and TransferDataToWindow().

◆ x_UpdateJournalTitle()

void CJournalPanel::x_UpdateJournalTitle ( )
private

Member Data Documentation

◆ m_EditedJournal

CRef<CSerialObject> CJournalPanel::m_EditedJournal
private

Definition at line 186 of file journal_panel.hpp.

Referenced by CJournalPanel().

◆ m_ErratumCtrl

wxChoice* CJournalPanel::m_ErratumCtrl

◆ m_ErratumExplanation

wxTextCtrl* CJournalPanel::m_ErratumExplanation

◆ m_IsIsoJtaTitle

bool CJournalPanel::m_IsIsoJtaTitle
private

◆ m_Issue

wxTextCtrl* CJournalPanel::m_Issue

Definition at line 152 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_JournalTitle

wxTextCtrl* CJournalPanel::m_JournalTitle

◆ m_MuidCtrl

wxTextCtrl* CJournalPanel::m_MuidCtrl

Definition at line 155 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_Object

CSerialObject* CJournalPanel::m_Object
private

Definition at line 185 of file journal_panel.hpp.

Referenced by CJournalPanel().

◆ m_Pages

wxTextCtrl* CJournalPanel::m_Pages

Definition at line 153 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_PmidCtrl

wxTextCtrl* CJournalPanel::m_PmidCtrl

Definition at line 154 of file journal_panel.hpp.

Referenced by CreateControls(), Init(), and OnJournalPmidTextUpdated().

◆ m_pMuid

long* CJournalPanel::m_pMuid
private

Definition at line 188 of file journal_panel.hpp.

Referenced by CreateControls().

◆ m_pPmid

long* CJournalPanel::m_pPmid
private

Definition at line 187 of file journal_panel.hpp.

Referenced by CreateControls().

◆ m_pSerialNumber

long* CJournalPanel::m_pSerialNumber
private

Definition at line 189 of file journal_panel.hpp.

Referenced by CreateControls().

◆ m_PubDatePanel

CFlexibleDatePanel* CJournalPanel::m_PubDatePanel

◆ m_PubDateSizer

wxBoxSizer* CJournalPanel::m_PubDateSizer

Definition at line 160 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_PubstatusCtrl

wxChoice* CJournalPanel::m_PubstatusCtrl

◆ m_SerialNoCtrl

wxTextCtrl* CJournalPanel::m_SerialNoCtrl

Definition at line 156 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().

◆ m_Volume

wxTextCtrl* CJournalPanel::m_Volume

Definition at line 151 of file journal_panel.hpp.

Referenced by CreateControls(), and Init().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:23 2024 by modify_doxy.py rev. 669887