• 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:date

41 // if wxDatePickerCtrl code doesn't define the date event, do it here as we
146 const wxDateTime& date,
154 (void)Create(parent, id, date, pos, size, style, name);
199 const wxDateTime& date,
215 m_date = date.IsValid() ? date : wxDateTime::Today();
468 // changing date
471 bool wxCalendarCtrl::SetDate(const wxDateTime& date)
475 bool sameMonth = m_date.GetMonth() == date.GetMonth(),
476 sameYear = m_date.GetYear() == date.GetYear();
478 if ( IsDateInRange(date) )
483 ChangeDay(date);
490 m_date = date;
523 void wxCalendarCtrl::ChangeDay(const wxDateTime& date)
525 if ( m_date != date )
527 // we need to refresh the row containing the old date and the one
530 m_date = date;
534 // if the date is in the same row, it was already drawn correctly
542 void wxCalendarCtrl::SetDateAndNotify(const wxDateTime& date)
545 tm2 = date.GetTm();
557 if ( SetDate(date) )
564 // date range
567 bool wxCalendarCtrl::SetLowerDateLimit(const wxDateTime& date /* = wxDefaultDateTime */)
571 if ( !(date.IsValid()) || ( ( m_highdate.IsValid() ) ? ( date <= m_highdate ) : true ) )
573 m_lowdate = date;
583 bool wxCalendarCtrl::SetUpperDateLimit(const wxDateTime& date /* = wxDefaultDateTime */)
587 if ( !(date.IsValid()) || ( ( m_lowdate.IsValid() ) ? ( date >= m_lowdate ) : true ) )
589 m_highdate = date;
619 // date helpers
626 wxDateTime date = wxDateTime(1, tm.mon, tm.year);
629 date.SetToPrevWeekDay(GetWindowStyle() & wxCAL_MONDAY_FIRST
635 if ( date.GetDay() == 1 )
637 date -= wxDateSpan::Week();
641 return date;
644 bool wxCalendarCtrl::IsDateShown(const wxDateTime& date) const
648 return date.GetMonth() == m_date.GetMonth();
656 bool wxCalendarCtrl::IsDateInRange(const wxDateTime& date) const
658 // Check if the given date is in the range specified
659 return ( ( ( m_lowdate.IsValid() ) ? ( date >= m_lowdate ) : true )
660 && ( ( m_highdate.IsValid() ) ? ( date <= m_highdate ) : true ) );
723 size_t wxCalendarCtrl::GetWeek(const wxDateTime& date) const
725 size_t retval = date.GetWeekOfMonth(GetWindowStyle() & wxCAL_MONDAY_FIRST
732 wxDateTime::Tm tm = date.GetTm();
1036 wxDateTime date = GetStartDate();
1040 date.Format("%a %d-%m-%Y %H:%M:%S").c_str());
1049 date += wxDateSpan::Week();
1061 if ( IsDateShown(date) )
1064 unsigned int day = date.GetDay();
1075 if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) )
1084 isSel = date.IsSameDate(m_date);
1178 date += wxDateSpan::Day();
1185 date = ( showSurrounding ) ? GetStartDate() : wxDateTime(1, m_date.GetMonth(), m_date.GetYear());
1186 if ( !IsDateInRange(date) )
1193 HighlightRange(&dc, date, firstOOR, wxTRANSPARENT_PEN, &oorbrush);
1196 date = ( showSurrounding ) ? GetStartDate() + wxDateSpan::Weeks(6) - wxDateSpan::Day() : wxDateTime().SetToLastMonthDay(m_date.GetMonth(), m_date.GetYear());
1197 if ( !IsDateInRange(date) )
1204 HighlightRange(&dc, firstOOR, date, wxTRANSPARENT_PEN, &oorbrush);
1212 void wxCalendarCtrl::RefreshDate(const wxDateTime& date)
1223 rect.y = (m_heightRow * GetWeek(date)) + m_rowOffset;
1229 // VZ: for some reason, the selected date seems to occupy more space under
1239 GetWeek(date),
1260 // date-coordinates
1337 bool wxCalendarCtrl::GetDateCoord(const wxDateTime& date, int *day, int *week) const
1342 wxLogDebug("+++ GetDateCoord: (%s) +++", date.Format("%d %m %Y"));
1345 if ( IsDateShown(date) )
1350 *day = date.GetWeekDay();
1361 int targetmonth = date.GetMonth() + (12 * date.GetYear());
1367 *week = GetWeek(date);
1390 wxTimeSpan span = date - ldcm;
1420 wxLogDebug("--- GetDateCoord: (%s) = (%i, %i) ---", date.Format("%d %m %Y"), *day, *week);
1444 wxDateTime date;
1446 switch ( HitTest(event.GetPosition(), &date, &wday) )
1449 if ( IsDateInRange(date) )
1451 ChangeDay(date);
1469 SetDateAndNotify(date); // we probably only want to refresh the control. No notification.. (maybe as an option?)
1487 wxDateTime *date,
1503 if ( date )
1507 *date = m_date - wxDateSpan::Month();
1511 *date = GetLowerDateLimit();
1520 if ( date )
1524 *date = m_date + wxDateSpan::Month();
1528 *date = GetUpperDateLimit();
1571 if ( date )
1572 *date = dt;
1634 // In this case we don't want to change the date. That would put us