Changeset 229 for trunk/Lucide


Ignore:
Timestamp:
Aug 9, 2007, 7:07:54 PM (14 years ago)
Author:
Eugene Romanenko
Message:

List of recent files

Location:
trunk/Lucide
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/BIN/Lucide.lng

    r224 r229  
    99MENU_NEW_WINDOW=~New window
    1010MENU_OPEN=~Open...\tCtrl+O
     11MENU_NEXT_PREVIOUS=Next/Pre~vious
     12MENU_FIRST=First\tShift+Home
     13MENU_PREVIOUS=Previous\tShift+PgUp
     14MENU_NEXT=Next\tShift+PgDn
     15MENU_LAST=Last\tShift+End
     16MENU_RECENT_FILES=~Recent files
     17MENU_CLEAR_LIST=~Clear list
    1118MENU_SAVE_AS=~Save As...
    1219# MENU_PAGE_SETUP: to delete
     
    4552MENU_HELP=~Help
    4653MENU_PRODUCT_INFORMATION=~Product Information
    47 MENU_NEXT_PREVIOUS=Next/Pre~vious
    48 MENU_FIRST=First\tShift+Home
    49 MENU_PREVIOUS=Previous\tShift+PgUp
    50 MENU_NEXT=Next\tShift+PgDn
    51 MENU_LAST=Last\tShift+End
    5254
    5355#
  • trunk/Lucide/BIN/Lucide_ru.lng

    r224 r229  
    99MENU_NEW_WINDOW=~®¢®¥ ®ª­®
    1010MENU_OPEN=~Žâªàëâì...\tCtrl+O
     11MENU_NEXT_PREVIOUS=‘«¥€ãîéš©/~ीë€ãéš©
     12MENU_FIRST=¥à¢ë©\tShift+Home
     13MENU_PREVIOUS=à¥€ë€ãéš©\tShift+PgUp
     14MENU_NEXT=‘«¥€ãîéš©\tShift+PgDn
     15MENU_LAST=®á«¥€­š©\tShift+End
    1116MENU_SAVE_AS=~‘®åà ­šâì ª ª...
    1217# MENU_PAGE_SETUP: to delete
     
    4550MENU_HELP=~‘¯à ¢ª 
    4651MENU_PRODUCT_INFORMATION=~Ž ¯à®£à ¬¬¥
    47 MENU_NEXT_PREVIOUS=‘«¥€ãîéš©/~ीë€ãéš©
    48 MENU_FIRST=¥à¢ë©\tShift+Home
    49 MENU_PREVIOUS=à¥€ë€ãéš©\tShift+PgUp
    50 MENU_NEXT=‘«¥€ãîéš©\tShift+PgDn
    51 MENU_LAST=®á«¥€­š©\tShift+End
    5252
    5353#
  • trunk/Lucide/SOURCE/gui/Lucide.rc

    r224 r229  
    3535            MENUITEM "MENU_NEXT", CM_FILENEXT
    3636            MENUITEM "MENU_LAST", CM_FILELAST
     37        END
     38        SUBMENU "MENU_RECENT_FILES", CM_RECENT
     39        BEGIN
    3740        END
    3841        MENUITEM "MENU_SAVE_AS", CM_SAVEAS
  • trunk/Lucide/SOURCE/gui/Lucide_res.H

    r222 r229  
    108108#define CM_SWITCHWINDOW 703
    109109
     110#define CM_RECENT       1000
     111#define CM_RECENTCLEAR  1099
     112
    110113#define TBID_PAGENUM    1
    111114#define TBID_OFPAGES    2
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r222 r229  
    6060#include "docViewer.h"
    6161#include "indexWindow.h"
     62#include "recent.h"
    6263#include "lusettings.h"
    6364#include "luutils.h"
     
    9798FindDlg        *findDlg   = NULL;
    9899LuSettings     *settings  = NULL;
     100RecentFiles    *recent    = NULL;
    99101char           *title     = NULL;
    100102
     
    448450                    WinSetWindowText( hWndFrame, t );
    449451                    delete t;
     452                    recent->addFile( docFullName );
    450453                    setDocument( doc );
    451454                }
     
    560563
    561564    char *p = strtok( exts, ";" );
    562     while( p != NULL )
     565    while ( p != NULL )
    563566    {
    564567        readMask( p );
     
    836839void Lucide::gotoFile( FileList file )
    837840{
     841    if ( fileList.size() == 0 ) {
     842        return;
     843    }
     844
    838845    if ( file == ListFirst ) {
    839846        fileListIterator = fileList.begin();
     
    901908                    return (MRESULT)FALSE;
    902909
     910                case CM_FILEFIRST:
     911                    Lucide::gotoFile( ListFirst );
     912                    return (MRESULT)FALSE;
     913
     914                case CM_FILEPREVIOUS:
     915                    Lucide::gotoFile( ListPrevious );
     916                    return (MRESULT)FALSE;
     917
     918                case CM_FILENEXT:
     919                    Lucide::gotoFile( ListNext );
     920                    return (MRESULT)FALSE;
     921
     922                case CM_FILELAST:
     923                    Lucide::gotoFile( ListLast );
     924                    return (MRESULT)FALSE;
     925
     926                case CM_RECENT + 1:
     927                case CM_RECENT + 2:
     928                case CM_RECENT + 3:
     929                case CM_RECENT + 4:
     930                case CM_RECENT + 5:
     931                case CM_RECENT + 6:
     932                case CM_RECENT + 7:
     933                case CM_RECENT + 8:
     934                case CM_RECENT + 9:
     935                {
     936                    std::string f = recent->getFile( SHORT1FROMMP(mp1) );
     937                    Lucide::loadDocument( f.c_str() );
     938                    return (MRESULT)FALSE;
     939                }
     940
     941                case CM_RECENTCLEAR:
     942                    recent->clear();
     943                    return (MRESULT)FALSE;
     944
    903945                case CM_SAVEAS:
    904946                    Lucide::saveDocumentAs();
    905                     return (MRESULT)FALSE;
    906 
    907                 case CM_FILEFIRST:
    908                     Lucide::gotoFile( ListFirst );
    909                     return (MRESULT)FALSE;
    910 
    911                 case CM_FILEPREVIOUS:
    912                     Lucide::gotoFile( ListPrevious );
    913                     return (MRESULT)FALSE;
    914 
    915                 case CM_FILENEXT:
    916                     Lucide::gotoFile( ListNext );
    917                     return (MRESULT)FALSE;
    918 
    919                 case CM_FILELAST:
    920                     Lucide::gotoFile( ListLast );
    921947                    return (MRESULT)FALSE;
    922948
     
    11801206                MPFROMSHORT( DEFAULT_PICTSIZE + TOOLBAR_HEIGHT_ADD ), MPVOID );
    11811207
    1182     findDlg = new FindDlg( hWndFrame );
    11831208    Lucide::checkMenus();
    11841209    Lucide::setPageLayout( settings->layout );
    11851210    Lucide::setZoom( settings->zoom );
     1211
     1212    findDlg = new FindDlg( hWndFrame );
     1213    recent  = new RecentFiles( hWndMenu );
    11861214
    11871215    // ®ª § âì ®ª­® ¯à®£à ¬¬ë
     
    12181246    WinDestroyWindow( hWndFrame );
    12191247
     1248    recent->save();
     1249
    12201250    Lucide::closeDocument();
    12211251    delete docViewer;
     
    12261256
    12271257    delete findDlg;
     1258    delete recent;
    12281259    delete title;
    12291260    delete settings;
  • trunk/Lucide/SOURCE/gui/makefile

    r227 r229  
    3838       aboutDlg.obj settingsDlg.obj lusettings.obj printDlg.obj \
    3939       print.obj stbrowser.obj pipemon.obj lucidethumbs.obj \
    40        passwordDlg.obj
     40       passwordDlg.obj recent.obj
    4141
    4242lucide.dll: $(OBJS) lucide.res
     
    7373file $(OBJDIR)\lucidethumbs.obj
    7474file $(OBJDIR)\passwordDlg.obj
     75file $(OBJDIR)\recent.obj
    7576name $(EXEDIR)\lucide
    7677lib ..\plugins\ludoc\ludoc
     
    135136stbrowser.obj:      stbrowser.c
    136137passwordDlg.obj:    passwordDlg.cpp
     138recent.obj:         recent.cpp
    137139lcd.obj:            lcd.c               makefile
    138140
  • trunk/Lucide/SOURCE/gui/messages.cpp

    r184 r229  
    3535#include "messages.h"
    3636
     37// Dynamic menu items
     38extern const char *MENU_CLEAR_LIST = "MENU_CLEAR_LIST";
    3739
    3840// Toolbar hints
  • trunk/Lucide/SOURCE/gui/messages.h

    r184 r229  
    3636#define __MESSAGES_H
    3737
     38
     39// Dynamic menu items
     40extern const char *MENU_CLEAR_LIST;
    3841
    3942// Toolbar hints
  • trunk/Lucide/SOURCE/gui/pluginman.cpp

    r217 r229  
    309309        char *tmpexts = newstrdup( pi->extensions.c_str() );
    310310        char *p = strtok( tmpexts, ";" );
    311         while( p != NULL ) {
     311        while ( p != NULL ) {
    312312            cRet += "*.";
    313313            cRet += p;
  • trunk/Lucide/changelog

    r225 r229  
    22  - JPG plugin: added support for quality image scaling. 
    33  - If the filename does not have an extension or the extension is unknown,
    4     it will check file data to determine a suitable plugin (closed
     4    Lucide will check file data to determine a suitable plugin (closed
    55    ticket #43).
    66  - Menuitems and hotkeys to subsequently load supported files in same
    77    directory.
     8  - List of recent files.
    89  - Hotkeys (Ctrl+0/1/2) for predefined zoom levels.
    910  - UClip package is optional now.
Note: See TracChangeset for help on using the changeset viewer.