NCBI C++ ToolKit
|
Search Toolkit Book for CFlexibleDatePanel
#include <gui/widgets/edit/flexibledate_panel.hpp>
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 |
CFlexibleDatePanel class declaration
Definition at line 79 of file flexibledate_panel.hpp.
CFlexibleDatePanel::CFlexibleDatePanel | ( | ) |
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 | ( | ) |
Destructor.
Definition at line 122 of file flexibledate_panel.cpp.
void CFlexibleDatePanel::Clear | ( | void | ) |
Definition at line 301 of file flexibledate_panel.cpp.
References m_Date, CRef< C, Locker >::Reset(), and TransferDataToWindow().
Referenced by CReleaseDatePanel::UnselectReleaseDateChoice(), and CGAssemblyPanel::x_Reset().
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.
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().
wxBitmap CFlexibleDatePanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 321 of file flexibledate_panel.cpp.
Definition at line 280 of file flexibledate_panel.cpp.
References CSerialObject::Assign(), m_Date, no_date(), and s_IsDateEmpty().
Referenced by CEditHistory::GetCommand(), CReleaseDatePanel::GetProblems(), and CReleaseDatePanel::TransferDataFromWindow().
|
inline |
Definition at line 129 of file flexibledate_panel.hpp.
References m_DayCtrl.
Referenced by CGAssemblyPanel::TransferDataFromWindow().
wxIcon CFlexibleDatePanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 334 of file flexibledate_panel.cpp.
|
inline |
Definition at line 128 of file flexibledate_panel.hpp.
References m_MonthCtrl.
Referenced by CGAssemblyPanel::TransferDataFromWindow().
|
inline |
Definition at line 127 of file flexibledate_panel.hpp.
References m_YearCtrl.
Referenced by CGAssemblyPanel::TransferDataFromWindow().
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.
void CFlexibleDatePanel::SetDate | ( | const objects::CDate & | a_date | ) |
Referenced by CGAssemblyPanel::TransferDataToWindow(), and CReleaseDatePanel::TransferDataToWindow().
Definition at line 344 of file flexibledate_panel.cpp.
References m_Day, m_Month, m_MonthCtrl, m_Year, NStr::Split(), NStr::StringToInt(), and TransferDataFromWindow().
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().
|
static |
Should we show tooltips?
Definition at line 312 of file flexibledate_panel.cpp.
bool CFlexibleDatePanel::TransferDataFromWindow | ( | ) |
Definition at line 242 of file flexibledate_panel.cpp.
References m_Date, m_Day, m_MinYear, m_Month, m_MonthCtrl, and m_Year.
Referenced by SetDate(), CReleaseDatePanel::TransferDataFromWindow(), CSubmitBlockPanel::TransferDataFromWindow(), and CJournalPanel::TransferDataFromWindow().
bool CFlexibleDatePanel::TransferDataToWindow | ( | ) |
Definition at line 217 of file flexibledate_panel.cpp.
References m_Date, m_Day, m_Month, m_MonthCtrl, and m_Year.
Referenced by Clear(), CReleaseDatePanel::TransferDataToWindow(), CSubmitBlockPanel::TransferDataToWindow(), and CJournalPanel::TransferDataToWindow().
|
private |
Definition at line 137 of file flexibledate_panel.hpp.
Referenced by Clear(), CreateControls(), GetDate(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 139 of file flexibledate_panel.hpp.
Referenced by CreateControls(), SetDate(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CFlexibleDatePanel::m_DayCtrl |
Definition at line 134 of file flexibledate_panel.hpp.
Referenced by CreateControls(), GetDay(), Init(), and SetToolTip().
|
private |
Definition at line 141 of file flexibledate_panel.hpp.
Referenced by CreateControls(), and TransferDataFromWindow().
|
private |
Definition at line 140 of file flexibledate_panel.hpp.
Referenced by CreateControls(), SetDate(), TransferDataFromWindow(), and TransferDataToWindow().
wxChoice* CFlexibleDatePanel::m_MonthCtrl |
Definition at line 133 of file flexibledate_panel.hpp.
Referenced by CreateControls(), GetMonth(), Init(), SetDate(), SetToolTip(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 138 of file flexibledate_panel.hpp.
Referenced by CreateControls(), SetDate(), TransferDataFromWindow(), and TransferDataToWindow().
wxTextCtrl* CFlexibleDatePanel::m_YearCtrl |
Definition at line 132 of file flexibledate_panel.hpp.
Referenced by CreateControls(), GetYear(), Init(), and SetToolTip().
|
private |
Definition at line 142 of file flexibledate_panel.hpp.
Referenced by CreateControls().