Annotation of previous_trunk/src/gui-sdl/dlgAbout.c, revision 1.1

1.1     ! root        1: /*
        !             2:   Previous - dlgAbout.c
        !             3: 
        !             4:   This file is distributed under the GNU Public License, version 2 or at
        !             5:   your option any later version. Read the file gpl.txt for details.
        !             6: 
        !             7:   Show information about the program and its license.
        !             8: */
        !             9: const char DlgAbout_fileid[] = "Previous dlgAbout.c : " __DATE__ " " __TIME__;
        !            10: 
        !            11: #include "main.h"
        !            12: #include "dialog.h"
        !            13: #include "sdlgui.h"
        !            14: 
        !            15: 
        !            16: /* The "About"-dialog: */
        !            17: static SGOBJ aboutdlg[] =
        !            18: {
        !            19:        { SGBOX, 0, 0, 0,0, 56,22, NULL },
        !            20:        { SGTEXT, 0, 0, 21,1, 12,1, PROG_NAME },
        !            21:        { SGTEXT, 0, 0, 21,2, 12,1, "==============" },
        !            22:        { SGTEXT, 0, 0, 2,4,  52,1, "Previous is a NeXT computer system (black hardware) " },
        !            23:        { SGTEXT, 0, 0, 2,5,  52,1, "emulator. It was written by Andreas Grabher,        " },
        !            24:        { SGTEXT, 0, 0, 2,6,  52,1, "Simon Schubiger and Gilles Fetis with the help of   " },
        !            25:        { SGTEXT, 0, 0, 2,7,  52,1, "the community at the NeXT International Forums      " },
        !            26:        { SGTEXT, 0, 0, 2,8,  52,1, "(http://www.nextcomputers.org/forums). Previous is  " },
        !            27:        { SGTEXT, 0, 0, 2,9,  52,1, "the work of many.                                   " },
        !            28:        { SGTEXT, 0, 0, 2,11, 52,1, "This program is free software. You can redistribute " },
        !            29:        { SGTEXT, 0, 0, 2,12, 52,1, "it and/or modify it. Please check the License and   " },
        !            30:        { SGTEXT, 0, 0, 2,13, 52,1, "Copyright in the individual source files.           " },
        !            31:        { SGTEXT, 0, 0, 2,15, 52,1, "This program is distributed in the hope that it will" },
        !            32:        { SGTEXT, 0, 0, 2,16, 52,1, "be useful, but WITHOUT ANY WARRANTY.                " },
        !            33:        { SGBUTTON, SG_DEFAULT, 0, 24,19, 8,1, "OK" },
        !            34:        { -1, 0, 0, 0,0, 0,0, NULL }
        !            35: };
        !            36: 
        !            37: 
        !            38: /*-----------------------------------------------------------------------*/
        !            39: /**
        !            40:  * Show the "about" dialog:
        !            41:  */
        !            42: void Dialog_AboutDlg(void)
        !            43: {
        !            44:        /* Center PROG_NAME title string */
        !            45:        aboutdlg[1].x = (aboutdlg[0].w - strlen(PROG_NAME)) / 2;
        !            46: 
        !            47:        SDLGui_CenterDlg(aboutdlg);
        !            48:        SDLGui_DoDialog(aboutdlg, NULL);
        !            49: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.