2018-01-28 12:35:12 +00:00
|
|
|
#include <Types.h>
|
|
|
|
#include <Memory.h>
|
|
|
|
#include <QuickDraw.h>
|
|
|
|
#include <Fonts.h>
|
|
|
|
#include <Events.h>
|
|
|
|
#include <Menus.h>
|
|
|
|
#include <TextEdit.h>
|
|
|
|
#include <MacWindows.h>
|
|
|
|
#include <OSUtils.h>
|
|
|
|
#include <ToolUtils.h>
|
|
|
|
|
|
|
|
|
2018-11-05 13:14:24 +00:00
|
|
|
static void InitToolBox (void)
|
2018-01-28 12:35:12 +00:00
|
|
|
{
|
|
|
|
GrafPtr wmgrPort;
|
|
|
|
|
|
|
|
#if defined(TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON > 0)
|
|
|
|
/* no init required for the managers below in Carbon */
|
|
|
|
#else
|
|
|
|
InitGraf (&qd.thePort);
|
|
|
|
InitFonts ();
|
|
|
|
InitWindows ();
|
|
|
|
InitMenus ();
|
|
|
|
TEInit ();
|
|
|
|
InitDialogs (0L);
|
|
|
|
MaxApplZone ();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
InitCursor ();
|
|
|
|
|
|
|
|
#if defined(TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON > 0)
|
|
|
|
wmgrPort = CreateNewPort();
|
|
|
|
#else
|
|
|
|
GetWMgrPort (&wmgrPort);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
SetPort (wmgrPort);
|
|
|
|
}
|
2018-11-05 13:14:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
static void EventLoop (void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|