home *** CD-ROM | disk | FTP | other *** search
/ Superpower (Alt) / SUPERPOWER.iso / q / source / project.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-08  |  3.1 KB  |  109 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #include <sys/stat.h>
  4.  
  5. #define BASEPATHKEY        "basepath"
  6. #define    MAPNAMESKEY        "maps"
  7. #define DESCKEY            "desc"
  8. #define    WADSKEY            "wads"
  9. #define    BSPFULLVIS        "bspfullvis"
  10. #define    BSPFASTVIS        "bspfastvis"
  11. #define    BSPNOVIS        "bspnovis"
  12. #define    BSPRELIGHT        "bsprelight"
  13. #define    BSPLEAKTEST        "bspleaktest"
  14. #define    BSPENTITIES        "bspentities"
  15.  
  16. #define    SUBDIR_ENT        "progs"        // subdir names in heirarchy
  17. #define    SUBDIR_MAPS        "maps"
  18. #define SUBDIR_GFX        "gfx"
  19.  
  20. extern    id project_i;
  21.  
  22. @interface Project:Object
  23. {
  24.     id    projectInfo;        // dictionary storage of project info
  25.  
  26.     id    basepathinfo_i;        // outlet to base path info textfield
  27.     id    mapbrowse_i;        // outlet to QuakeEd Maps browser
  28.     id    currentmap_i;        // outlet to current map textfield
  29.     id    mapList;            // list of map names (Storage)
  30.     id    descList;            // list of map descriptions (Storage)
  31.     id    wadList;            // list of wad names (Storage)
  32.     
  33.     id    pis_panel_i;        // outlet to Project Info Settings (PIS) panel
  34.  
  35.     id    pis_basepath_i;        // outlet to PIS->base path
  36.     id    pis_wads_i;            // outlet to PIS->wad browser    
  37.     id    pis_fullvis_i;        // outlet to PIS->full vis command
  38.     id    pis_fastvis_i;        // outlet to PIS->fast vis command
  39.     id    pis_novis_i;        // outlet to PIS->no vis command
  40.     id    pis_relight_i;        // outlet to PIS->relight command
  41.     id    pis_leaktest_i;        // outlet to PIS->leak test command
  42.  
  43.     id    BSPoutput_i;        // outlet to Text
  44.     
  45.     char    path_projectinfo[128];    // path of QE_Project file
  46.  
  47.     char    path_basepath[128];        // base path of heirarchy
  48.  
  49.     char    path_progdir[128];        // derived from basepath
  50.     char    path_mapdirectory[128];    // derived from basepath
  51.     char    path_finalmapdir[128];    // derived from basepath
  52.     
  53.     char    path_wad8[128];            // path of texture WAD for cmd-8 key
  54.     char    path_wad9[128];            // path of texture WAD for cmd-9 key
  55.     char    path_wad0[128];            // path of texture WAD for cmd-0 key
  56.  
  57.     char    string_fullvis[1024];    // cmd-line parm
  58.     char    string_fastvis[1024];    // cmd-line parm
  59.     char    string_novis[1024];        // cmd-line parm
  60.     char    string_relight[1024];    // cmd-line parm
  61.     char    string_leaktest[1024];    // cmd-line parm
  62.     char    string_entities[1024];    // cmd-line parm
  63.  
  64.     int    showDescriptions;    // 1 = show map descs in browser
  65.  
  66.     time_t    lastModified;    // last time project file was modified
  67. }
  68.  
  69. - initProject;
  70. - initVars;
  71.  
  72. - (char *)currentProjectFile;
  73.  
  74. - setTextureWad: (char *)wf;
  75.  
  76. - addToOutput:(char *)string;
  77. - clearBspOutput:sender;
  78. - initProjSettings;
  79. - changeChar:(char)f to:(char)t in:(id)obj;
  80. - (int)searchForString:(char *)str in:(id)obj;
  81.  
  82. - parseProjectFile;        // read defaultsdatabase for project path
  83. - openProjectFile:(char *)path;    // called by openProject and newProject
  84. - openProject;
  85. - clickedOnMap:sender;        // called if clicked on map in browser
  86. - clickedOnWad:sender;        // called if clicked on wad in browser
  87.  
  88. //    methods to querie the project file
  89.  
  90. - (char *)getMapDirectory;
  91. - (char *)getFinalMapDirectory;
  92. - (char *)getProgDirectory;
  93.  
  94. - (char *)getWAD8;
  95. - (char *)getWAD9;
  96. - (char *)getWAD0;
  97.  
  98. - (char *)getFullVisCmd;
  99. - (char *)getFastVisCmd;
  100. - (char *)getNoVisCmd;
  101. - (char *)getRelightCmd;
  102. - (char *)getLeaktestCmd;
  103. - (char *)getEntitiesCmd;
  104.  
  105. @end
  106.  
  107. void changeString(char cf,char ct,char *string);
  108.  
  109.