Changeset 267
- Timestamp:
- Feb 24, 2009, 3:52:22 PM (12 years ago)
- Location:
- trunk/Lucide
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/BIN/Lucide.lng
r243 r267 17 17 MENU_CLEAR_LIST=~Clear list 18 18 MENU_SAVE_AS=~Save As... 19 MENU_CLOSE=~Close 19 20 # MENU_PAGE_SETUP: to delete 20 21 MENU_PAGE_SETUP=Pa~ge setup... -
trunk/Lucide/BIN/Lucide_ru.lng
r243 r267 14 14 MENU_NEXT=«¥€ãîéš©\tShift+PgDn 15 15 MENU_LAST=®á«¥€š©\tShift+End 16 MENU_RECENT_FILES=¥~€ ¢š¥ ä ©«ë 17 MENU_CLEAR_LIST=~çšáâšâì 16 18 MENU_SAVE_AS=~®åà šâì ª ª... 19 MENU_CLOSE=~ ªàëâì 17 20 # MENU_PAGE_SETUP: to delete 18 21 MENU_PAGE_SETUP= ~à ¬¥âàë áâà šæë... -
trunk/Lucide/SOURCE/gui/Lucide.rc
r246 r267 40 40 END 41 41 MENUITEM "MENU_SAVE_AS", CM_SAVEAS 42 MENUITEM "MENU_CLOSE", CM_CLOSE 42 43 MENUITEM SEPARATOR 43 44 MENUITEM "MENU_PRINT", CM_PRINT -
trunk/Lucide/SOURCE/gui/Lucide_res.H
r243 r267 63 63 #define CM_OPEN 102 64 64 #define CM_SAVEAS 103 65 #define CM_PRINT 104 66 #define CM_PLUGINSLIST 105 67 #define CM_EXIT 106 65 #define CM_CLOSE 104 66 #define CM_PRINT 105 67 #define CM_PLUGINSLIST 106 68 #define CM_EXIT 107 68 69 69 70 #define CM_FILEFIRST 151 -
trunk/Lucide/SOURCE/gui/lucide.cpp
r238 r267 263 263 264 264 WinEnableMenuItem( hWndMenu, CM_SAVEAS, FALSE ); 265 WinEnableMenuItem( hWndMenu, CM_CLOSE, FALSE ); 265 266 WinEnableMenuItem( hWndMenu, CM_PRINT, FALSE ); 266 267 WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_PRINT), (MPARAM)FALSE ); … … 313 314 WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_PRINT), (MPARAM)TRUE ); 314 315 WinEnableMenuItem( hWndMenu, CM_SAVEAS, doc->isSaveable( ev ) ); 316 WinEnableMenuItem( hWndMenu, CM_CLOSE, TRUE ); 315 317 setOfPages( doc->getPageCount( ev ) ); 316 318 WinEnableMenuItem( hWndMenu, CM_FONTSINFO, doc->isHaveFontInfo( ev ) ); … … 365 367 void Lucide::closeDocument() 366 368 { 367 docViewer->close(); 368 delete doc; 369 doc = NULL; 370 WinSetWindowText( hWndFrame, title ); 371 checkMenus( false ); 369 if ( doc != NULL ) { 370 docViewer->close(); 371 delete doc; 372 doc = NULL; 373 WinSetWindowText( hWndFrame, title ); 374 checkMenus( false ); 375 } 372 376 373 377 if ( thumbnailData != NULL ) { … … 961 965 Lucide::saveDocumentAs(); 962 966 return (MRESULT)FALSE; 967 968 case CM_CLOSE: 969 Lucide::closeDocument(); 970 return (MRESULT)FALSE; 963 971 964 972 case CM_PRINT:
Note: See TracChangeset
for help on using the changeset viewer.