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

Search Toolkit Book for CSubmitBlockPanel

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

+ Inheritance diagram for CSubmitBlockPanel:
+ Collaboration diagram for CSubmitBlockPanel:

Public Member Functions

 CSubmitBlockPanel ()
 Constructors. More...
 
 CSubmitBlockPanel (wxWindow *parent, CRef< objects::CSubmit_block > submit_block, bool create_submit_block=false, wxWindowID id=10077, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 400), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10077, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 400), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CSubmitBlockPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
void SetData (const objects::CSubmit_block &submit_block)
 
void OnImmediateReleaseSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RBTN_SUBPNL1 More...
 
void OnHUPSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RBTN_SUBPNL2 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 Attributes

wxRadioButton * m_ImmediateRelease
 
wxRadioButton * m_HUP
 
wxTextCtrl * m_Title
 
CFlexibleDatePanelm_Reldate
 
CFlexibleDatePanelm_Submitdate
 
CRef< objects::CSubmit_block > m_SubBlock
 
bool m_CreateMode { false }
 

Detailed Description

CSubmitBlockPanel class declaration

Definition at line 70 of file submitblockpanel.hpp.

Constructor & Destructor Documentation

◆ CSubmitBlockPanel() [1/2]

CSubmitBlockPanel::CSubmitBlockPanel ( )

Constructors.

Definition at line 71 of file submitblockpanel.cpp.

References Init().

◆ CSubmitBlockPanel() [2/2]

CSubmitBlockPanel::CSubmitBlockPanel ( wxWindow *  parent,
CRef< objects::CSubmit_block >  submit_block,
bool  create_submit_block = false,
wxWindowID  id = 10077,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 400),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CSubmitBlockPanel()

CSubmitBlockPanel::~CSubmitBlockPanel ( )

Destructor.

Definition at line 108 of file submitblockpanel.cpp.

Member Function Documentation

◆ Create()

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

Creation.

Definition at line 88 of file submitblockpanel.cpp.

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

◆ CreateControls()

void CSubmitBlockPanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 135 of file submitblockpanel.cpp.

References _, ID_RBTN_SUBPNL1, ID_RBTN_SUBPNL2, ID_TEXTCTRL10, m_CreateMode, m_HUP, m_ImmediateRelease, m_Reldate, m_SubBlock, m_Submitdate, m_Title, and CCit_sub_Base::SetDate().

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CSubmitBlockPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 258 of file submitblockpanel.cpp.

◆ GetIconResource()

wxIcon CSubmitBlockPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 271 of file submitblockpanel.cpp.

◆ Init()

void CSubmitBlockPanel::Init ( void  )

Initialises member variables.

Definition at line 119 of file submitblockpanel.cpp.

References m_HUP, m_ImmediateRelease, m_Reldate, m_Submitdate, m_Title, and NULL.

◆ OnHUPSelected()

void CSubmitBlockPanel::OnHUPSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RBTN_SUBPNL2

Definition at line 295 of file submitblockpanel.cpp.

References m_Reldate.

◆ OnImmediateReleaseSelected()

void CSubmitBlockPanel::OnImmediateReleaseSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RBTN_SUBPNL1

Definition at line 285 of file submitblockpanel.cpp.

References m_Reldate.

◆ SetData()

void CSubmitBlockPanel::SetData ( const objects::CSubmit_block &  submit_block)

Definition at line 239 of file submitblockpanel.cpp.

References m_SubBlock, and TransferDataToWindow().

◆ ShowToolTips()

bool CSubmitBlockPanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 249 of file submitblockpanel.cpp.

◆ TransferDataFromWindow()

bool CSubmitBlockPanel::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CSubmitBlockPanel::TransferDataToWindow ( )
virtual

Member Data Documentation

◆ m_CreateMode

bool CSubmitBlockPanel::m_CreateMode { false }
private

Definition at line 141 of file submitblockpanel.hpp.

Referenced by CreateControls().

◆ m_HUP

wxRadioButton* CSubmitBlockPanel::m_HUP
private

◆ m_ImmediateRelease

wxRadioButton* CSubmitBlockPanel::m_ImmediateRelease
private

Definition at line 133 of file submitblockpanel.hpp.

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

◆ m_Reldate

CFlexibleDatePanel* CSubmitBlockPanel::m_Reldate
private

◆ m_SubBlock

CRef<objects::CSubmit_block> CSubmitBlockPanel::m_SubBlock
private

◆ m_Submitdate

CFlexibleDatePanel* CSubmitBlockPanel::m_Submitdate
private

◆ m_Title

wxTextCtrl* CSubmitBlockPanel::m_Title
private

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