NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CAuthorNamesContainer Class Referenceabstract

Search Toolkit Book for CAuthorNamesContainer

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

+ Inheritance diagram for CAuthorNamesContainer:
+ Collaboration diagram for CAuthorNamesContainer:

Public Member Functions

 ~CAuthorNamesContainer ()
 
void DeleteRow (wxWindow *wnd)
 
void ShiftAuthorUp (wxWindow *link)
 
void ShiftAuthorDown (wxWindow *link)
 
virtual void InsertAuthorBefore (wxWindow *link)=0
 
virtual void InsertAuthorAfter (wxWindow *link)=0
 
virtual void AddLastAuthor (wxWindow *link)=0
 
void ImportAuthorsFromFile ()
 
virtual void SetAuthors (const objects::CAuth_list &auth_list)=0
 
IWorkDirClient implementation
virtual void SetWorkDir (const wxString &workDir)
 
- Public Member Functions inherited from IWorkDirClient
virtual ~IWorkDirClient ()
 

Protected Member Functions

 CAuthorNamesContainer ()
 

Protected Attributes

wxScrolledWindow * m_ScrolledWindow
 
wxFlexGridSizer * m_Sizer
 
wxString m_WorkDir
 

Private Member Functions

virtual wxSizerItem * x_FindSingleAuthor (wxWindow *wnd, wxSizerItemList &itemList)=0
 
virtual void x_AddRowToWindow (wxWindow *row)=0
 
virtual void x_InsertRowtoWindow (wxWindow *row, size_t index)=0
 
virtual void x_MoveRowUp (int row_num)=0
 
virtual int x_FindRow (wxWindow *wnd, wxSizerItemList &itemList)=0
 
void x_DeleteAuthor (wxSizerItem *link)
 

Detailed Description

Definition at line 43 of file author_names_container.hpp.

Constructor & Destructor Documentation

◆ ~CAuthorNamesContainer()

CAuthorNamesContainer::~CAuthorNamesContainer ( )
inline

Definition at line 49 of file author_names_container.hpp.

◆ CAuthorNamesContainer()

CAuthorNamesContainer::CAuthorNamesContainer ( )
inlineprotected

Definition at line 69 of file author_names_container.hpp.

Member Function Documentation

◆ AddLastAuthor()

virtual void CAuthorNamesContainer::AddLastAuthor ( wxWindow *  link)
pure virtual

◆ DeleteRow()

void CAuthorNamesContainer::DeleteRow ( wxWindow *  wnd)

Definition at line 58 of file author_names_container.cpp.

References NULL.

Referenced by CAuthorNamesPanel::OnDelete(), and CMacroAuthorNamesPanel::OnDelete().

◆ ImportAuthorsFromFile()

void CAuthorNamesContainer::ImportAuthorsFromFile ( )

◆ InsertAuthorAfter()

virtual void CAuthorNamesContainer::InsertAuthorAfter ( wxWindow *  link)
pure virtual

◆ InsertAuthorBefore()

virtual void CAuthorNamesContainer::InsertAuthorBefore ( wxWindow *  link)
pure virtual

◆ SetAuthors()

virtual void CAuthorNamesContainer::SetAuthors ( const objects::CAuth_list &  auth_list)
pure virtual

◆ SetWorkDir()

virtual void CAuthorNamesContainer::SetWorkDir ( const wxString &  workDir)
inlinevirtual

Implements IWorkDirClient.

Definition at line 65 of file author_names_container.hpp.

References m_WorkDir.

◆ ShiftAuthorDown()

void CAuthorNamesContainer::ShiftAuthorDown ( wxWindow *  link)

Definition at line 127 of file author_names_container.cpp.

References m_Sizer, x_FindRow(), and x_MoveRowUp().

Referenced by CSingleAuthorPanel::OnMoveAuthorUpdated().

◆ ShiftAuthorUp()

void CAuthorNamesContainer::ShiftAuthorUp ( wxWindow *  link)

Definition at line 119 of file author_names_container.cpp.

References m_Sizer, x_FindRow(), and x_MoveRowUp().

Referenced by CSingleAuthorPanel::OnMoveAuthorUpdated().

◆ x_AddRowToWindow()

virtual void CAuthorNamesContainer::x_AddRowToWindow ( wxWindow *  row)
privatepure virtual

Implemented in CMacroAuthorNamesPanel, and CAuthorNamesPanel.

Referenced by x_DeleteAuthor().

◆ x_DeleteAuthor()

void CAuthorNamesContainer::x_DeleteAuthor ( wxSizerItem *  link)
private

Definition at line 85 of file author_names_container.cpp.

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

◆ x_FindRow()

virtual int CAuthorNamesContainer::x_FindRow ( wxWindow *  wnd,
wxSizerItemList &  itemList 
)
privatepure virtual

◆ x_FindSingleAuthor()

virtual wxSizerItem* CAuthorNamesContainer::x_FindSingleAuthor ( wxWindow *  wnd,
wxSizerItemList &  itemList 
)
privatepure virtual

◆ x_InsertRowtoWindow()

virtual void CAuthorNamesContainer::x_InsertRowtoWindow ( wxWindow *  row,
size_t  index 
)
privatepure virtual

◆ x_MoveRowUp()

virtual void CAuthorNamesContainer::x_MoveRowUp ( int  row_num)
privatepure virtual

Member Data Documentation

◆ m_ScrolledWindow

wxScrolledWindow* CAuthorNamesContainer::m_ScrolledWindow
protected

◆ m_Sizer

wxFlexGridSizer* CAuthorNamesContainer::m_Sizer
protected

◆ m_WorkDir

wxString CAuthorNamesContainer::m_WorkDir
protected

The documentation for this class was generated from the following files:
Modified on Mon Apr 22 03:59:56 2024 by modify_doxy.py rev. 669887