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

Search Toolkit Book for CPubAuthorPanel

#include <gui/widgets/edit/pubauthor_panel.hpp>

+ Inheritance diagram for CPubAuthorPanel:
+ Collaboration diagram for CPubAuthorPanel:

Public Types

enum  { ID_CPUBAUTHORPANEL = 6645 , ID_REFAUTHORSCROLLEDWND = 6646 , ID_MOLADDCHROMOSOME = 6647 , ID_MOLDELCHROMOSOME = 6648 }
 Control identifiers. More...
 

Public Member Functions

 CPubAuthorPanel ()
 Constructors. More...
 
 CPubAuthorPanel (wxWindow *parent, wxWindowID id=ID_CPUBAUTHORPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CPUBAUTHORPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CPubAuthorPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
void ApplyCitSub (objects::CCit_sub &sub)
 
void OnAddAuthorClicked (wxHyperlinkEvent &event)
 wxEVT_COMMAND_HYPERLINK event handler for ID_MOLADDCHROMOSOME More...
 
void OnAddConsortiumClicked (wxHyperlinkEvent &event)
 wxEVT_COMMAND_HYPERLINK event handler for ID_MOLDELCHROMOSOME More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 

Static Public Member Functions

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

Private Member Functions

void x_AddAuthorRow ()
 
void x_AddConsortiumRow ()
 
void x_AddRowToWindow (wxWindow *row)
 

Private Attributes

size_t m_Rows { 3 }
 
int m_RowHeight { 0 }
 
CRef< objects::CCit_sub > m_Sub
 
wxScrolledWindow * m_ScrolledWindow
 
wxFlexGridSizer * m_Sizer
 

Detailed Description

CPubAuthorPanel class declaration

Definition at line 59 of file pubauthor_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CPUBAUTHORPANEL 
ID_REFAUTHORSCROLLEDWND 
ID_MOLADDCHROMOSOME 
ID_MOLDELCHROMOSOME 

Definition at line 131 of file pubauthor_panel.hpp.

Constructor & Destructor Documentation

◆ CPubAuthorPanel() [1/2]

CPubAuthorPanel::CPubAuthorPanel ( )

Constructors.

Definition at line 73 of file pubauthor_panel.cpp.

References Init().

◆ CPubAuthorPanel() [2/2]

CPubAuthorPanel::CPubAuthorPanel ( wxWindow *  parent,
wxWindowID  id = ID_CPUBAUTHORPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

Definition at line 78 of file pubauthor_panel.cpp.

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

◆ ~CPubAuthorPanel()

CPubAuthorPanel::~CPubAuthorPanel ( )

Destructor.

Definition at line 106 of file pubauthor_panel.cpp.

Member Function Documentation

◆ ApplyCitSub()

void CPubAuthorPanel::ApplyCitSub ( objects::CCit_sub &  sub)

Definition at line 299 of file pubauthor_panel.cpp.

References m_Sub, CRef< C, Locker >::Reset(), and TransferDataToWindow().

◆ Create()

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

Creation.

Definition at line 89 of file pubauthor_panel.cpp.

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

Referenced by CPubAuthorPanel().

◆ CreateControls()

void CPubAuthorPanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 130 of file pubauthor_panel.cpp.

References _, ID_MOLADDCHROMOSOME, ID_MOLDELCHROMOSOME, ID_REFAUTHORSCROLLEDWND, m_Rows, m_ScrolledWindow, m_Sizer, and x_AddAuthorRow().

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CPubAuthorPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 242 of file pubauthor_panel.cpp.

◆ GetIconResource()

wxIcon CPubAuthorPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 255 of file pubauthor_panel.cpp.

◆ Init()

void CPubAuthorPanel::Init ( void  )

Initialises member variables.

Definition at line 117 of file pubauthor_panel.cpp.

References m_ScrolledWindow, m_Sizer, and NULL.

Referenced by CPubAuthorPanel().

◆ OnAddAuthorClicked()

void CPubAuthorPanel::OnAddAuthorClicked ( wxHyperlinkEvent &  event)

wxEVT_COMMAND_HYPERLINK event handler for ID_MOLADDCHROMOSOME

Definition at line 269 of file pubauthor_panel.cpp.

References x_AddAuthorRow().

◆ OnAddConsortiumClicked()

void CPubAuthorPanel::OnAddConsortiumClicked ( wxHyperlinkEvent &  event)

wxEVT_COMMAND_HYPERLINK event handler for ID_MOLDELCHROMOSOME

Definition at line 279 of file pubauthor_panel.cpp.

References x_AddConsortiumRow().

◆ ShowToolTips()

bool CPubAuthorPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 233 of file pubauthor_panel.cpp.

◆ TransferDataFromWindow()

bool CPubAuthorPanel::TransferDataFromWindow ( )
virtual

Definition at line 291 of file pubauthor_panel.cpp.

References m_Sub.

◆ TransferDataToWindow()

bool CPubAuthorPanel::TransferDataToWindow ( )
virtual

Definition at line 285 of file pubauthor_panel.cpp.

Referenced by ApplyCitSub().

◆ x_AddAuthorRow()

void CPubAuthorPanel::x_AddAuthorRow ( )
private

Definition at line 191 of file pubauthor_panel.cpp.

References m_RowHeight, m_ScrolledWindow, row, and x_AddRowToWindow().

Referenced by CreateControls(), and OnAddAuthorClicked().

◆ x_AddConsortiumRow()

void CPubAuthorPanel::x_AddConsortiumRow ( )
private

Definition at line 205 of file pubauthor_panel.cpp.

References m_RowHeight, m_ScrolledWindow, row, and x_AddRowToWindow().

Referenced by OnAddConsortiumClicked().

◆ x_AddRowToWindow()

void CPubAuthorPanel::x_AddRowToWindow ( wxWindow *  row)
private

Definition at line 216 of file pubauthor_panel.cpp.

References m_RowHeight, m_ScrolledWindow, m_Sizer, row, wxID_ANY, and wxT.

Referenced by x_AddAuthorRow(), and x_AddConsortiumRow().

Member Data Documentation

◆ m_RowHeight

int CPubAuthorPanel::m_RowHeight { 0 }
private

Definition at line 122 of file pubauthor_panel.hpp.

Referenced by x_AddAuthorRow(), x_AddConsortiumRow(), and x_AddRowToWindow().

◆ m_Rows

size_t CPubAuthorPanel::m_Rows { 3 }
private

Definition at line 121 of file pubauthor_panel.hpp.

Referenced by CreateControls().

◆ m_ScrolledWindow

wxScrolledWindow* CPubAuthorPanel::m_ScrolledWindow
private

◆ m_Sizer

wxFlexGridSizer* CPubAuthorPanel::m_Sizer
private

Definition at line 128 of file pubauthor_panel.hpp.

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

◆ m_Sub

CRef<objects::CCit_sub> CPubAuthorPanel::m_Sub
private

Definition at line 124 of file pubauthor_panel.hpp.

Referenced by ApplyCitSub(), and TransferDataFromWindow().


The documentation for this class was generated from the following files:
Modified on Mon Jul 15 05:36:29 2024 by modify_doxy.py rev. 669887