Changeset 523 for trunk


Ignore:
Timestamp:
Jul 31, 2016, 9:23:16 PM (5 years ago)
Author:
Gregg Young
Message:

Add reverse print option dialog hotkey and menu improvements Tickets[120][212][264][275]

Location:
trunk/Lucide
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/Lucide.rc

    r460 r523  
    106106    "O", CM_OPEN, CONTROL
    107107    "o", CM_OPEN, CONTROL
     108    "a", CM_SAVEAS, CONTROL
     109    "A", CM_SAVEAS, CONTROL
    108110    "P", CM_PRINT, CONTROL
    109111    "p", CM_PRINT, CONTROL
     
    125127    "I", CM_DOCINFO, CONTROL
    126128    "i", CM_DOCINFO, CONTROL
     129    VK_F9, CM_NAVPANE, VIRTUALKEY
    127130    VK_F11, CM_FULLSCREEN, VIRTUALKEY
    128131    VK_F5, CM_PRESENTATION, VIRTUALKEY
  • trunk/Lucide/gui/Lucide_res.H

    r450 r523  
    179179#define IDC_MBOTTOM                     33
    180180#define IDC_SELECTED_FORM       34
     181#define IDC_REVERSEPRINT        35
    181182
    182183#define IDD_PASSWORD        1009
  • trunk/Lucide/gui/dialogs.rc

    r451 r523  
    152152                CONTROL "PD_PRINT_RANGE_AND_COPIES", -1, 2, 140, 253, 55, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    153153                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    154                 CONTROL "PD_RANGE_ALL", IDC_RANGEALL, 9, 177, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     154                CONTROL "PD_RANGE_ALL", IDC_RANGEALL, 9, 177, 40, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     155                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     156                CONTROL "PD_REVESE_PRINT", IDC_REVERSEPRINT, 80, 177, 90, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_TABSTOP
    155157                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    156158                CONTROL "PD_RANGE_CURRENT_PAGE", IDC_RANGECURRENT, 9, 167, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
     
    166168                CONTROL "", IDC_PGTO, 208, 158, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
    167169                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    168                 CONTROL "PD_NUMBER_OF_COPIES", -1, 120, 178, 85, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     170                CONTROL "PD_NUMBER_OF_COPIES", -1, 150, 178, 75, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    169171                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    170172                CONTROL "", IDC_COPIES, 208, 178, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
  • trunk/Lucide/gui/printDlg.cpp

    r476 r523  
    560560               break;
    561561            }
    562 
     562            // Reverse grayed for single page documents
     563            WinEnableControl( hwnd, IDC_REVERSEPRINT,
     564                                         _this->doc->getPageCount( ev ) != 1 );
    563565            // ignore margins
    564566            buttonctl = 0;
     
    637639                case IDC_RANGECURRENT:
    638640                case IDC_RANGEPAGES:
     641                case IDC_PGFROM:
     642                case IDC_PGTO:
    639643                {
    640644                    BOOL en = WinQueryButtonCheckstate( hwnd, IDC_RANGEPAGES );
     
    643647                    WinEnableControl( hwnd, IDC_LABELTO, en );
    644648                    WinEnableControl( hwnd, IDC_PGTO, en );
     649                    if (WinQueryButtonCheckstate( hwnd, IDC_RANGECURRENT ))
     650                        WinEnableControl( hwnd, IDC_REVERSEPRINT, FALSE );
     651                    else if (_this->doc->getPageCount( ev ) != 1)
     652                        WinEnableControl( hwnd, IDC_REVERSEPRINT, TRUE );
     653                    if (WinQueryButtonCheckstate( hwnd, IDC_RANGEPAGES ))
     654                    {
     655                        LONG tmpVal = 0, tmpVal2 = 0 ;
     656                        WinSendDlgItemMsg( hwnd, IDC_PGFROM, SPBM_QUERYVALUE,
     657                                          MPFROMP( &tmpVal ),
     658                                          MPFROM2SHORT( 0, SPBQ_UPDATEIFVALID ) );
     659                        WinSendDlgItemMsg( hwnd, IDC_PGTO, SPBM_QUERYVALUE,
     660                                          MPFROMP( &tmpVal2 ),
     661                                          MPFROM2SHORT( 0, SPBQ_UPDATEIFVALID ) );
     662                        if ( tmpVal != tmpVal2 )
     663                            WinEnableControl( hwnd, IDC_REVERSEPRINT, TRUE );
     664                        else
     665                            WinEnableControl( hwnd, IDC_REVERSEPRINT, FALSE );
     666                    }
    645667                }
    646668                break;
     
    757779                        }
    758780
     781                        if ( WinQueryButtonCheckstate( hwnd, IDC_REVERSEPRINT ) )
     782                        {
     783                            LONG tmpVal = _this->psetup->pgfrom;
     784                            _this->psetup->pgfrom = _this->psetup->pgto;
     785                            _this->psetup->pgto = tmpVal;
     786                        }
    759787                        // write ini pagerange
    760788                        PrfWriteProfileString(HINI_USERPROFILE, appName, PageRange, itoa(iniint, buf, 10));
  • trunk/Lucide/lng/Lucide.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Recent files
    1717MENU_CLEAR_LIST=~Clear list
    18 MENU_SAVE_AS=~Save As...
     18MENU_SAVE_AS=~Save as...\tCtrl+A
    1919MENU_CLOSE=~Close
    2020# MENU_PAGE_SETUP: to delete
     
    4848MENU_FONTS_INFO=Fonts ~info...
    4949MENU_WINDOW=~Window
    50 MENU_SHOW_NAV_PANE=~Show navigation pane
     50MENU_SHOW_NAV_PANE=~Show navigation pane\tF9
    5151MENU_FULLSCREEN=~Full screen\tF11
    5252MENU_PRESENTATION=~Presentation\tF5
     
    121121FONTINFO_TYPE=Type
    122122FONTINFO_EMBEDDED=Embedded?
     123FONTINFO_SUBNAME=Substitute Font
    123124# Embedded types
    124125FONTINFO_EMBED_NOT_EMBEDDED=Not embedded
     
    200201PD_PRINT_RANGE_AND_COPIES=Print ~range and copies
    201202PD_RANGE_ALL=~All
     203PD_REVESE_PRINT=~Reverse
    202204PD_RANGE_CURRENT_PAGE=C~urrent page
    203205PD_RANGE_PAGES=Pa~ges
    204206PD_FROM=~From
    205207PD_TO=~To
    206 PD_NUMBER_OF_COPIES=Number of ~copies
     208PD_NUMBER_OF_COPIES=Number of copi~es
    207209PD_RANGE_EVEN_ODD_LABEL=Print range
    208210PD_RANGE_EVEN_ODD=Even and Odd pages
     
    211213PD_PRINT_TYPE=Print type
    212214PD_TYPE_POSTSCRIPT=Post~script
    213 PD_PRINT_TO_FILE=Print to file
     215PD_PRINT_TO_FILE=Print to ~file
    214216PD_TYPE_ASIMAGE=As ~image
    215217PD_HIGHER_IMAGE_QUALITY=~Higher image quality (slower and require more memory)
    216218PD_PAGE_ORIENTATION=Page orientation
    217 PD_PORTRAIT=Portrait
    218 PD_LANDSCAPE=Landscape
     219PD_PORTRAIT=P~ortrait
     220PD_LANDSCAPE=~Landscape
    219221PD_MARGINS=Margins (mm)
    220 PD_IGNORE_PRINTER_MARGINS=Ignore printer margins
     222PD_IGNORE_PRINTER_MARGINS=Ignore printer ~margins
    221223PD_MLEFT=Left
    222224PD_MRIGHT=Right
     
    225227PD_SELECTED_FORM=Selected form
    226228PD_BTNPRINT=~Print
    227 PD_BTNCANCEL=Cancel
     229PD_BTNCANCEL=~Cancel
    228230PD_WRONG_MARGINS=Wrong margins!
    229231# other 'print'-related messages
  • trunk/Lucide/lng/Lucide_da.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Nyeste filer
    1717MENU_CLEAR_LIST=~Slet liste
    18 MENU_SAVE_AS=~Gem som...
     18MENU_SAVE_AS=~Gem som...\tCtrl+A
    1919MENU_CLOSE=Lu~k
    2020# MENU_PAGE_SETUP=Side ~ops‘tning...
     
    4747MENU_FONTS_INFO=Font ~info...
    4848MENU_WINDOW=~Vindue
    49 MENU_SHOW_NAV_PANE=~Vis navigations panel
     49MENU_SHOW_NAV_PANE=~Vis navigations panel\tF9
    5050MENU_FULLSCREEN=~Fuldsk‘rm\tF11
    5151MENU_PRESENTATION=~Pr‘sentation\tF5
     
    197197PD_PRINT_RANGE_AND_COPIES=Print ~f›lgende sider
    198198PD_RANGE_ALL=A~lle
     199PD_REVESE_PRINT=~Reverse
    199200PD_RANGE_CURRENT_PAGE=N~uv‘rende side
    200201PD_RANGE_PAGES=S~ider
  • trunk/Lucide/lng/Lucide_de.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Wiederholen
    1717MENU_CLEAR_LIST=~Liste l”schen
    18 MENU_SAVE_AS=~Sichern unter...
     18MENU_SAVE_AS=~Sichern unter...\tCtrl+A
    1919MENU_CLOSE=S~chlieáen
    2020# MENU_PAGE_SETUP: to delete
     
    4848MENU_FONTS_INFO=Schr~ifteninformation...
    4949MENU_WINDOW=~Fenster
    50 MENU_SHOW_NAV_PANE=~Navigator anzeigen
     50MENU_SHOW_NAV_PANE=~Navigator anzeigen\tF9
    5151MENU_FULLSCREEN=~Vollbild\tF11
    5252MENU_PRESENTATION=~Pr„sentation\tF5
     
    200200PD_PRINT_RANGE_AND_COPIES=Dr~uckbereich und Kopien
    201201PD_RANGE_ALL=A~lles
     202PD_REVESE_PRINT=~Reverse
    202203PD_RANGE_CURRENT_PAGE=A~ktuelle Seite
    203204PD_RANGE_PAGES=Sei~ten
  • trunk/Lucide/lng/Lucide_es.lng

    r515 r523  
    1616MENU_RECENT_FILES=Archivos ~recientes
    1717MENU_CLEAR_LIST=~Borrar la lista
    18 MENU_SAVE_AS=~Guardar como...
     18MENU_SAVE_AS=~Guardar como...\tCtrl+A
    1919MENU_CLOSE=~Cerrar
    2020# MENU_PAGE_SETUP: to delete
     
    5050
    5151MENU_WINDOW=V~entana
    52 MENU_SHOW_NAV_PANE=Mostrar panel de ~navegaci¢n
     52MENU_SHOW_NAV_PANE=Mostrar panel de ~navegaci¢n\tF9
    5353MENU_FULLSCREEN=~Pantalla completa\tF11
    5454MENU_PRESENTATION=~Presentaci¢n\tF5
     
    200200PD_PRINT_RANGE_AND_COPIES=~Rango de impresi¢n y n§ de copias
    201201PD_RANGE_ALL=~Todas
     202PD_REVESE_PRINT=~Reverse
    202203PD_RANGE_CURRENT_PAGE=S¢lo la p gina ~actual
    203204PD_RANGE_PAGES=~P ginas
  • trunk/Lucide/lng/Lucide_fr.lng

    r515 r523  
    1919MENU_RECENT_FILES=Fichiers ~r‚cents
    2020MENU_CLEAR_LIST=~Effacer la liste
    21 MENU_SAVE_AS=~Enregistrer sous...
     21MENU_SAVE_AS=~Enregistrer sous...\tCtrl+A
    2222MENU_CLOSE=~Fermer
    2323# MENU_PAGE_SETUP: to delete
     
    5353MENU_FONTS_INFO=I~nfo. sur les polices...
    5454MENU_WINDOW=~Fenˆtres
    55 MENU_SHOW_NAV_PANE=Afficher le panneau de ~navigation
     55MENU_SHOW_NAV_PANE=Afficher le panneau de ~navigation\tF9
    5656MENU_FULLSCREEN=~Plein ‚cran\tF11
    5757MENU_PRESENTATION=~Pr‚sentation\tF5
     
    216216PD_PRINT_RANGE_AND_COPIES=~tendue et nombre de copies
    217217PD_RANGE_ALL=T~outes
     218PD_REVESE_PRINT=~Reverse
    218219PD_RANGE_CURRENT_PAGE=Page en co~urs
    219220PD_RANGE_PAGES=Pa~ges
  • trunk/Lucide/lng/Lucide_it.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Files recenti
    1717MENU_CLEAR_LIST=~Cancella lista
    18 MENU_SAVE_AS=~Salva come...
     18MENU_SAVE_AS=~Salva come...\tCtrl+A
    1919MENU_CLOSE=~Chiudi
    2020# MENU_PAGE_SETUP: to delete
     
    4848MENU_FONTS_INFO=Informazioni ~tipi di carattere...
    4949MENU_WINDOW=~Finestra
    50 MENU_SHOW_NAV_PANE=Mostra il pannello di ~navigazione
     50MENU_SHOW_NAV_PANE=Mostra il pannello di ~navigazione\tF9
    5151MENU_FULLSCREEN=Schermo ~intero\tF11
    5252MENU_PRESENTATION=~Presentazione\tF5
     
    199199PD_PRINT_RANGE_AND_COPIES=~Intervallo di stampa e copie
    200200PD_RANGE_ALL=~Tutto
     201PD_REVESE_PRINT=~Reverse
    201202PD_RANGE_CURRENT_PAGE=Pa~gina corrente
    202203PD_RANGE_PAGES=~Pagine
  • trunk/Lucide/lng/Lucide_nl.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Recente bestanden
    1717MENU_CLEAR_LIST=~Lijst wissen
    18 MENU_SAVE_AS=Op~slaan als...
     18MENU_SAVE_AS=Op~slaan als...\tCtrl+A
    1919MENU_CLOSE=~Sluiten
    2020# MENU_PAGE_SETUP: to delete
     
    4848MENU_FONTS_INFO=Lettert~ype informatie...
    4949MENU_WINDOW=Ve~nster
    50 MENU_SHOW_NAV_PANE=~Tonen navigatiepaneel
     50MENU_SHOW_NAV_PANE=~Tonen navigatiepaneel\tF9
    5151MENU_FULLSCREEN=Volledig ~scherm\tF11
    5252MENU_PRESENTATION=~Presentatie\tF5
     
    200200PD_PRINT_RANGE_AND_COPIES=Afdrukgebied en kopie‰n
    201201PD_RANGE_ALL=A~lles
     202PD_REVESE_PRINT=~Reverse
    202203PD_RANGE_CURRENT_PAGE=H~uidige pagina
    203204PD_RANGE_PAGES=Pa~gina's
  • trunk/Lucide/lng/Lucide_ru.lng

    r516 r523  
    1616MENU_RECENT_FILES=¥~€ ¢­š¥ ä ©«ë
    1717MENU_CLEAR_LIST=~Žçšáâšâì
    18 MENU_SAVE_AS=~‘®åà ­šâì ª ª...
     18MENU_SAVE_AS=~‘®åà ­šâì ª ª...\tCtrl+A
    1919MENU_CLOSE=~‡ ªàëâì
    2020# MENU_PAGE_SETUP: to delete
     
    4848MENU_FONTS_INFO=ˆ­ä®à¬ æšï ® ~èàšäâ å...
    4949MENU_WINDOW=~Žª­®
    50 MENU_SHOW_NAV_PANE=~Žâ®¡à Š âì ¯ ­¥«ì ­ ¢š£ æšš
     50MENU_SHOW_NAV_PANE=~Žâ®¡à Š âì ¯ ­¥«ì ­ ¢š£ æšš\tF9
    5151MENU_FULLSCREEN=~®«­®íªà ­­ë© ॊš¬\tF11
    5252MENU_PRESENTATION=~१¥­â æšï\tF5
     
    201201PD_PRINT_RANGE_AND_COPIES=„š ¯ §®­ š ª®¯šš
    202202PD_RANGE_ALL=~⇴
     203PD_REVESE_PRINT=~Reverse
    203204PD_RANGE_CURRENT_PAGE=~’¥ªãéãî áâà ­šæã
    204205PD_RANGE_PAGES=~‘âà ­šæë
  • trunk/Lucide/lng/Lucide_sv.lng

    r515 r523  
    99MENU_NEW_WINDOW=~Nytt f”nster
    1010MENU_OPEN=™ppna...\tCtrl+O
    11 MENU_SAVE_AS=Spara som...
     11MENU_SAVE_AS=Spara som...\tCtrl+A
    1212# MENU_PAGE_SETUP: to delete
    1313MENU_PAGE_SETUP=Sida inst„llningar...
     
    3838MENU_FONTS_INFO=Font~info...
    3939MENU_WINDOW=~F”nster
    40 MENU_SHOW_NAV_PANE=Visa navigationspanel
     40MENU_SHOW_NAV_PANE=Visa navigationspanel\tF9
    4141MENU_FULLSCREEN=Fullsk„rm\tF11
    4242MENU_HELP=~Hj„lp
     
    185185PD_PRINT_RANGE_AND_COPIES=Utskrifts~omr†de och kopior
    186186PD_RANGE_ALL=~Alla
     187PD_REVESE_PRINT=~Reverse
    187188PD_RANGE_CURRENT_PAGE=A~ktuell sida
    188189PD_RANGE_PAGES=Si~dor
  • trunk/Lucide/lng/Lucide_zh_TW.lng

    r515 r523  
    88MENU_DOCUMENT=€å¥ó(~D)
    99MENU_OPEN=¶}±Ò(~O)...\tCtrl+O
    10 MENU_SAVE_AS=¥tŠs·sÀÉ(~S)...
     10MENU_SAVE_AS=¥tŠs·sÀÉ(~S)...\tCtrl+A
    1111MENU_PAGE_SETUP=³]©w­¶­±(~G)...
    1212MENU_PRINT=ŠCŠL(~P)...\tCtrl+P
     
    3535MENU_CONTINUOUS=³sÄò(~O)
    3636MENU_WINDOW=µøµ¡(~W)
    37 MENU_SHOW_NAV_PANE=Åã¥ÜŸÉ€Þ®Ø(~S)
     37MENU_SHOW_NAV_PANE=Åã¥ÜŸÉ€Þ®Ø(~S)\tF9
    3838MENU_FULLSCREEN=¥þ¿Ã¹õ(~F)\tF11
    3939MENU_HELP=žÑ»¡(~H)
     
    167167PD_PRINT_RANGE_AND_COPIES=ŠCŠLœd³ò€Î¥÷ŒÆ(~R)
    168168PD_RANGE_ALL=¥þ³¡(~A)
     169PD_REVESE_PRINT=~Reverse
    169170PD_RANGE_CURRENT_PAGE=¥Ø«e­¶­±(~U)
    170171PD_RANGE_PAGES=­¶­±(~G)
  • trunk/Lucide/lng/lucide_cs_cz.lng

    r515 r523  
    1616MENU_RECENT_FILES=~Ned vn‚ soubory
    1717MENU_CLEAR_LIST=S~mazat seznam
    18 MENU_SAVE_AS=~Ulo§it jako...
     18MENU_SAVE_AS=~Ulo§it jako...\tCtrl+A
    1919MENU_CLOSE=~Zavý¡t
    2020# MENU_PAGE_SETUP: smazat
     
    5151MENU_FONTS_INFO=In~formace o p¡smech...
    5252MENU_WINDOW=~Okno
    53 MENU_SHOW_NAV_PANE=~Zobrazit navigaŸn¡ liçtu
     53MENU_SHOW_NAV_PANE=~Zobrazit navigaŸn¡ liçtu\tF9
    5454MENU_FULLSCREEN=~Cel  obrazovka\tF11
    5555MENU_PRESENTATION=~Prezentace\tF5
     
    211211PD_PRINT_RANGE_AND_COPIES=TiçtØnì ~rozsah a poŸet kopi¡
    212212PD_RANGE_ALL=~Vçe
     213PD_REVESE_PRINT=~Reverse
    213214PD_RANGE_CURRENT_PAGE=~Aktu ln¡ strana
    214215PD_RANGE_PAGES=~Strany
Note: See TracChangeset for help on using the changeset viewer.