Annotation of previous/src/gui-sdl/dlgEthernet.c, revision 1.1.1.1

1.1       root        1: /*
                      2:   Previous - dlgEthernet.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: const char DlgEthernet_fileid[] = "Previous dlgEthernet.c : " __DATE__ " " __TIME__;
                      8: 
                      9: #include "main.h"
                     10: #include "configuration.h"
                     11: #include "dialog.h"
                     12: #include "sdlgui.h"
                     13: #include "file.h"
                     14: #include "paths.h"
                     15: 
                     16: 
                     17: #define DLGENET_ENABLE      3
                     18: 
                     19: #define DLGENET_EXIT        4
                     20: 
                     21: 
                     22: 
                     23: /* The Boot options dialog: */
                     24: static SGOBJ enetdlg[] =
                     25: {
                     26:        { SGBOX, 0, 0, 0,0, 40,13, NULL },
                     27:     { SGTEXT, 0, 0, 12,1, 16,1, "Ethernet options" },
                     28: 
                     29:        { SGBOX, 0, 0, 1,3, 38,5, NULL },
                     30:        { SGCHECKBOX, 0, 0, 4,5, 20,1, "Ethernet connected" },
                     31:     
                     32:        { SGBUTTON, SG_DEFAULT, 0, 10,10, 21,1, "Back to main menu" },
                     33:        { -1, 0, 0, 0,0, 0,0, NULL }
                     34: };
                     35: 
                     36: 
                     37: 
                     38: /*-----------------------------------------------------------------------*/
                     39: /**
                     40:  * Show and process the Boot options dialog.
                     41:  */
                     42: void DlgEthernet_Main(void)
                     43: {
                     44:        int but;
                     45: 
                     46:        SDLGui_CenterDlg(enetdlg);
                     47: 
                     48:     /* Set up the dialog from actual values */
                     49:     if (ConfigureParams.Ethernet.bEthernetConnected)
                     50:         enetdlg[DLGENET_ENABLE].state |= SG_SELECTED;
                     51:     else
                     52:         enetdlg[DLGENET_ENABLE].state &= ~SG_SELECTED;
                     53:     
                     54:     /* Draw and process the dialog */
                     55:     
                     56:        do
                     57:        {
                     58:                but = SDLGui_DoDialog(enetdlg, NULL);
                     59:     }
                     60:     while (but != DLGENET_EXIT && but != SDLGUI_QUIT
                     61:               && but != SDLGUI_ERROR && !bQuitProgram);
                     62:     
                     63:     
                     64:     /* Read values from dialog */
                     65:     ConfigureParams.Ethernet.bEthernetConnected = enetdlg[DLGENET_ENABLE].state & SG_SELECTED;
                     66: }

unix.superglobalmegacorp.com

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