• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/generic/

Lines Matching refs:wxDateTime

112     wxPROPERTY( Date,wxDateTime, SetDate , GetDate, , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
119 wxCONSTRUCTOR_6( wxCalendarCtrl , wxWindow* , Parent , wxWindowID , Id , wxDateTime , Date , wxPoint , Position , wxSize , Size , long , WindowStyle )
146 const wxDateTime& date,
169 wxDateTime::WeekDay wd;
170 for ( wd = wxDateTime::Sun; wd < wxDateTime::Inv_WeekDay; wxNextWDay(wd) )
172 m_weekdays[wd] = wxDateTime::GetWeekDayName(wd, wxDateTime::Name_Abbr);
199 const wxDateTime& date,
215 m_date = date.IsValid() ? date : wxDateTime::Today();
290 wxDateTime::Month m;
291 for ( m = wxDateTime::Jan; m < wxDateTime::Inv_Month; wxNextMonth(m) )
293 m_comboMonth->Append(wxDateTime::GetMonthName(m));
471 bool wxCalendarCtrl::SetDate(const wxDateTime& date)
523 void wxCalendarCtrl::ChangeDay(const wxDateTime& date)
529 wxDateTime dateOld = m_date;
542 void wxCalendarCtrl::SetDateAndNotify(const wxDateTime& date)
544 wxDateTime::Tm tm1 = m_date.GetTm(),
567 bool wxCalendarCtrl::SetLowerDateLimit(const wxDateTime& date /* = wxDefaultDateTime */)
583 bool wxCalendarCtrl::SetUpperDateLimit(const wxDateTime& date /* = wxDefaultDateTime */)
599 bool wxCalendarCtrl::SetDateRange(const wxDateTime& lowerdate /* = wxDefaultDateTime */, const wxDateTime& upperdate /* = wxDefaultDateTime */)
622 wxDateTime wxCalendarCtrl::GetStartDate() const
624 wxDateTime::Tm tm = m_date.GetTm();
626 wxDateTime date = wxDateTime(1, tm.mon, tm.year);
630 ? wxDateTime::Mon : wxDateTime::Sun);
644 bool wxCalendarCtrl::IsDateShown(const wxDateTime& date) const
656 bool wxCalendarCtrl::IsDateInRange(const wxDateTime& date) const
663 bool wxCalendarCtrl::ChangeYear(wxDateTime* target) const
702 bool wxCalendarCtrl::ChangeMonth(wxDateTime* target) const
723 size_t wxCalendarCtrl::GetWeek(const wxDateTime& date) const
726 ? wxDateTime::Monday_First
727 : wxDateTime::Sunday_First);
732 wxDateTime::Tm tm = date.GetTm();
734 wxDateTime datetest = wxDateTime(1, tm.mon, tm.year);
738 ? wxDateTime::Mon : wxDateTime::Sun);
896 wxDateTime::WeekDay wd;
897 for ( wd = wxDateTime::Sun; wd < wxDateTime::Inv_WeekDay; wxNextWDay(wd) )
978 wxDateTime ldpm = wxDateTime(1,m_date.GetMonth(), m_date.GetYear()) - wxDateSpan::Day(); // last day prev month
989 wxDateTime fdnm = wxDateTime(1,m_date.GetMonth(), m_date.GetYear()) + wxDateSpan::Month(); // first day next month
1036 wxDateTime date = GetStartDate();
1185 date = ( showSurrounding ) ? GetStartDate() : wxDateTime(1, m_date.GetMonth(), m_date.GetYear());
1188 wxDateTime firstOOR = GetLowerDateLimit() - wxDateSpan::Day(); // first out-of-range
1196 date = ( showSurrounding ) ? GetStartDate() + wxDateSpan::Weeks(6) - wxDateSpan::Day() : wxDateTime().SetToLastMonthDay(m_date.GetMonth(), m_date.GetYear());
1199 wxDateTime firstOOR = GetUpperDateLimit() + wxDateSpan::Day(); // first out-of-range
1212 void wxCalendarCtrl::RefreshDate(const wxDateTime& date)
1247 void wxCalendarCtrl::HighlightRange(wxPaintDC* pDC, const wxDateTime& fromdate, const wxDateTime& todate, const wxPen* pPen, const wxBrush* pBrush)
1274 wxDateTime tfd = fromdate + wxDateSpan::Days(7-fd);
1275 wxDateTime ftd = tfd + wxDateSpan::Day();
1337 bool wxCalendarCtrl::GetDateCoord(const wxDateTime& date, int *day, int *week) const
1377 wxDateTime ldcm;
1444 wxDateTime date;
1445 wxDateTime::WeekDay wday;
1487 wxDateTime *date,
1488 wxDateTime::WeekDay *wd)
1550 *wd = (wxDateTime::WeekDay)wday;
1567 wxDateTime dt = GetStartDate() + wxDateSpan::Days(7*week + wday);
1596 wxDateTime::Tm tm = m_date.GetTm();
1598 wxDateTime::Month mon = (wxDateTime::Month)event.GetInt();
1599 if ( tm.mday > wxDateTime::GetNumberOfDays(mon, tm.year) )
1601 tm.mday = wxDateTime::GetNumberOfDays(mon, tm.year);
1604 wxDateTime target = wxDateTime(tm.mday, mon, tm.year);
1619 wxDateTime::Tm tm = m_date.GetTm();
1621 if ( tm.mday > wxDateTime::GetNumberOfDays(tm.mon, year) )
1623 tm.mday = wxDateTime::GetNumberOfDays(tm.mon, year);
1626 wxDateTime target = wxDateTime(tm.mday, tm.mon, year);
1666 wxDateTime target;
1702 target = wxDateTime(m_date).SetToNextWeekDay(
1704 ? wxDateTime::Sun : wxDateTime::Sat);
1718 target = wxDateTime(m_date).SetToPrevWeekDay(
1720 ? wxDateTime::Mon : wxDateTime::Sun);
1741 SetDateAndNotify(wxDateTime::Today());
1743 SetDateAndNotify(wxDateTime(1, m_date.GetMonth(), m_date.GetYear()));
1747 SetDateAndNotify(wxDateTime(m_date).SetToLastMonthDay());
1787 wxDateTime::Tm tm = m_date.GetTm();
1788 wxDateTime dtStart(1, tm.mon, tm.year),