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

Search Toolkit Book for CFlexibleDatePanel

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

+ Inheritance diagram for CFlexibleDatePanel:
+ Collaboration diagram for CFlexibleDatePanel:

Public Member Functions

 CFlexibleDatePanel ()
 Constructors. More...
 
 CFlexibleDatePanel (wxWindow *parent, CRef< objects::CDate > the_date, long min_year=1900, long range=200, wxWindowID id=10042, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10042, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CFlexibleDatePanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
bool TransferDataToWindow ()
 
bool TransferDataFromWindow ()
 
CRef< objects::CDate > GetDate () const
 
void SetDate (const objects::CDate &a_date)
 
void SetDate (const string &date)
 
void Clear ()
 
void SetToolTip (const wxString &tipString)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
string GetYear () const
 
string GetMonth () const
 
string GetDay () const
 

Static Public Member Functions

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

Public Attributes

wxTextCtrl * m_YearCtrl
 
wxChoice * m_MonthCtrl
 
wxTextCtrl * m_DayCtrl
 

Private Attributes

CRef< objects::CDate > m_Date
 
long m_Year
 
long m_Day
 
int m_Month
 
long m_MinYear
 
long m_YearRange
 

Detailed Description

CFlexibleDatePanel class declaration

Definition at line 79 of file flexibledate_panel.hpp.

Constructor & Destructor Documentation

◆ CFlexibleDatePanel() [1/2]

CFlexibleDatePanel::CFlexibleDatePanel ( )

Constructors.

Definition at line 82 of file flexibledate_panel.cpp.

References Init().

◆ CFlexibleDatePanel() [2/2]

CFlexibleDatePanel::CFlexibleDatePanel ( wxWindow *  parent,
CRef< objects::CDate >  the_date,
long  min_year = 1900,
long  range = 200,
wxWindowID  id = 10042,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CFlexibleDatePanel()

CFlexibleDatePanel::~CFlexibleDatePanel ( )

Destructor.

Definition at line 122 of file flexibledate_panel.cpp.

Member Function Documentation

◆ Clear()

void CFlexibleDatePanel::Clear ( void  )

◆ Create()

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

Creation.

Definition at line 101 of file flexibledate_panel.cpp.

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

◆ CreateControls()

void CFlexibleDatePanel::CreateControls ( )

Creates the controls and sizers.

Definition at line 147 of file flexibledate_panel.cpp.

References _, ID_FLEXIBLEDATE_DAY, ID_FLEXIBLEDATE_MONTH, ID_FLEXIBLEDATE_YEAR, m_Date, m_Day, m_DayCtrl, m_MinYear, m_Month, m_MonthCtrl, m_Year, m_YearCtrl, and m_YearRange.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CFlexibleDatePanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 321 of file flexibledate_panel.cpp.

◆ GetDate()

CRef< CDate > CFlexibleDatePanel::GetDate ( void  ) const

◆ GetDay()

string CFlexibleDatePanel::GetDay ( ) const
inline

Definition at line 129 of file flexibledate_panel.hpp.

References m_DayCtrl.

Referenced by CGAssemblyPanel::TransferDataFromWindow().

◆ GetIconResource()

wxIcon CFlexibleDatePanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 334 of file flexibledate_panel.cpp.

◆ GetMonth()

string CFlexibleDatePanel::GetMonth ( ) const
inline

Definition at line 128 of file flexibledate_panel.hpp.

References m_MonthCtrl.

Referenced by CGAssemblyPanel::TransferDataFromWindow().

◆ GetYear()

string CFlexibleDatePanel::GetYear ( ) const
inline

Definition at line 127 of file flexibledate_panel.hpp.

References m_YearCtrl.

Referenced by CGAssemblyPanel::TransferDataFromWindow().

◆ Init()

void CFlexibleDatePanel::Init ( void  )

Initialises member variables.

Definition at line 133 of file flexibledate_panel.cpp.

References m_DayCtrl, m_MonthCtrl, m_YearCtrl, and NULL.

◆ SetDate() [1/2]

void CFlexibleDatePanel::SetDate ( const objects::CDate &  a_date)

◆ SetDate() [2/2]

void CFlexibleDatePanel::SetDate ( const string date)

◆ SetToolTip()

void CFlexibleDatePanel::SetToolTip ( const wxString &  tipString)

Definition at line 209 of file flexibledate_panel.cpp.

References m_DayCtrl, m_MonthCtrl, and m_YearCtrl.

Referenced by CGAssemblyPanel::CreateControls().

◆ ShowToolTips()

bool CFlexibleDatePanel::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 312 of file flexibledate_panel.cpp.

◆ TransferDataFromWindow()

bool CFlexibleDatePanel::TransferDataFromWindow ( )

◆ TransferDataToWindow()

bool CFlexibleDatePanel::TransferDataToWindow ( )

Member Data Documentation

◆ m_Date

CRef<objects::CDate> CFlexibleDatePanel::m_Date
private

◆ m_Day

long CFlexibleDatePanel::m_Day
private

◆ m_DayCtrl

wxTextCtrl* CFlexibleDatePanel::m_DayCtrl

Definition at line 134 of file flexibledate_panel.hpp.

Referenced by CreateControls(), GetDay(), Init(), and SetToolTip().

◆ m_MinYear

long CFlexibleDatePanel::m_MinYear
private

Definition at line 141 of file flexibledate_panel.hpp.

Referenced by CreateControls(), and TransferDataFromWindow().

◆ m_Month

int CFlexibleDatePanel::m_Month
private

◆ m_MonthCtrl

wxChoice* CFlexibleDatePanel::m_MonthCtrl

◆ m_Year

long CFlexibleDatePanel::m_Year
private

◆ m_YearCtrl

wxTextCtrl* CFlexibleDatePanel::m_YearCtrl

Definition at line 132 of file flexibledate_panel.hpp.

Referenced by CreateControls(), GetYear(), Init(), and SetToolTip().

◆ m_YearRange

long CFlexibleDatePanel::m_YearRange
private

Definition at line 142 of file flexibledate_panel.hpp.

Referenced by CreateControls().


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