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

83 lines
2.3 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;
@class InspectorControl;
2010-09-11 10:06:04 +00:00
extern InspectorControl *inspcontrol_i;
@interface InspectorControl: NSObject
2010-09-11 23:14:08 +00:00
{
IBOutlet NSView *inspectorView_i; // inspector view
IBOutlet NSView *inspectorSubview_i; // inspector view's current subview
// (gets replaced)
2010-09-11 10:06:04 +00:00
id contentList; // List of contentviews (corresponds to
// insp_e enum order)
2010-09-11 10:06:04 +00:00
id windowList; // List of Windows (corresponds to
// insp_e enum order)
2010-09-11 10:06:04 +00:00
id obj_textures_i; // TexturePalette object (for
// delegating)
id obj_genkeypair_i; // GenKeyPair object
2010-09-11 10:06:04 +00:00
NSPopUpButton *popUpButton_i; // PopUpList title button
NSMatrix *popUpMatrix_i; // PopUpList matrix
NSMutableArray *itemList; // List of popUp buttons
2010-09-11 10:06:04 +00:00
IBOutlet NSTextView *helpView;
insp_e currentInspectorType; // keep track of current inspector
2010-09-11 10:06:04 +00:00
//
2010-09-11 10:06:04 +00:00
// Add id's here for new inspectors
// **NOTE: Make sure PopUpList has correct TAG value that
// corresponds to the enums above!
// Windows
IBOutlet NSWindow *win_project_i; // project
IBOutlet NSWindow *win_textures_i; // textures
IBOutlet NSWindow *win_things_i; // things
IBOutlet NSWindow *win_prefs_i; // preferences
IBOutlet NSWindow *win_settings_i; // project settings
IBOutlet NSWindow *win_output_i; // bsp output
IBOutlet NSWindow *win_help_i; // documentation
2010-09-11 10:06:04 +00:00
// PopUpList objs
IBOutlet id <NSMenuItem> itemProject_i; // project
IBOutlet id <NSMenuItem> itemTextures_i; // textures
IBOutlet id <NSMenuItem> itemThings_i; // things
IBOutlet id <NSMenuItem> itemPrefs_i; // preferences
IBOutlet id <NSMenuItem> itemSettings_i; // project settings
IBOutlet id <NSMenuItem> itemOutput_i; // bsp output
IBOutlet id <NSMenuItem> itemHelp_i; // docs
}
- (IBAction) changeInspector: (id)sender;
- (void) setCurrentInspector: (insp_e)which;
- (insp_e) currentInspector;
@end
2010-09-11 16:41:18 +00:00
@protocol InspectorControl
- (void) windowResized;
2010-09-11 16:41:18 +00:00
@end
2010-09-11 10:06:04 +00:00
#endif // InspectorControl_h