quakeforge/tools/Forge/Bundles/MapEdit/InspectorControl.h

75 lines
1.9 KiB
C
Raw Normal View History

#ifndef InspectorControl_h
#define InspectorControl_h
#include <AppKit/AppKit.h>
#define MINIWINICON "DoomEdIcon"
2010-09-11 10:06:04 +00:00
typedef enum {
i_project,
i_textures,
i_things,
i_prefs,
i_settings,
i_output,
i_help,
i_end
} insp_e;
2010-09-11 10:06:04 +00:00
extern id inspcontrol_i;
@interface InspectorControl:NSObject {
id inspectorView_i; // inspector view
id inspectorSubview_i; // inspector view's current subview
// (gets replaced)
id contentList; // List of contentviews (corresponds to
// insp_e enum order)
id windowList; // List of Windows (corresponds to
// insp_e enum order)
id obj_textures_i; // TexturePalette object (for
// delegating)
id obj_genkeypair_i; // GenKeyPair object
id popUpButton_i; // PopUpList title button
id popUpMatrix_i; // PopUpList matrix
id itemList; // List of popUp buttons
insp_e currentInspectorType; // keep track of current inspector
//
// Add id's here for new inspectors
// **NOTE: Make sure PopUpList has correct TAG value that
// corresponds to the enums above!
// Windows
2010-09-11 10:06:04 +00:00
id win_project_i; // project
id win_textures_i; // textures
id win_things_i; // things
id win_prefs_i; // preferences
id win_settings_i; // project settings
id win_output_i; // bsp output
id win_help_i; // documentation
// PopUpList objs
2010-09-11 10:06:04 +00:00
id itemProject_i; // project
id itemTextures_i; // textures
id itemThings_i; // things
id itemPrefs_i; // preferences
id itemSettings_i; // project settings
id itemOutput_i; // bsp output
id itemHelp_i; // docs
}
2010-09-11 10:06:04 +00:00
-awakeFromNib;
-changeInspector:sender;
-changeInspectorTo:(insp_e) which;
-(insp_e) getCurrentInspector;
2010-09-11 10:06:04 +00:00
@end @ protocol InspectorControl - windowResized;
@end
2010-09-11 10:06:04 +00:00
#endif // InspectorControl_h