[Igarden-commit] CommonSource/YAAFExtensions DateSelectDialog.cpp, 1.6.2.9, 1.6.2.10
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:20:45
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3200/YAAFExtensions Modified Files: Tag: Release_branch_v1 DateSelectDialog.cpp Log Message: Handle exiting date dialog with the OK button Index: DateSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/DateSelectDialog.cpp,v retrieving revision 1.6.2.9 retrieving revision 1.6.2.10 diff -C2 -d -r1.6.2.9 -r1.6.2.10 *** DateSelectDialog.cpp 19 Mar 2008 01:09:40 -0000 1.6.2.9 --- DateSelectDialog.cpp 8 Apr 2008 22:20:44 -0000 1.6.2.10 *************** *** 77,82 **** { cal->SetCalendarDate(inDate, true); - _dateValid = true; } dlog->SetTitle(stx("Date Select")); text = dynamic_cast<XGStaticText*>(dlog->FindViewByID(4)); --- 77,82 ---- { cal->SetCalendarDate(inDate, true); } + _dateValid = true; dlog->SetTitle(stx("Date Select")); text = dynamic_cast<XGStaticText*>(dlog->FindViewByID(4)); *************** *** 228,231 **** --- 228,232 ---- AssertValidView(cal); cal->GetCalendarDate(outDate); + _date = outDate; } *************** *** 263,267 **** void DateSelectDialog::OtherEvent(XGDialog *dlog, long msg, long /*arg*/, void * /*parg*/) { ! if(msg == kCalendarDoubleClock) { CalendarView *cal; --- 264,272 ---- void DateSelectDialog::OtherEvent(XGDialog *dlog, long msg, long /*arg*/, void * /*parg*/) { ! if(msg == kCalendarSingleClick) ! { ! _dateValid = true; ! } ! else if(msg == kCalendarDoubleClick) { CalendarView *cal; |