Changeset 30 for trunk/Lucide


Ignore:
Timestamp:
May 28, 2006, 8:54:12 AM (15 years ago)
Author:
Eugene Romanenko
Message:

some updates, added simple readme, about dialog

Location:
trunk/Lucide
Files:
2 added
6 edited

Legend:

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

    r21 r30  
    118118PDLG_PROGRESS=Progress
    119119PDLG_CANCEL=~Cancel
     120
     121#
     122# About dialog
     123#
     124AD_ABOUT=About
     125AD_COPYRIGHTS=Copyrights here.
     126AD_OK=OK
  • trunk/Lucide/SOURCE/gui/Lucide_res.H

    r28 r30  
    11#ifndef __LUCIDE_RES_H
    22#define __LUCIDE_RES_H
     3
     4#define IDI_MAIN_ICON 1
    35
    46#define IDP_HAND  10
     
    7375#define IDC_PBAR                        11
    7476
     77#define IDD_ABOUT                       1005
     78#define IDT_LUCIDEVERSION       10
     79#define IDC_COPYRIGHTS          11
     80#define IDC_NETLABSURL          12
    7581
    7682#endif // __LUCIDE_RES_H
  • trunk/Lucide/SOURCE/gui/dialogs.rc

    r2 r30  
    7272END
    7373
     74
     75DLGTEMPLATE IDD_ABOUT
     76BEGIN
     77        DIALOG "AD_ABOUT", -1, 23, 73, 219, 112, FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_TITLEBAR | FCF_SYSMENU | 0x04000000L
     78        BEGIN
     79                CONTROL "AD_OK", DID_OK, 83, 6, 50, 14, WC_BUTTON, BS_PUSHBUTTON | BS_DEFAULT | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     80                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     81//              CONTROL IDI_MAIN_ICON, -1, 22, 74, 22, 17, WC_STATIC, SS_ICON | WS_VISIBLE
     82                CONTROL "", IDT_LUCIDEVERSION, 57, 97, 151, 8, WC_STATIC, SS_TEXT | DT_CENTER | DT_VCENTER | DT_WORDBREAK | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     83                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans Bold"
     84                CONTROL "http://www.netlabs.org", IDC_NETLABSURL, 57, 79, 151, 8, WC_STATIC, SS_TEXT | DT_CENTER | DT_VCENTER | DT_WORDBREAK | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     85                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     86                CONTROL "", -1, 2, 26, 215, 43, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     87                CONTROL "", -1, 2, 26, 215, 88, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     88                CONTROL "AD_COPYRIGHTS", IDC_COPYRIGHTS, 4, 28, 211, 35, WC_MLE, MLS_READONLY | MLS_WORDWRAP | MLS_VSCROLL | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     89                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     90        END
     91
     92END
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r29 r30  
    2626#define ID_SPLITTER 1
    2727
    28 const char *appName = "Lucide";
    29 const char *fwp     = "FrameWindowPos";
    30 const char *lvd     = "LastViewedDir";
    31 const char *splpos  = "SplitterPos";
    32 const char *showind = "ShowIndex";
     28const char *appName    = "Lucide";
     29const char *appVersion = VERSION;
     30const char *fwp        = "FrameWindowPos";
     31const char *lvd        = "LastViewedDir";
     32const char *splpos     = "SplitterPos";
     33const char *showind    = "ShowIndex";
    3334
    3435
    3536HWND createToolbar( HWND hwnd );
     37void AboutBox( HWND hWndFrame );
    3638
    3739HAB   hab;
     
    543545                    }
    544546                    return (MRESULT)FALSE;
     547
     548                case CM_PRODINFO:
     549                    AboutBox( hWndFrame );
     550                    return (MRESULT)FALSE;
     551
    545552            }
    546553        }
     
    556563int main( int argc, char **argv )
    557564{
     565#ifdef __TEST__
    558566    PPIB pib;
    559567    PTIB tib;
    560568    DosGetInfoBlocks(&tib, &pib);
    561569    pib->pib_ultype = 3;
     570#endif
    562571
    563572    HMQ   hmq;
  • trunk/Lucide/SOURCE/gui/lucide.h

    r29 r30  
    33
    44extern const char *appName;
     5extern const char *appVersion;
    56extern HAB hab;
    67extern char deffont[];
  • trunk/Lucide/SOURCE/gui/makefile

    r29 r30  
    11.autodepend
     2
     3TEST=0
     4VERSION=Beta 1
     5
     6!if $(TEST)==1
     7        BMODE=os2v2
     8!else
     9        BMODE=os2v2_pm
     10!endif
    211
    312OBJDIR = ..\..\OBJS
     
    2635       toolbar.obj pluginman.obj pluginViewDlg.obj docViewer.obj \
    2736       linklab.obj wwbtn.obj intern.obj messages.obj indexWindow.obj \
    28        fontsInfoDlg.obj docInfoDlg.obj findDlg.obj progressDlg.obj
     37       fontsInfoDlg.obj docInfoDlg.obj findDlg.obj progressDlg.obj \
     38       aboutDlg.obj
    2939
    3040Lucide.exe: $(OBJS) Lucide.res
    3141  copy &&|
    3242option quiet
    33 system os2v2
     43system $(BMODE)
    3444option map=$(OBJDIR)\lucide
    3545option statics
     
    4656file $(OBJDIR)\findDlg.obj
    4757file $(OBJDIR)\progressDlg.obj
     58file $(OBJDIR)\aboutDlg.obj
    4859file $(OBJDIR)\docViewer.obj
    4960file $(OBJDIR)\indexWindow.obj
     
    6778Lucide.cpp: ..\plugins\ludoc\ludoc.xh
    6879
    69 Lucide.obj:         Lucide.cpp
     80Lucide.obj:         Lucide.cpp         makefile
    7081luutils.obj:        luutils.cpp
    7182clipbrd.obj:        clipbrd.cpp
     
    7990findDlg.obj:        findDlg.cpp
    8091progressDlg.obj:    progressDlg.cpp
     92aboutDlg.obj:       aboutDlg.cpp
    8193docViewer.obj:      docViewer.cpp
    8294indexWindow.obj:    indexWindow.cpp
     
    94106-xs
    95107-sg
     108-DVERSION="$(VERSION)" 
     109!if $(TEST)==1
     110-D__TEST__
     111!endif
    96112-I..\plugins\ludoc
    97113-DOS2
Note: See TracChangeset for help on using the changeset viewer.