mirror of
https://github.com/id-Software/Quake-Tools.git
synced 2026-03-20 00:49:35 +01:00
Source release of QuakeEd, the map editing application on NEXTSTEP for Quake.
This commit is contained in:
71
QuakeEd/InspectorControl.h
Normal file
71
QuakeEd/InspectorControl.h
Normal file
@@ -0,0 +1,71 @@
|
||||
|
||||
#import <appkit/appkit.h>
|
||||
|
||||
#define MINIWINICON "DoomEdIcon"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
i_project,
|
||||
i_textures,
|
||||
i_things,
|
||||
i_prefs,
|
||||
i_settings,
|
||||
i_output,
|
||||
i_help,
|
||||
i_end
|
||||
} insp_e;
|
||||
|
||||
extern id inspcontrol_i;
|
||||
|
||||
@interface InspectorControl:Object
|
||||
{
|
||||
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
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
- awakeFromNib;
|
||||
- changeInspector:sender;
|
||||
- changeInspectorTo:(insp_e)which;
|
||||
- (insp_e)getCurrentInspector;
|
||||
|
||||
@end
|
||||
|
||||
@protocol InspectorControl
|
||||
- windowResized;
|
||||
@end
|
||||
Reference in New Issue
Block a user