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

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. #define MINIWINICON    "DoomEdIcon"
  5.  
  6. typedef enum
  7. {
  8.     i_project,
  9.     i_textures,
  10.     i_things,
  11.     i_prefs,
  12.     i_settings,
  13.     i_output,
  14.     i_help,
  15.     i_end
  16. } insp_e;
  17.  
  18. extern    id        inspcontrol_i;
  19.  
  20. @interface InspectorControl:Object
  21. {
  22.     id    inspectorView_i;    // inspector view
  23.     id    inspectorSubview_i;    // inspector view's current subview (gets replaced)
  24.  
  25.     id    contentList;        // List of contentviews (corresponds to
  26.                             // insp_e enum order)
  27.     id    windowList;            // List of Windows (corresponds to
  28.                             // insp_e enum order)
  29.  
  30.     id    obj_textures_i;        // TexturePalette object (for delegating)
  31.     id    obj_genkeypair_i;    // GenKeyPair object
  32.  
  33.     id    popUpButton_i;        // PopUpList title button
  34.     id    popUpMatrix_i;        // PopUpList matrix
  35.     id    itemList;            // List of popUp buttons
  36.         
  37.     insp_e    currentInspectorType;    // keep track of current inspector
  38.     //
  39.     //    Add id's here for new inspectors
  40.     //  **NOTE: Make sure PopUpList has correct TAG value that
  41.     //  corresponds to the enums above!
  42.     
  43.     // Windows
  44.     id    win_project_i;        // project
  45.     id    win_textures_i;        // textures
  46.     id    win_things_i;        // things
  47.     id    win_prefs_i;        // preferences
  48.     id    win_settings_i;        // project settings
  49.     id    win_output_i;        // bsp output
  50.     id    win_help_i;            // documentation
  51.     
  52.     // PopUpList objs
  53.     id    itemProject_i;        // project
  54.     id    itemTextures_i;        // textures
  55.     id    itemThings_i;        // things
  56.     id    itemPrefs_i;        // preferences
  57.     id    itemSettings_i;        // project settings
  58.     id    itemOutput_i;        // bsp output
  59.     id    itemHelp_i;            // docs
  60. }
  61.  
  62. - awakeFromNib;
  63. - changeInspector:sender;
  64. - changeInspectorTo:(insp_e)which;
  65. - (insp_e)getCurrentInspector;
  66.  
  67. @end
  68.  
  69. @protocol InspectorControl
  70. - windowResized;
  71. @end
  72.