Changeset 60 in svn
- Timestamp:
- Oct 21, 2015 1:32:10 PM (10 years ago)
- Location:
- trunk/zasc/app_c
- Files:
-
- 26 edited
-
DST_BaseWin.c (modified) (1 diff)
-
DST_Common.h (modified) (1 diff)
-
DST_CommonAPI.c (modified) (2 diffs)
-
DST_DB.c (modified) (13 diffs)
-
DST_DB.h (modified) (3 diffs)
-
DST_DataStrings.c (modified) (1 diff)
-
DST_GlobalVariables.c (modified) (1 diff)
-
DST_GlobalVariables.h (modified) (1 diff)
-
DST_HostInterface.c (modified) (1 diff)
-
DST_ISDBT_ChannelTask.c (modified) (1 diff)
-
DST_Main.c (modified) (1 diff)
-
DST_MemoryDB.c (modified) (3 diffs)
-
DST_MemoryDB.h (modified) (4 diffs)
-
DST_UserInterface.c (modified) (1 diff)
-
DST_UserInterface.h (modified) (2 diffs)
-
DST_WinAutoSearch.c (modified) (2 diffs)
-
DST_WinChannelEdit.c (modified) (9 diffs)
-
DST_WinDebugSQL.c (modified) (3 diffs)
-
DST_WinFactory.c (modified) (1 diff)
-
DST_WinFactoryReset.c (modified) (2 diffs)
-
DST_WinFrequencySetting.c (modified) (1 diff)
-
DST_WinMainMenu.c (modified) (10 diffs)
-
DST_WinManagerTask.c (modified) (2 diffs)
-
DST_WinManualSearch.c (modified) (2 diffs)
-
DST_WinSTBInfo.c (modified) (2 diffs)
-
MayaMultilingual.xml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_BaseWin.c
r26 r60 251 251 if (DST_GetWin(WIN_AUTO_SEARCH)) return false; 252 252 if (DST_GetWin(WIN_MANUAL_SEARCH)) return false; 253 if (DST_GetWin(WIN_CHANNEL_LIST)) return false; // ä³ÎÆíÁý¿¡¼ ÇÖŰ ±Ý 253 254 return true; 254 255 } -
trunk/zasc/app_c/DST_Common.h
r2 r60 58 58 #define MAX_CHANNEL_NUMBER 250 // ÃÖ´ë ä³Î °¹¼ö 59 59 60 #define CHANNEL_EDIT_SUPPORT 0 60 61 61 #define EPG_SUPPORT 0 62 62 #define CVCT_SUPPORT 0 63 #define SUPPORT_CHANNEL_EDIT 1 63 64 64 65 #endif -
trunk/zasc/app_c/DST_CommonAPI.c
r19 r60 221 221 //DHL_DISP_MuteMain(1); 222 222 DHL_VID_Mute(1); 223 DST_DB_Sync ();223 DST_DB_SyncNow(); 224 224 int i; 225 225 for ( i = 0; i < 500; i++) … … 612 612 DST_Printf("%s|%d by %s \n",__func__, __LINE__,function); 613 613 // DST_FlashSyncStart(); 614 DST_DB_Sync ();614 DST_DB_SyncNow(); 615 615 int i; 616 616 for ( i = 0; i < 500; i++) -
trunk/zasc/app_c/DST_DB.c
r35 r60 18 18 //#endif 19 19 20 #if CHANNEL_EDIT_SUPPORT21 void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd)20 #if SUPPORT_CHANNEL_EDIT 21 void DST_DB_SetSkipChannel(int major, int minor, bool bAdd) 22 22 { 23 23 // CDB db; NewCDB(&db); … … 27 27 for (i=0; i < DB_SKIP_LIST_MAX; i++) 28 28 { 29 if (db_skip_list[i]. program_number == 0) continue;30 if (db_skip_list[i]. rf != rf) continue;31 if (db_skip_list[i]. program_number != program_number) continue;29 if (db_skip_list[i].major == 0) continue; 30 if (db_skip_list[i].minor != minor) continue; 31 if (db_skip_list[i].major != major) continue; 32 32 memset(&db_skip_list[i], 0, sizeof(_DB_SKIP_LIST_)); 33 33 } … … 36 36 for (i=0; i < DB_SKIP_LIST_MAX; i++) 37 37 { 38 if (db_skip_list[i]. program_number != 0) continue;39 db_skip_list[i]. rf = rf;40 db_skip_list[i]. program_number = program_number;38 if (db_skip_list[i].major != 0) continue; 39 db_skip_list[i].minor = minor; 40 db_skip_list[i].major = major; 41 41 break; 42 42 } … … 45 45 // DeleteCDB(&db); 46 46 } 47 #endif // CHANNEL_EDIT_SUPPORT47 #endif // SUPPORT_CHANNEL_EDIT 48 48 49 49 bool DST_DB_PresentChMap() … … 126 126 if (nPos < 0) // ÇöÀçä³ÎÀÌ Ã¤³Î¸Ê¿¡ ¾ø´Â ä³ÎÀÎ °æ¿ì 127 127 { 128 int tempMajor,tempMinor; 129 tempMajor = DST_DB_GetMajor(rf,program_number); 130 tempMinor = DST_DB_GetMinor(rf,program_number); 128 131 if (bUp) 129 132 { 130 DST_UI_ChannelTune(db_channel_updn[0].rf, db_channel_updn[0].program_number); 133 nPos = 0; 134 for (i =0; i < DB_CHANNEL_UPDN_MAX; i++) 135 { 136 if (db_channel_updn[i].program_number == 0) continue; 137 138 if (db_channel_updn[i].major > tempMajor) 139 { 140 nPos = i; 141 break; 142 } 143 else if (db_channel_updn[i].major == tempMajor) 144 { 145 if (db_channel_updn[i].rf > rf) 146 { 147 nPos = i; 148 break; 149 } 150 else if (db_channel_updn[i].rf == rf) 151 { 152 if (db_channel_updn[i].minor > tempMinor) 153 { 154 nPos = i; 155 break; 156 } 157 } 158 } 159 } 131 160 } 132 161 else 133 162 { 134 DST_UI_ChannelTune(db_channel_updn[nCount-1].rf, db_channel_updn[nCount-1].program_number); 135 } 163 nPos = nCount-1; 164 for (i =0; i < DB_CHANNEL_UPDN_MAX; i++) 165 { 166 if (db_channel_updn[i].program_number == 0) continue; 167 168 if (db_channel_updn[i].major > tempMajor) 169 { 170 nPos = i; 171 break; 172 } 173 else if (db_channel_updn[i].major == tempMajor) 174 { 175 if (db_channel_updn[i].rf > rf) 176 { 177 nPos = i; 178 break; 179 } 180 else if (db_channel_updn[i].rf == rf) 181 { 182 if (db_channel_updn[i].minor > tempMinor) 183 { 184 nPos = i; 185 break; 186 } 187 } 188 } 189 } 190 } 191 DST_UI_ChannelTune(db_channel_updn[nPos].rf, db_channel_updn[nPos].program_number); 136 192 DBLock(false); 137 193 return; … … 312 368 } 313 369 370 // ¸Å´º¾ó ½ºÄµ ÈÄ ÇØ´ç RFÀÇ Ã¹¹øÂ° ä³Î·Î °£´Ù. 371 void DST_DB_TuneFirstChannelinRF(int rf) 372 { 373 int i; 374 if (DST_DB_PresentChMap() == false) return; 375 DBLock(true); 376 // RF ¹øÈ£ ÀÏÄ¡Çϴ ä³ÎÀ» ã´Â´Ù. 377 for (i=0; i < DB_CHANNEL_DB_MAX;i++) 378 { 379 if (db_channel_db[i].program_number == 0) continue; 380 if (db_channel_db[i].rf != rf) continue; 381 DST_UI_ChannelTune(rf, db_channel_db[i].program_number); 382 DBLock(false); 383 return; 384 } 385 DST_UI_ChannelTune(rf, 0); 386 DBLock(false); 387 } 388 389 314 390 int DST_DB_GetProgramNumber(int major, int minor) 315 391 { … … 388 464 memset(&db_cvct_sub, 0, sizeof(_DB_CVCT_SUB_)*DB_CVCT_SUB_MAX); 389 465 #endif 390 #if CHANNEL_EDIT_SUPPORT466 #if SUPPORT_CHANNEL_EDIT 391 467 memset(&db_skip_list, 0, sizeof(_DB_SKIP_LIST_)*DB_SKIP_LIST_MAX); 392 #endif // CHANNEL_EDIT_SUPPORT468 #endif // SUPPORT_CHANNEL_EDIT 393 469 CT_ChMapUpdate(); 394 470 DBLock(false); … … 428 504 static DS_U32 g_sync_request_time = 0; 429 505 static DS_U32 g_Sync_finish_time = 0; 506 static bool s_SyncNow = false; 430 507 431 508 void DST_DB_Sync() … … 434 511 } 435 512 513 void DST_DB_SyncNow() 514 { 515 DST_DB_Sync(); 516 s_SyncNow = true; 517 } 436 518 bool DST_DB_IsSync() 437 519 { … … 444 526 { 445 527 //T(); 446 DST_OS_Delay(1000); 447 if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 448 if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()/2) continue; 449 if (DST_DB_IsSync()) continue; 528 if(s_SyncNow == false) 529 { 530 DST_OS_Delay(1000); 531 if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 532 if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()*5) continue; 533 if (DST_DB_IsSync()) continue; 534 } 535 s_SyncNow = false; 536 450 537 //T(); 451 538 DS_U32 *version = (DS_U32 *)&strFlash[0]; … … 458 545 memcpy(&strFlash[nPos], &db_pmt, sizeof(_DB_PMT_) * DB_PMT_MAX); 459 546 nPos += sizeof(_DB_PMT_) * DB_PMT_MAX; 460 #if CHANNEL_EDIT_SUPPORT461 memcpy(&strFlash[nPos], &db_skip_list, sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX);462 nPos += sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX;463 #endif // CHANNEL_EDIT_SUPPORT464 547 memcpy(&strFlash[nPos], &db_tvct, sizeof(_DB_TVCT_) * DB_TVCT_MAX); 465 548 nPos += sizeof(_DB_TVCT_) * DB_TVCT_MAX; 466 549 memcpy(&strFlash[nPos], &db_tvct_sub, sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX); 467 550 nPos += sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX; 551 #if SUPPORT_CHANNEL_EDIT 552 memcpy(&strFlash[nPos], &db_skip_list, sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX); 553 nPos += sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX; 554 #endif // SUPPORT_CHANNEL_EDIT 468 555 *version = FLASH_VERSION; 469 556 *crc = DST_CRC32(&strFlash[8], g_nFlashDBSize-8); … … 483 570 g_nFlashDBSize += sizeof(_DB_PAT_) * DB_PAT_MAX; 484 571 g_nFlashDBSize += sizeof(_DB_PMT_) * DB_PMT_MAX; 485 #if CHANNEL_EDIT_SUPPORT 572 g_nFlashDBSize += sizeof(_DB_TVCT_) * DB_TVCT_MAX; 573 g_nFlashDBSize += sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX; 574 #if SUPPORT_CHANNEL_EDIT 486 575 g_nFlashDBSize += sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX; 487 576 #endif 488 g_nFlashDBSize += sizeof(_DB_TVCT_) * DB_TVCT_MAX; 489 g_nFlashDBSize += sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX; 577 490 578 // DST_Printf("nFlashDBSize4K = %d nFlashDBSize = %d\n", nFlashDBSize4K, (int)g_nFlashDBSize); 491 579 DS_U32 nFlashDBSize4K = ((g_nFlashDBSize+4096-1)/4096)*4096; … … 522 610 memcpy(&db_pmt, &strFlash[nPos], sizeof(_DB_PMT_) * DB_PMT_MAX); 523 611 nPos += sizeof(_DB_PMT_) * DB_PMT_MAX; 524 #if CHANNEL_EDIT_SUPPORT525 memcpy(&db_skip_list, &strFlash[nPos], sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX);526 nPos += sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX;527 #endif528 612 memcpy( &db_tvct, &strFlash[nPos], sizeof(_DB_TVCT_) * DB_TVCT_MAX); 529 613 nPos += sizeof(_DB_TVCT_) * DB_TVCT_MAX; 530 614 memcpy(&db_tvct_sub, &strFlash[nPos], sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX); 531 615 nPos += sizeof(_DB_TVCT_SUB_) * DB_TVCT_SUB_MAX; 616 #if SUPPORT_CHANNEL_EDIT 617 memcpy(&db_skip_list, &strFlash[nPos], sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX); 618 nPos += sizeof(_DB_SKIP_LIST_) * DB_SKIP_LIST_MAX; 619 #endif 532 620 int i; 533 621 for (i = 0; i < DB_CONFIG_MAX; i++) -
trunk/zasc/app_c/DST_DB.h
r26 r60 43 43 void DST_DB_TuneFirstChannel(); 44 44 45 // ¸Å´º¾ó ½ºÄµ ÈÄ ÇØ´ç RFÀÇ Ã¹¹øÂ° ä³Î·Î °£´Ù. 46 void DST_DB_TuneFirstChannelinRF(int rf); 47 45 48 int DST_DB_GetProgramNumber(int major, int minor); 46 49 … … 52 55 53 56 bool DST_DB_IsSync(); 57 58 void DST_DB_SyncNow(); 54 59 55 60 void DST_DB_Open(); … … 63 68 bool DST_DB_PresentMatchChannel(int rf, int major, int minor); 64 69 65 void DST_DB_SetSkipChannel(int rf, int program_number, bool bAdd);70 void DST_DB_SetSkipChannel(int major, int minor, bool bAdd); 66 71 67 72 DS_U32 DST_CRC32(DS_U8 *data, int len); -
trunk/zasc/app_c/DST_DataStrings.c
r47 r60 2267 2267 unsigned short pz_Edit_ADD[3][4]= 2268 2268 { 2269 // Ãß°¡2270 {0xC D94, 0xAC00, 0},2269 // ½Ãû 2270 {0xC2DC, 0xCCAD, 0}, 2271 2271 // ADD 2272 2272 {0x0041, 0x0044, 0x0044, 0}, -
trunk/zasc/app_c/DST_GlobalVariables.c
r10 r60 1 1 #include "DST_GlobalVariables.h" 2 3 #if SUPPORT_CHANNEL_EDIT 4 DS_U32 DST_g_ChannelEdit = 0; 5 #endif 2 6 3 7 bool DST_g_isAirOnly = 0; -
trunk/zasc/app_c/DST_GlobalVariables.h
r7 r60 3 3 4 4 #include "DST_Common.h" 5 6 #if SUPPORT_CHANNEL_EDIT 7 extern DS_U32 DST_g_ChannelEdit; // ¸Þ´º¿¡¼ ä³Î ÆíÁý ±â´É ¿©ºÎ¸¦ ÆÇ´ÜÇϱâ À§ÇÔ 8 #endif 5 9 6 10 extern bool DST_g_isAirOnly; -
trunk/zasc/app_c/DST_HostInterface.c
r41 r60 65 65 case 0xCAFE0072: g_KeyCode = VK_DISPLAY_MODE; break; // display mode hot key : r 66 66 case 0xCAFE0066: g_KeyCode = VK_CHANNEL_SEARCH; break; // channel searc hot key : f 67 case 0xCAFE0070: g_KeyCode = VK_PREV_MENU; break; // pre menu : p 67 68 #endif // DSTAR Űº¸µå »ç¿ë 68 69 -
trunk/zasc/app_c/DST_ISDBT_ChannelTask.c
r16 r60 742 742 { 743 743 if (db_channel_db[i].program_number == 0) continue; 744 #if CHANNEL_EDIT_SUPPORT744 #if SUPPORT_CHANNEL_EDIT 745 745 bool bSkip = false; 746 746 for (j=0; j < DB_SKIP_LIST_MAX; j++) 747 747 { 748 if (db_skip_list[j]. program_number == 0) continue;749 if (db_skip_list[j]. rf != db_channel_db[i].rf) continue;750 if (db_skip_list[j]. program_number != db_channel_db[i].program_number) continue;748 if (db_skip_list[j].major == 0) continue; 749 if (db_skip_list[j].minor != db_channel_db[i].minor) continue; 750 if (db_skip_list[j].major != db_channel_db[i].major) continue; 751 751 bSkip = true; 752 752 break; -
trunk/zasc/app_c/DST_Main.c
r59 r60 100 100 DST_CCManagerInit(); 101 101 DST_UI_SetVolume(DST_EEPROM_GetVolume()); 102 #if SUPPORT_CHANNEL_EDIT 103 DST_UI_SetChannelEditEnable(1); 104 #endif 102 105 while (1) 103 106 { -
trunk/zasc/app_c/DST_MemoryDB.c
r2 r60 10 10 #endif 11 11 12 #if CHANNEL_EDIT_SUPPORT12 #if SUPPORT_CHANNEL_EDIT 13 13 struct DB_SKIP_LIST db_skip_list[DB_SKIP_LIST_MAX]; 14 14 #endif … … 41 41 { NO_ETT , "ett"}, 42 42 #endif 43 #if CHANNEL_EDIT_SUPPORT44 { NO_SKIP_LIST , "skip_list"},45 #endif46 43 #if CVCT_SUPPORT 47 44 { NO_CVCT , "cvct"}, … … 50 47 { NO_TVCT , "tvct"}, 51 48 { NO_TVCT_SUB , "tvct_sub"}, 49 #if SUPPORT_CHANNEL_EDIT 50 { NO_SKIP_LIST , "skip_list"}, 51 #endif 52 52 { NO_CONFIG , "config"}, 53 53 { NO_CHANNEL_DB , "channel_db"}, -
trunk/zasc/app_c/DST_MemoryDB.h
r2 r60 15 15 NO_ETT, 16 16 #endif 17 #if CHANNEL_EDIT_SUPPORT18 NO_SKIP_LIST,19 #endif20 17 #if CVCT_SUPPORT 21 18 NO_CVCT, … … 24 21 NO_TVCT, 25 22 NO_TVCT_SUB, 23 #if SUPPORT_CHANNEL_EDIT 24 NO_SKIP_LIST, 25 #endif 26 26 NO_CONFIG, 27 27 NO_CHANNEL_DB, … … 128 128 #endif // EPG_SUPPORT 129 129 130 #if CHANNEL_EDIT_SUPPORT130 #if SUPPORT_CHANNEL_EDIT 131 131 ////////////////////////// SKIP_LIST /////////////////////////////// 132 132 #define DB_SKIP_LIST_MAX MAX_CHANNEL_NUMBER // Àüü ä³Î °¹¼ö … … 134 134 typedef struct DB_SKIP_LIST 135 135 { 136 int rf;137 int program_number;136 int major; 137 int minor; 138 138 }_DB_SKIP_LIST_; 139 139 -
trunk/zasc/app_c/DST_UserInterface.c
r2 r60 152 152 } 153 153 154 #if SUPPORT_CHANNEL_EDIT 155 void DST_UI_SetChannelEditEnable(DS_U32 ienable) 156 { 157 DST_g_ChannelEdit = ienable; 158 } 159 #endif 154 160 #if 0 155 161 ____EPG_UI___() -
trunk/zasc/app_c/DST_UserInterface.h
r2 r60 25 25 MN_AV_DISPLAY_MODE, 26 26 MN_AV_AUDIO_PREF, 27 #if SUPPORT_CHANNEL_EDIT 28 MN_CHANNEL_EDIT, 29 #endif 27 30 MN_AV_VI, 28 31 MN_CC_DISPLAY, … … 126 129 bool DST_UI_GetCCInfo(void); 127 130 131 #if SUPPORT_CHANNEL_EDIT 132 // ÇöÀç ä³Î ÆíÁý ¸ðµå È®ÀÎ 133 void DST_UI_SetChannelEditEnable(DS_U32 ienable); 134 135 #endif 136 128 137 #if 0 129 138 ____EPG_UI___() -
trunk/zasc/app_c/DST_WinAutoSearch.c
r43 r60 476 476 break; 477 477 case VK_CANCEL: 478 case VK_CHANNEL_SEARCH: 479 case VK_MENU: 478 case VK_PREV_MENU: 479 CAutoSearchWin_m_nState = 0; 480 CAutoSearchWin_bCanceled = true; 481 JST_Stop(); 482 CAutoSearchWin_ScanComplete(this); 483 this->Close(this); 484 break; 485 case VK_CHANNEL_SEARCH: 480 486 case VK_PREV: 481 487 case VK_PREV_CH: … … 484 490 JST_Stop(); 485 491 CAutoSearchWin_ScanComplete(this); 492 if (this->GetParentWinID(this)) DST_CreateWin(this->GetParentWinID(this), 0, 0, 0, 0, 0); 486 493 this->Close(this); 487 if(DST_GetWin(WIN_ERROR)) DST_CreateWin(WIN_CHANNEL_BANNER, WIN_NULL, BANNER_NORMAL ,0, 0, 0); 494 break; 495 496 case VK_MENU: 497 CAutoSearchWin_m_nState = 0; 498 CAutoSearchWin_bCanceled = true; 499 JST_Stop(); 500 CAutoSearchWin_ScanComplete(this); 501 DST_CreateWin(WIN_MAIN_MENU, WIN_NULL, 0 ,0, 0, 0); 502 this->Close(this); 488 503 break; 489 504 } -
trunk/zasc/app_c/DST_WinChannelEdit.c
r17 r60 1 #if CHANNEL_EDIT_SUPPORT2 3 1 #include "DST_WinManager.h" 4 2 #include "DST_ChannelTune.h" … … 9 7 #include "DST_DB.h" 10 8 #include "DST_MemoryDB.h" 9 10 #if SUPPORT_CHANNEL_EDIT 11 11 12 12 #define CE_LIST 5 … … 85 85 } 86 86 87 void CChannelEditWin_SetValues(int rf, DS_U16 sourceID, bool bAdd)88 { 89 DST_DB_SetSkipChannel( rf, sourceID, bAdd);87 void CChannelEditWin_SetValues(int minor, DS_U16 major, bool bAdd) 88 { 89 DST_DB_SetSkipChannel(major, minor, bAdd); 90 90 // DST_DB_MakeSkipChannel(); 91 91 } 92 92 93 bool CChannelEditWin_CompareValues(int rf, DS_U16 target)93 bool CChannelEditWin_CompareValues(int minor, DS_U16 major) 94 94 { 95 95 bool result = false; … … 97 97 for( i=0;i<DB_SKIP_LIST_MAX;i++) 98 98 { 99 if(db_skip_list[i]. rf == rf && db_skip_list[i].program_number == target)99 if(db_skip_list[i].minor == minor && db_skip_list[i].major == major) 100 100 result = true; 101 101 } … … 154 154 { 155 155 DS_U16 final[20]; 156 this->setFontStyle(this, 20,0xFF 8C8C8C,this->FontGetVerAlign(this),ALIGN_LEFT);156 this->setFontStyle(this, 20,0xFFDCDCDC,this->FontGetVerAlign(this),ALIGN_LEFT); 157 157 158 158 memset(final,0,sizeof(final)); … … 195 195 this->DrawImage(this, 417, 43+index*y_Multiplier, newcon2_gui_channeledit_button_check_empty, false); 196 196 197 if(!CChannelEditWin_CompareValues(CChannelEditWin_chMap[index+CChannelEditWin_g_nTop]. rf, CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].number))197 if(!CChannelEditWin_CompareValues(CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].minor, CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].major)) 198 198 this->DrawImage(this, 417, 43+index*y_Multiplier, newcon2_gui_channeledit_button_check, false); 199 199 else … … 201 201 if(CChannelEditWin_select == index+CChannelEditWin_g_nTop) 202 202 { 203 if(!CChannelEditWin_CompareValues(CChannelEditWin_chMap[index+CChannelEditWin_g_nTop]. rf,CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].number))203 if(!CChannelEditWin_CompareValues(CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].minor,CChannelEditWin_chMap[index+CChannelEditWin_g_nTop].major)) 204 204 this->DrawImage(this, 417, 43+index*y_Multiplier, newcon2_gui_channeledit_button_check_cursor, false); 205 205 else … … 263 263 { 264 264 case VK_MENU: 265 DST_CreateWin(WIN_MAIN_MENU, WIN_NULL, 0, 0, 0, 0); 266 this->Close(this); 267 break; 265 268 case VK_CANCEL: 269 case VK_PREV_MENU: 270 this->Close(this); 271 break; 266 272 case VK_PREV: 267 case VK_PREV_MENU:268 273 case VK_PREV_CH: 269 274 if (this->GetParentWinID(this)) DST_CreateWin(this->GetParentWinID(this), 0, 0, 0, 0, 0); … … 290 295 // break; 291 296 case VK_OK: 292 CChannelEditWin_SetValues(CChannelEditWin_chMap[CChannelEditWin_select]. rf , CChannelEditWin_chMap[CChannelEditWin_select].number, CChannelEditWin_CompareValues(CChannelEditWin_chMap[CChannelEditWin_select].rf, CChannelEditWin_chMap[CChannelEditWin_select].number)?false:true);297 CChannelEditWin_SetValues(CChannelEditWin_chMap[CChannelEditWin_select].minor , CChannelEditWin_chMap[CChannelEditWin_select].major, CChannelEditWin_CompareValues(CChannelEditWin_chMap[CChannelEditWin_select].minor, CChannelEditWin_chMap[CChannelEditWin_select].major)?false:true); 293 298 CChannelEditWin_Draw(this); 294 299 -
trunk/zasc/app_c/DST_WinDebugSQL.c
r2 r60 609 609 break; 610 610 #endif 611 #if CHANNEL_EDIT_SUPPORT611 #if SUPPORT_CHANNEL_EDIT 612 612 case NO_SKIP_LIST: 613 613 CDebugSQLSubWin_RowItemNum = 0; 614 614 for(i = 0; i< DB_SKIP_LIST_MAX ; i++) 615 615 { 616 if(db_skip_list[i]. rf == 0 && db_skip_list[i].program_number == 0 ) continue;616 if(db_skip_list[i].minor == 0 && db_skip_list[i].major == 0 ) continue; 617 617 CDebugSQLSubWin_RowItemNum++; 618 618 } … … 621 621 CDebugSQLSubWin_attributes = (ATTRIBUTES *)DST_OS_Calloc(sizeof(ATTRIBUTES), CDebugSQLSubWin_ColItemNum); 622 622 623 CDebugSQLSubWin_attributes[0].name = (char *)" rf";623 CDebugSQLSubWin_attributes[0].name = (char *)"Minor"; 624 624 CDebugSQLSubWin_attributes[0].type = 1; 625 CDebugSQLSubWin_attributes[1].name = (char *)" program_number";625 CDebugSQLSubWin_attributes[1].name = (char *)"Major"; 626 626 CDebugSQLSubWin_attributes[1].type = 1; 627 627 … … 635 635 switch(j) 636 636 { 637 case 0: sprintf(tmp_str,"%d",db_skip_list[i]. rf); break;638 case 1: sprintf(tmp_str,"%d",db_skip_list[i]. program_number); break;637 case 0: sprintf(tmp_str,"%d",db_skip_list[i].minor); break; 638 case 1: sprintf(tmp_str,"%d",db_skip_list[i].major); break; 639 639 default: break; 640 640 -
trunk/zasc/app_c/DST_WinFactory.c
r55 r60 64 64 DST_EEPROM_SetMaxRF(-1); // DST_EEPROM_SetNeedReset¿¡¼ ÃʱâÈ ÇÏÁö ¾Ê±â¶§¹®¿¡ °Á¦·Î ±âº»°ªÀ» ½áÁØ´Ù. 65 65 DST_EEPROM_SetNeedReset(1); 66 DST_DB_Sync ();66 DST_DB_SyncNow(); 67 67 // ä³Î Æ©´× 68 68 -
trunk/zasc/app_c/DST_WinFactoryReset.c
r17 r60 34 34 DST_Printf("winParentID : %d , msg : %d\n",CFactoryResetWin_winParentID,CFactoryResetWin_msg); 35 35 DST_EEPROM_SetNeedReset(1); 36 DST_DB_Sync ();36 DST_DB_SyncNow(); 37 37 38 38 } … … 250 250 this->Close(this); 251 251 break; 252 case VK_MENU:253 252 case VK_CANCEL: 254 253 case VK_PREV_MENU: 254 this->Close(this); 255 break; 256 case VK_MENU: 257 DST_CreateWin(WIN_MAIN_MENU, WIN_NULL, 0, 0, 0, 0); 255 258 this->Close(this); 256 259 break; -
trunk/zasc/app_c/DST_WinFrequencySetting.c
r42 r60 53 53 { 54 54 DST_EEPROM_SetNeedReset(1); 55 DST_DB_Sync();56 55 DST_Reset(__func__); // âÀÌ ´ÝÈ÷¸é¼ ÀçºÎÆÃ 57 56 } -
trunk/zasc/app_c/DST_WinMainMenu.c
r17 r60 24 24 { MN_AV_DISPLAY_MODE, true }, 25 25 { MN_AV_AUDIO_PREF, true }, 26 #if SUPPORT_CHANNEL_EDIT 27 { MN_CHANNEL_EDIT, true }, 28 #endif 26 29 { MN_AV_VI, true }, 27 30 { MN_CC_DISPLAY, true }, … … 60 63 void CMainMenu_GetValuse(DS_U16 menu, DS_U16 *value); 61 64 65 #if SUPPORT_CHANNEL_EDIT 66 void CMainMenu_ChannelEdit_Change_Enable(); 67 #endif 68 62 69 //public: 63 70 // CZASMainMenu(SWinEventMsg event):CWindow(event) … … 121 128 case MN_AV_DISPLAY_MODE: return CMainMenu_getAspectRatioIndex(); 122 129 case MN_AV_AUDIO_PREF: return 2; 130 #if SUPPORT_CHANNEL_EDIT 131 case MN_CHANNEL_EDIT: return 1; 132 #endif 123 133 case MN_AV_VI: return 2; 124 134 case MN_CC_DISPLAY: return 2; … … 154 164 } 155 165 166 #if SUPPORT_CHANNEL_EDIT 167 void CMainMenu_ChannelEdit_Change_Enable() 168 { 169 int i = 0; 170 for (i = 0; i < MN_MAX_NUM; i++) 171 { 172 if (CMainMenu_tv_menu[i].menu == MN_CHANNEL_EDIT) 173 { 174 CMainMenu_tv_menu[i].bEnable = DST_g_ChannelEdit; 175 break; 176 } 177 } 178 } 179 #endif 180 181 156 182 void CMainMenu_InitValues() 157 183 { 158 184 CMainMenu_MenuIdx = 0;/*DST_UI_GetSource();*/ 159 185 186 #if SUPPORT_CHANNEL_EDIT 187 CMainMenu_ChannelEdit_Change_Enable(); 188 #endif 189 160 190 CMainMenu_mainItemNum = CMainMenu_GetCount(); 161 191 CMainMenu_g_nTop = MenuTop[CMainMenu_MenuIdx]; … … 189 219 case MN_AV_DISPLAY_MODE: *value = DST_UI_GetAspect(); break; 190 220 case MN_AV_AUDIO_PREF: *value = DST_UI_GetMTS(); break; 221 #if SUPPORT_CHANNEL_EDIT 222 case MN_CHANNEL_EDIT: *value = 0; break; 223 #endif 191 224 case MN_AV_VI: *value = DST_UI_GetVI(); break; 192 225 case MN_CC_DISPLAY: *value = DST_EEPROM_GetCC(); break; … … 208 241 case MN_AV_DISPLAY_MODE: DST_UI_SetAspect(value); break; 209 242 case MN_AV_AUDIO_PREF: DST_UI_SetMTS(value); break; 243 #if SUPPORT_CHANNEL_EDIT 244 case MN_CHANNEL_EDIT: break; 245 #endif 210 246 case MN_AV_VI: DST_UI_SetVI(value); break; 211 247 case MN_CC_DISPLAY: DST_UI_SetCloseCaption(value); break; … … 232 268 case MN_AV_DISPLAY_MODE: return pz_Sub_DisplayMode[OSD_Lang]; break; 233 269 case MN_AV_AUDIO_PREF: return pz_Sub_AudioPref[OSD_Lang]; break; 270 #if SUPPORT_CHANNEL_EDIT 271 case MN_CHANNEL_EDIT: return pz_Sub_ChannelEdit_E1[OSD_Lang]; break; 272 #endif 234 273 case MN_AV_VI: return pz_Sub_DVS[OSD_Lang]; break; 235 274 case MN_CC_DISPLAY: return pz_Sub_CC[OSD_Lang]; break; … … 321 360 case MN_FACTORY_RESET: 322 361 case MN_STB_INFO: 362 #if SUPPORT_CHANNEL_EDIT 363 case MN_CHANNEL_EDIT: 364 #endif 323 365 switch (nPos) 324 366 { … … 474 516 case MN_FACTORY_RESET: 475 517 case MN_STB_INFO: 518 #if SUPPORT_CHANNEL_EDIT 519 case MN_CHANNEL_EDIT: 520 #endif 476 521 break; 477 522 default: … … 557 602 DST_CreateWin(WIN_STB_INFO, WIN_NULL, 0, 0, 0, 0); 558 603 break; 604 #if SUPPORT_CHANNEL_EDIT 605 case MN_CHANNEL_EDIT: 606 DST_CreateWin(WIN_CHANNEL_LIST, WIN_MAIN_MENU, 0, 0, 0, 0); 607 this->Close(this); 608 break; 609 #endif 610 559 611 default: 560 612 break; -
trunk/zasc/app_c/DST_WinManagerTask.c
r17 r60 19 19 void DST_CreateSignalMeterWin(SWinEventMsg event); 20 20 21 #if CHANNEL_EDIT_SUPPORT21 #if SUPPORT_CHANNEL_EDIT 22 22 void DST_CreateChannelEditWin(SWinEventMsg event); 23 23 #endif … … 175 175 #endif 176 176 177 #if CHANNEL_EDIT_SUPPORT177 #if SUPPORT_CHANNEL_EDIT 178 178 case WIN_CHANNEL_LIST: 179 179 DST_CreateChannelEditWin(event); // C ¾ð¾î Æ÷ÆÃ ÇÊ¿ä -
trunk/zasc/app_c/DST_WinManualSearch.c
r26 r60 56 56 void CManualSearchWin_Destructor(CWindow *this) 57 57 { 58 DST_ UI_ChannelTune(CManualSearchWin_m_nRF, 0);58 DST_DB_TuneFirstChannelinRF(CManualSearchWin_m_nRF); 59 59 if(DST_GetWin(WIN_ERROR)) DST_CreateWin(WIN_CHANNEL_BANNER, WIN_NULL, BANNER_NORMAL ,0, 0, 0); 60 60 } … … 286 286 break; 287 287 case VK_CANCEL: 288 case VK_PREV_MENU: 289 this->Close(this); 290 break; 291 case VK_PREV: 292 case VK_PREV_CH: 293 if (this->GetParentWinID(this)) DST_CreateWin(this->GetParentWinID(this), 0, 0, 0, 0, 0); 294 this->Close(this); 295 break; 288 296 case VK_MENU: 289 297 this->Close(this); 290 if(DST_GetWin(WIN_ERROR)) DST_CreateWin(WIN_CHANNEL_BANNER, WIN_NULL, BANNER_NORMAL,0, 0, 0);298 DST_CreateWin(WIN_MAIN_MENU, WIN_NULL, 0 ,0, 0, 0); 291 299 break; 292 300 } -
trunk/zasc/app_c/DST_WinSTBInfo.c
r17 r60 144 144 switch (key) 145 145 { 146 case VK_MENU: 146 147 147 case VK_CANCEL: 148 148 case VK_PREV_MENU: … … 151 151 if(DST_GetWin(WIN_MAIN_MENU)) DST_CloseWin(WIN_MAIN_MENU); 152 152 break; 153 153 case VK_MENU: 154 154 case VK_OK: 155 155 case VK_PREV: -
trunk/zasc/app_c/MayaMultilingual.xml
r47 r60 11 11 <Created>2010-07-27T06:16:38Z</Created> 12 12 <LastSaved>2014-03-04T02:21:11Z</LastSaved> 13 <Version>11. 9999</Version>13 <Version>11.5606</Version> 14 14 </DocumentProperties> 15 15 <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"> … … 17 17 </OfficeDocumentSettings> 18 18 <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> 19 <WindowHeight>819 6</WindowHeight>20 <WindowWidth>1474 8</WindowWidth>21 <WindowTopX>7 2</WindowTopX>22 <WindowTopY>118 8</WindowTopY>19 <WindowHeight>8190</WindowHeight> 20 <WindowWidth>14745</WindowWidth> 21 <WindowTopX>75</WindowTopX> 22 <WindowTopY>1185</WindowTopY> 23 23 <ProtectStructure>False</ProtectStructure> 24 24 <ProtectWindows>False</ProtectWindows> … … 90 90 x:FullRows="1" ss:StyleID="s22" ss:DefaultColumnWidth="60" 91 91 ss:DefaultRowHeight="13.5"> 92 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="199. 79999999999998"/>92 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="199.5"/> 93 93 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="267"/> 94 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="289. 8"/>95 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="264. 59999999999997"/>94 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="289.5"/> 95 <Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="264.75"/> 96 96 <Row ss:AutoFitHeight="0" ss:Height="15"> 97 97 <Cell ss:MergeAcross="3" ss:StyleID="s25"><Data ss:Type="String">Language</Data></Cell> … … 1464 1464 <Row ss:AutoFitHeight="0"> 1465 1465 <Cell ss:StyleID="s26"><Data ss:Type="String">pz_Edit_ADD</Data></Cell> 1466 <Cell ss:StyleID="s26"><Data ss:Type="String"> 추가</Data></Cell>1466 <Cell ss:StyleID="s26"><Data ss:Type="String">시청</Data></Cell> 1467 1467 <Cell ss:StyleID="s26"><Data ss:Type="String">ADD</Data></Cell> 1468 1468 <Cell ss:StyleID="s26"><Data ss:Type="String">ADD</Data></Cell> … … 1970 1970 </Print> 1971 1971 <Selected/> 1972 <TopRowVisible> 185</TopRowVisible>1972 <TopRowVisible>215</TopRowVisible> 1973 1973 <Panes> 1974 1974 <Pane> 1975 1975 <Number>3</Number> 1976 <ActiveRow>2 04</ActiveRow>1976 <ActiveRow>236</ActiveRow> 1977 1977 <ActiveCol>1</ActiveCol> 1978 1978 </Pane>
Note: See TracChangeset
for help on using the changeset viewer.
