85 lines
1.7 KiB
C
85 lines
1.7 KiB
C
//=======================================================================
|
|
// Copyright XashXT Group 2007 ©
|
|
// editor.h - recource editor
|
|
//=======================================================================
|
|
#ifndef GENERICEDIT_H
|
|
#define GENERICEDIT_H
|
|
|
|
#include <stdio.h>
|
|
#include <setjmp.h>
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <basetypes.h>
|
|
#include <ref_system.h>
|
|
|
|
#include "mxtk.h"
|
|
#include "options.h"
|
|
|
|
#define CLASSNAME "SystemEditor"
|
|
|
|
//=====================================
|
|
// main editor funcs
|
|
//=====================================
|
|
void InitEditor ( uint funcname, int argc, char **argv );
|
|
void EditorMain ( void );
|
|
void FreeEditor ( void );
|
|
|
|
extern int com_argc;
|
|
extern int dev_mode;
|
|
extern bool debug_mode;
|
|
extern char *com_argv[MAX_NUM_ARGVS];
|
|
|
|
/*
|
|
===========================================
|
|
System Events
|
|
===========================================
|
|
*/
|
|
void GUI_Msg( const char *pMsg, ... );
|
|
void GUI_MsgDev( int level, const char *pMsg, ... );
|
|
void GUI_MsgWarn( const char *pMsg, ... );
|
|
|
|
extern stdlib_api_t std;
|
|
#define Msg GUI_Msg
|
|
#define MsgDev GUI_MsgDev
|
|
#define MsgWarn GUI_MsgWarn
|
|
#define Sys_Error std.error
|
|
|
|
typedef enum {
|
|
Action,
|
|
Size,
|
|
Timer,
|
|
Idle,
|
|
Show,
|
|
Hide,
|
|
MouseUp,
|
|
MouseDown,
|
|
MouseMove,
|
|
MouseDrag,
|
|
KeyUp,
|
|
KeyDown,
|
|
MouseWheel,
|
|
}eventlist_t;
|
|
|
|
typedef struct event_s
|
|
{
|
|
int event;
|
|
HWND *widget;
|
|
int action;
|
|
int width, height;
|
|
int x, y, buttons;
|
|
int key;
|
|
int modifiers;
|
|
int flags;
|
|
int zdelta;
|
|
}event_t;
|
|
|
|
typedef struct window_s
|
|
{
|
|
int ( *handleEvent ) ( event_t *event );
|
|
HWND Handle;
|
|
|
|
} window_t;
|
|
|
|
#endif//GENERICEDIT_H
|