[Wepg-devel] app WepgAppInfo.h,1.1.1.1,1.2 WepgApplic.cxx,1.2,1.3 resource.h,1.3,1.4 resource.rcp,1.
Brought to you by:
leonvs
|
From: Leon v. S. <le...@us...> - 2004-08-22 13:55:26
|
Update of /cvsroot/wepg/app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31222 Modified Files: WepgAppInfo.h WepgApplic.cxx resource.h resource.rcp Log Message: ok Index: resource.rcp =================================================================== RCS file: /cvsroot/wepg/app/resource.rcp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** resource.rcp 29 Jul 2004 15:52:08 -0000 1.3 --- resource.rcp 22 Aug 2004 13:55:15 -0000 1.4 *************** *** 115,118 **** --- 115,122 ---- MENUITEM "Day end" FRM_GLOBALMENU_SETDAY "D" MENUITEM "View start" FRM_GLOBALMENU_SETVIEW "V" + MENUITEM SEPARATOR + MENUITEM "Sync 1 day" FRM_GLOBALMENU_LOAD1DAY "1" + MENUITEM "Sync 3 days" FRM_GLOBALMENU_LOAD3DAYS "3" + MENUITEM "Sync week" FRM_GLOBALMENU_LOADWEEK "7" END END Index: WepgAppInfo.h =================================================================== RCS file: /cvsroot/wepg/app/WepgAppInfo.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** WepgAppInfo.h 17 Apr 2002 12:34:01 -0000 1.1.1.1 --- WepgAppInfo.h 22 Aug 2004 13:55:15 -0000 1.2 *************** *** 32,35 **** --- 32,36 ---- unsigned char day_end_hour; unsigned char day_end_min; + unsigned char load_ahead; }; Index: resource.h =================================================================== RCS file: /cvsroot/wepg/app/resource.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** resource.h 29 Jul 2004 15:52:08 -0000 1.3 --- resource.h 22 Aug 2004 13:55:15 -0000 1.4 *************** *** 41,44 **** --- 41,47 ---- #define FRM_GLOBALMENU_SETTZ 2205 #define FRM_GLOBALMENU_TODAY 2206 + #define FRM_GLOBALMENU_LOAD1DAY 2207 + #define FRM_GLOBALMENU_LOAD3DAYS 2208 + #define FRM_GLOBALMENU_LOADWEEK 2209 #define ALERT_DBCORRUPT 2300 Index: WepgApplic.cxx =================================================================== RCS file: /cvsroot/wepg/app/WepgApplic.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WepgApplic.cxx 29 Jul 2004 15:52:08 -0000 1.2 --- WepgApplic.cxx 22 Aug 2004 13:55:15 -0000 1.3 *************** *** 404,407 **** --- 404,429 ---- unhideToday(); return (true); + + case FRM_GLOBALMENU_LOAD1DAY: { + WepgAppInfo* appinfo = (WepgAppInfo*)m_db->getAppInfo(); + WepgAppInfoData* mirror = appinfo->getMirror(); + mirror->load_ahead = 1; + appinfo->write(); + return (true); + } + case FRM_GLOBALMENU_LOAD3DAYS: { + WepgAppInfo* appinfo = (WepgAppInfo*)m_db->getAppInfo(); + WepgAppInfoData* mirror = appinfo->getMirror(); + mirror->load_ahead = 3; + appinfo->write(); + return (true); + } + case FRM_GLOBALMENU_LOADWEEK: { + WepgAppInfo* appinfo = (WepgAppInfo*)m_db->getAppInfo(); + WepgAppInfoData* mirror = appinfo->getMirror(); + mirror->load_ahead = 7; + appinfo->write(); + return (true); + } } } |