home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / Preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-13  |  2.6 KB  |  87 lines

  1. //************************************************************************
  2. //
  3. //    Preferences.h.  
  4. //    
  5. //        Controls preferences panel.    
  6. //
  7. //            by    Felipe A. Rodriguez        
  8. //
  9. //    This code is supplied "as is" the author makes no warranty as to its 
  10. //    suitability for any purpose.  This code is free and may be distributed 
  11. //    in accordance with the terms of the:
  12. //        
  13. //            GNU GENERAL PUBLIC LICENSE
  14. //            Version 2, June 1991
  15. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  16. //             675 Mass Ave, Cambridge, MA 02139, USA
  17. //
  18. //************************************************************************
  19.  
  20. #import <appkit/appkit.h>
  21. #import "GKdefs.h"
  22. #import "Coordinator.h"
  23.  
  24.  
  25.         // preferences controls 
  26.     char *cList[] = { "comLine", "BaudStr", "LinkUp", "dialPrefix", 
  27.                                 DIALINIT,  NULL};
  28.     char *sList[] = { USEFIFO, "autoLaunch", "autoHide", "DispPPP", "DoD", 
  29.                                     "sound", AITIMER, NULL};
  30.         // redial     
  31.     char *rsList[] = { "autoRedial", "PersistCon", "FailRedial", 
  32.                             "LCPterminate", REDBOFF, NULL};    
  33.     char *rfList[] = { "reDial", "Persist", "Fail", "LCPterm", NULL};
  34.  
  35.         // ppp editor lists
  36.     char *exlist[] = { "/options", "/ip-down", "/ip-up", 
  37.                             "/resolv.conf", "/syslog.conf","/messages",     
  38.                                 "/rc.local", NULL};
  39.     char *flist[] = { "options", "ip-down","ip-up", "resolv", 
  40.                                 "syslog", "messages", "rc", NULL};
  41.  
  42.  
  43. @interface Preferences:Object
  44. {
  45.     id    swMatrix;                // pref check box matrix of switches
  46.     id    redialSwMatrix;            // redial check box matrix of switches
  47.     id  redialForm;                // redial trigger str's form
  48.     id  pppForm;             // preferences form showing loc's of ppp files                
  49.     id  defaultsForm;        // preferences form showing control string defaults
  50.     id  form;
  51.     id  timeoutField;        // textfield showing timeout setting
  52.     id  timeoutCircSlider;    // circular slider showing timeout setting
  53.     id  timeoutThreshField;            // textfield showing timeout setting
  54.     id  timeoutThreshCircSlider;    // circular slider showing timeout setting
  55.     id  preTimeoutSw;                
  56.     id  swapView;                    // the swapview in the nib
  57.     id  radioButtons;                  // preferences radio buttons
  58.     char Path[MAXPATHLEN + 1];        // generic buffer to hold paths
  59.     id  pHLBrowser;                    // preferences nxbrowser  
  60.     id  mat;
  61.     id  hlPathTextField;                
  62. }
  63.  
  64. - awakeFromNib;
  65. - switch:sender;
  66. - redialSwitch:sender;
  67. - redialForm:sender;
  68. - pppFileEdit:sender; 
  69. - pppExampleEdit:sender; 
  70. - setPPPForm:sender;
  71. - pppFilesPathChanged:sender;
  72. - defaultsForm:sender;
  73. - show_pppEditor:sender;
  74. - (char *)pathOf:(int)i; 
  75. - timeout:sender;
  76. - timeoutThreshold:sender;
  77. - setPreTimeout:sender;
  78. - setHotListPath:sender;
  79. - selectHotListPath:sender;
  80. - resetPHLBrowser;
  81.  
  82. - makeFile;
  83. - makeFIFO;
  84.  
  85.  
  86. @end
  87.