123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- #ifndef __WASABI_CFG_H
- #define __WASABI_CFG_H
- #define GEN_FF
- #define WA5
- #ifndef _WASABIRUNTIME
- #ifndef WA3COMPATIBILITY
- #define WASABINOMAINAPI
- #endif
- #define WASABI_COMPILE_WND
- #define WASABI_COMPILE_TIMERS
- #define WASABI_COMPILE_SKIN
- #define WASABI_SCRIPT_SYSTEMOBJECT_WA3COMPATIBLE
- #define WASABI_COMPILE_SCRIPT
- #define WASABI_COMPILE_LOCALES
- #define WASABI_COMPILE_FONTS
- #define WASABI_FONT_RENDERER_USE_FREETYPE
- #if defined(WASABI_FONT_RENDERER_USE_WIN32)
- #define WASABI_FONT_RENDERER ""
- #elif defined(WASABI_FONT_RENDERER_USE_FREETYPE)
- #define WASABI_FONT_RENDERER "Freetype"
- #else
- #define WASABI_FONT_RENDERER ""
- #endif
- #define WASABI_FONT_TTFOVERRIDE 0
- #define WASABI_WNDMGR_ANIMATEDRECTS 0
- #define WASABI_WNDMGR_FINDOPENRECT 0
- #define WASABI_WNDMGR_LINKLAYOUTSCALES 0
- #define WASABI_WNDMGR_LINKLAYOUTSALPHA 0
- #define WASABI_WNDMGR_DESKTOPALPHA 1
- #define WASABI_COMPILE_IMGLDR
- #define WASABI_COMPILE_IMGLDR_PNGREAD
- #define WASABI_COMPILE_IMGLDR_JPGREAD
- #define WASABI_COMPILE_CONFIG
- #define WASABI_COMPILE_FILEREADER
- #define WASABI_COMPILE_XMLPARSER
- #define WASABI_COMPILE_SYSCB
- #define WASABI_COMPILE_MEMMGR
- #define WASABI_DIRS_FROMEXEPATH
- #define WASABI_SKINS_SUBDIRECTORY "skins"
- #define WASABI_RESOURCES_SUBDIRECTORY "plugins/freeform"
- #define WASABI_COMPILE_MEDIACORE
- #define WASABI_COMPILE_WNDMGR
- #define WASABI_COMPILE_PAINTSETS
- #define WASABI_COMPILE_MAKIDEBUG
- #define WASABI_CUSTOMIMPL_MEDIACORE
- #define WASABI_WIDGETS_MEDIASLIDERS
- #define WASABI_CUSTOM_CONTEXTMENUS
- #define WASABI_CUSTOM_QUIT
- #define WASABI_CUSTOM_QUITFN { extern void appQuit(); appQuit(); }
- #define WASABI_CUSTOM_ONTOP
- #else
- #define WASABI_COMPILE_COMPONENTS
- #define WASABI_COMPILE_SKIN
- #define WASABI_COMPILE_ACTIONS
- #define WASABI_COMPILE_SCRIPT
- #define WASABI_COMPILE_FONTS
- #define WASABI_COMPILE_LOCALES
- #define WASABI_COMPILE_IMGLDR
- #define WASABI_COMPILE_IMGLDR_PNGREAD
- #define WASABI_COMPILE_IMGLDR_JPGREAD
- #define WASABI_COMPILE_METADB
- #define WASABI_COMPILE_CONFIG
- #define WASABI_COMPILE_FILEREADER
- #define WASABI_COMPILE_XMLPARSER
- #define WASABI_COMPILE_SYSCB
- #define WASABI_COMPILE_MEMMGR
- #define WASABI_COMPILE_SKIN_WA2
- #define WASABI_COMPILE_PAINTSETS
- #define WASABI_COMPILE_WNDMGR
- #define WASABI_COMPILE_MEDIACORE
- #define WASABI_COMPILE_TIMERS
- #define WASABI_COMPILE_WND
- #define WASABI_COMPILE_UTF
- #define WASABI_SKINS_SUBDIRECTORY "skins"
- #define WASABI_FONT_RENDERER ""
- #define WASABI_WNDMGR_ANIMATEDRECTS 0
- #define WASABI_WNDMGR_FINDOPENRECT 0
- #define WASABI_COMPILE_MAKIDEBUG
- #endif
- #ifdef _WASABIRUNTIME
- #define WASABI_API_SYSTEM api
- #define WASABI_API_APP api
- #define WASABI_API_COMPONENT api
- #define WASABI_API_SVC api
- #define WASABI_API_SYSCB api
- #define WASABI_API_MAKI api
- #define WASABI_API_UTF api
- #define WASABI_API_WND api
- #define WASABI_API_IMGLDR api
- #define WASABI_API_FILE api
- #define WASABI_API_TIMER api
- #define WASABI_API_WNDMGR api
- #define WASABI_API_SKIN api
- #define WASABI_API_METADB api
- #define WASABI_API_LOCALE api
- #define WASABI_API_CONFIG api
- #define WASABI_API_FONT api
- #define WASABI_API_MEMMGR api
- #define WASABI_API_XML api
- #define WASABI_API_MEDIACORE api
- #define WASABI_API_MAKIDEBUG debugApi
- #else
- #define WASABI_API_SYSTEM systemApi
-
- #define WASABI_API_APP applicationApi
- #define WASABI_API_SVC serviceApi
- #define WASABI_API_SYSCB sysCallbackApi
- #ifdef WASABI_COMPILE_COMPONENTS
- #define WASABI_API_COMPONENT componentApi
- #endif
- #ifdef WASABI_COMPILE_SCRIPT
- #define WASABI_API_MAKI makiApi
- #endif
- #ifdef WASABI_COMPILE_UTF
- #define WASABI_API_UTF utfApi
- #endif
- #ifdef WASABI_COMPILE_WND
- #define WASABI_API_WND wndApi
- #endif
- #ifdef WASABI_COMPILE_IMGLDR
- #define WASABI_API_IMGLDR imgLoaderApi
- #endif
- #ifdef WASABI_COMPILE_FILEREADER
- #define WASABI_API_FILE fileApi
- #endif
- #ifdef WASABI_COMPILE_TIMERS
- #define WASABI_API_TIMER timerApi
- #endif
- #ifdef WASABI_COMPILE_WNDMGR
- #define WASABI_API_WNDMGR wndManagerApi
- #endif
- #ifdef WASABI_COMPILE_SKIN
- #define WASABI_API_SKIN skinApi
- #endif
- #ifdef WASABI_COMPILE_METADB
- #define WASABI_API_METADB metadbApi
- #endif
- #ifdef WASABI_COMPILE_LOCALES
- #define WASABI_API_LOCALE localesApi
- #endif
- #ifdef WASABI_COMPILE_CONFIG
- #define WASABI_API_CONFIG configApi
- #endif
- #ifdef WASABI_COMPILE_FONTS
- #define WASABI_API_FONT fontApi
- #endif
- #ifdef WASABI_COMPILE_MEMMGR
- #define WASABI_API_MEMMGR memmgrApi
- #endif
- #ifdef WASABI_COMPILE_XMLPARSER
- #define WASABI_API_XML xmlApi
- #endif
- #ifdef WASABI_COMPILE_MEDIACORE
- #define WASABI_API_MEDIACORE coreApi
- #endif
- #ifdef WASABI_COMPILE_MAKIDEBUG
- #define WASABI_API_MAKIDEBUG debugApi
- #endif
- #endif
- #define WASABI_WIDGETS_GUIOBJECT
- #define WASABI_WIDGETS_LAYER
- #define WASABI_WIDGETS_TEXT
- #define WASABI_WIDGETS_BUTTON
- #define WASABI_WIDGETS_TGBUTTON
- #define WASABI_WIDGETS_ANIMLAYER
- #define WASABI_WIDGETS_GROUPLIST
- #define WASABI_WIDGETS_MOUSEREDIR
- #define WASABI_WIDGETS_SLIDER
- #define WASABI_WIDGETS_MEDIAVIS
- #define WASABI_WIDGETS_MEDIAEQCURVE
- #define WASABI_WIDGETS_MEDIASTATUS
- #define WASABI_WIDGETS_EDIT
- #define WASABI_WIDGETS_TITLEBAR
- #define WASABI_WIDGETS_COMPBUCK
- #define WASABI_WIDGETS_BROWSER
- #define WASABI_WIDGETS_FRAME
- #define WASABI_WIDGETS_GRID
- #define WASABI_WIDGETS_TABSHEET
- #define WASABI_WIDGETS_CHECKBOX
- #define WASABI_WIDGETS_TITLEBOX
- #define WASABI_WIDGETS_CUSTOMOBJECT
- #define WASABI_WIDGETS_OSWNDHOST
- #define WASABI_WIDGETS_RADIOGROUP
- #define WASABI_WIDGETS_LIST
- #define WASABI_WIDGETS_TREE
- #define WASABI_WIDGETS_DROPDOWNLIST
- #define WASABI_WIDGETS_COMBOBOX
- #define WASABI_WIDGETS_HISTORYEDITBOX
- #define WASABI_WIDGETS_OBJECTDIRECTORY
- #define WASABI_WIDGETS_RECTANGLE
- #define WASABI_WIDGETS_PATHPICKER
- #define WASABI_WIDGETS_GRADIENT
- #define WASABI_WIDGETS_MENUBUTTON
- #define WASABI_WIDGETS_MENU
- #define WASABI_WIDGETS_WNDHOLDER
- #define WASABI_WIDGETS_LAYOUTSTATUS
- #define WASABI_WIDGETS_TOOLTIPS
- #if defined(_DEBUG) | defined(WASABI_DEBUG)
- #define WASABI_COMPILE_STATSWND
- #ifndef WASABI_DEBUG
- #define WASABI_DEBUG
- #endif
- #endif
- #define WASABI_TOOLOBJECT_HIDEOBJECT
- #define WASABI_TOOLOBJECT_SENDPARAMS
- #define WASABI_TOOLOBJECT_ADDPARAMS
- #define WASABI_COMPILE_COLORTHEMES
- #define WASABI_SCRIPTOBJECTS_POPUP
- #define WASABI_SCRIPTOBJECTS_LIST
- #define WASABI_SCRIPTOBJECTS_BITLIST
- #define WASABI_SCRIPTOBJECTS_REGION
- #define WASABI_SCRIPTOBJECTS_TIMER
- #define WASABI_SCRIPTOBJECTS_MAP
- #define WASABI_SCRIPTOBJECTS_EMBEDDEDXUI
- #ifndef WASABI_EXTERNAL_GUIOBJECTS
- #define WASABI_SCRIPTOBJECTS_WAC
- #endif
- #ifdef WASABI_CUSTOMIMPL_MEDIACORE
- class api_core;
- extern api_core *createCustomCoreApi();
- extern void destroyCustomCoreApi(api_core *core);
- #endif
- #define WASABI_WNDMGR_ALLCONTAINERSDYNAMIC 0
- #define WASABI_WNDMGR_NORESPAWN
- #define WASABI_WNDMGR_OSMSGBOX
- #define WASABI_STATICVARMGR
- #define WASABI_CUSTOM_MODULE_SVCMGR
- #define ON_LAYOUT_CHANGED { extern void onLayoutChanged(); onLayoutChanged(); }
- #define ON_FATAL_SKIN_ERROR { extern void onFatalSkinError(); onFatalSkinError(); }
- #define ON_CREATE_EXTERNAL_WINDOW_GUID(x, y) { extern int onCreateExternalWindowGuid(GUID g); y = onCreateExternalWindowGuid(x); }
- #define ON_TOGGLE_DESKTOPALPHA(v) { extern void onToggleDesktopAlpha(int v); onToggleDesktopAlpha(v); }
- #define ON_TWEAK_RENDER_RATIO(x) { extern float onTweakRenderRatio(float v); x = onTweakRenderRatio(x); }
- #define ON_CUSTOM_ALTF4 { extern void onCustomAltF4(); onCustomAltF4(); }
- #define WASABI_DEFAULT_STDCONTAINER "resizable_status"
- #define SWITCH_SKIN(x) { extern void switchSkin(const char *name); switchSkin(x); }
- #define IS_SKIN_STILL_LOADING(x) { extern int isSkinStillLoading(); x = isSkinStillLoading(); }
- #define ON_LOAD_EXTRA_COLORTHEMES() { extern void loadExtraColorThemes(); loadExtraColorThemes(); }
- #define LOCALES_CUSTOM_LOAD(x) { extern const char *localesCustomGetFile(); x = localesCustomGetFile(); }
- #define DEFAULT_CROSSFADE_ENABLED FALSE
- #define CUSTOM_VARS(x, y) { extern const char *getCustomVar(const char *var); y = getCustomVar(x); }
- #define WASABI_NO_RELEASEMODE_DEBUGSTRINGS
- #define WASABI_CUSTOM_MINIDB(field, buf, len) { extern void getCustomMetaData(const char *f, char *b, int l); getCustomMetaData(field, buf, len); }
- #define GET_SONG_INFO_TEXT(ret) { extern const char *getSongInfoText(); ret = getSongInfoText(); }
- #define GET_KBDFORWARD_WND(g, wnd) { extern OSWINDOWHANDLE getKeyboardForwardWnd(GUID g); wnd = getKeyboardForwardWnd(g); }
- #define WASABI_EDITWND_LISTCOLORS
- #define WASABI_APPBAR_ONDOCKCHANGED(wnd) { extern void onAppBarDockChanged(api_window *w); onAppBarDockChanged(wnd); }
- #define WASABI_GET_VERSION(cs, n) { extern const char *getVersion(); STRNCPY(cs, getVersion(), n); cs[n] = 0; }
- #define WASABI_ON_MAIN_MOVE(hwnd) { extern void onMainLayoutMove(HWND w); onMainLayoutMove(hwnd); }
- #define WASABI_ON_REPARENT(hwnd) { extern void onReParent(HWND w); onReParent(hwnd); }
- #define WASABI_ON_REINIT( hwnd) { extern void onReInit(HWND w); onReInit(hwnd); }
- #define DEFAULT_DESKTOPALPHA FALSE
- #define DEFAULT_LINKLAYOUTSCALE TRUE
- #define DEFAULT_LINKLAYOUTSALPHA FALSE
- #define DEFAULT_LINKALLALPHA TRUE
- #define DEFAULT_LINKALLRATIO FALSE
- #define DEFAULT_LINKEDALPHA 255
- #define DEFAULT_AUTOOPACITYTIME 2000
- #define DEFAULT_AUTOOPACITYFADEIN 250
- #define DEFAULT_AUTOOPACITYFADEOUT 1000
- #define DEFAULT_AUTOOPACITYTYPE 0
- #define DEFAULT_EXTENDAUTOOPACITY 25
- #define DEFAULT_USERATIOLOCKS FALSE
- #define DEFAULT_TIMERRESOLUTION 33
- #define DEFAULT_TOOLTIPS TRUE
- #define DEFAULT_TEXTSPEED 1.0f/3.0f
- #define UTF8 0
- #define WANT_UTF8_WARNINGS
- #include <api/application/api_application.h>
- #include <api/service/api_service.h>
- #include <api/syscb/api_syscb.h>
- #ifdef WASABI_COMPILE_MEMMGR
- # include <api/memmgr/api_memmgr.h>
- #endif
- #ifdef WASABI_COMPILE_SCRIPT
- # include <api/script/api_maki.h>
- #endif
- #ifdef WASABI_COMPILE_FONTS
- # include <api/font/api_font.h>
- #endif
- #ifdef WASABI_COMPILE_WND
- # include <api/wnd/api_wnd.h>
- #endif
- #ifdef WASABI_COMPILE_IMGLDR
- # include <api/imgldr/api_imgldr.h>
- #endif
- #ifdef WASABI_COMPILE_FILEREADER
- # include <api/filereader/api_filereader.h>
- #endif
- #ifdef WASABI_COMPILE_TIMERS
- # include <api/timer/api_timer.h>
- #endif
- #ifdef WASABI_COMPILE_WNDMGR
- # include <api/wndmgr/api_wndmgr.h>
- #endif
- #ifdef WASABI_COMPILE_LOCALES
- # include <api/locales/api_locales.h>
- #endif
- #ifdef WASABI_COMPILE_CONFIG
- # include <api/config/api_config.h>
- #endif
- #ifdef WASABI_COMPILE_SKIN
- # include <api/skin/api_skin.h>
- #endif
- #ifdef WASABI_COMPILE_MAKIDEBUG
- # include <api/script/debugger/api_makidebug.h>
- #endif
- #endif
|