Example #1
0
void __fastcall PACKAGE Register()
{
  // [1]
  TComponentClass cls_ocx[] = {
                              __classid(Zbusxlib_tlb::TZBUSx)
                           };
  RegisterComponents("ActiveX", cls_ocx,
                     sizeof(cls_ocx)/sizeof(cls_ocx[0])-1);
}
Example #2
0
void __fastcall PACKAGE Register()
{
  // [1]
  TComponentClass cls_svr[] = {
                              __classid(Hscommx_tlb::TComm)
                           };
  RegisterComponents("ActiveX", cls_svr,
                     sizeof(cls_svr)/sizeof(cls_svr[0])-1);
}
Example #3
0
void dd::World::Initialize()
{
	RegisterSystems();
	AddSystems();
	for (auto pair : m_Systems)
	{
		auto system = pair.second;
		system->RegisterComponents(&m_ComponentFactory);
		system->RegisterResourceTypes(ResourceManager);
		system->Initialize();
	}
}
Example #4
0
  void __fastcall PACKAGE Register()
  {
	TComponentClass classes[1] = {__classid(TPie)};
	ActivateClassGroup(__classid(Controls::TControl));

	GroupDescendentsWith(__classid(TPie), __classid(Controls::TControl));
	RegisterComponents(LoadStr(Tab_101), classes, 0);
	RegisterComponentEditor(__classid(TPie), __classid(TPieEditor));
	RegisterPropertyEditor(__typeinfo(TAngles),
						   NULL,
						   "",
						   __classid(TAnglesProperty));
  }
Example #5
0
 void __fastcall PACKAGE Register()
 {
   TComponentClass classes[1] = {__classid(TExtComboBox)};
   RegisterComponents(L"IComp", classes, 0);
 }
Example #6
0
void __fastcall PACKAGE Register()
{
    TComponentClass classes[1] = {__classid(TNkEdit)};
    RegisterComponents("Standard", classes, 0);
}
Example #7
0
	void __fastcall PACKAGE Register()
	{
		TComponentClass classes[1] = {__classid(TMMTimer)};
		RegisterComponents("Leunen", classes, 0);
	}
Example #8
0
 void __fastcall PACKAGE Register()
 {
      TComponentClass classes[1] = {__classid(TFaceTracker)};
      RegisterComponents("FOTON", classes, 0);
 }
Example #9
0
 void __fastcall PACKAGE Register()
 {
    TComponentClass classes[1] = {__classid(TLinkLabelEx)};
    RegisterComponents(L"IComp", classes, 0);
 }
void CChrysalisCorePlugin::OnSystemEvent(ESystemEvent event, UINT_PTR wparam, UINT_PTR lparam)
{
	switch (event)
	{
		case ESYSTEM_EVENT_REGISTER_SCHEMATYC_ENV:
		{
			if (gEnv->pSchematyc)
			{
				gEnv->pSchematyc->GetEnvRegistry().RegisterPackage(
					SCHEMATYC_MAKE_ENV_PACKAGE(g_coreEnvPackageGuid, "CoreEnv", "Chrysalis", "Core Schematyc environment", SCHEMATYC_DELEGATE(&RegisterCoreEnvPackage)));
			}

			// Register all components that belong to this plug-in
			auto staticAutoRegisterLambda = [this](Schematyc::IEnvRegistrar& registrar)
			{
				// Call all static callback registered with the CRY_STATIC_AUTO_REGISTER_WITH_PARAM
				Detail::CStaticAutoRegistrar<Schematyc::IEnvRegistrar&>::InvokeStaticCallbacks(registrar);

				// Register our components.
				RegisterComponents(registrar);
			};

			if (gEnv->pSchematyc)
			{
				gEnv->pSchematyc->GetEnvRegistry().RegisterPackage(
					stl::make_unique<Schematyc::CEnvPackage>(
					GetSchematycPackageGUID(),
					"EntityComponents",
					"Chrysalis",
					"Components",
					staticAutoRegisterLambda
				)
				);
			}
		}
		break;

		// Called when the game framework has initialized and we are ready for game logic to start
		case ESYSTEM_EVENT_GAME_POST_INIT:
		{
			// Search the file system to find XML files with definitions for game items.
			// TODO: CRITICAL: HACK: BROKEN: !!
			//gEnv->pGameFramework->GetIItemSystem()->Scan("Parameters/Items");

			// Search the file system to find XML files with definitions for game weapons.
			// TODO: CRITICAL: HACK: BROKEN: !!
			//gEnv->pGameFramework->GetIActorSystem()->Scan("Parameters/Actors");

			// Listen for client connection events, in order to create the local player
			gEnv->pGameFramework->AddNetworkedClientListener(*this);

			// We need to register the procedural contexts.
			IProceduralClipFactory& proceduralClipFactory = gEnv->pGameFramework->GetMannequinInterface().GetProceduralClipFactory();
			mannequin::RegisterProceduralClipsForModule(proceduralClipFactory);

			// #TODO: this is also null at this point in init...move as well.
			if (gEnv->pDynamicResponseSystem)
			{
				// Register the custom DRS actions and conditions.
				REGISTER_DRS_CUSTOM_CONDITION(CConditionDistanceToEntity);
				REGISTER_DRS_CUSTOM_ACTION(CActionClose);
				REGISTER_DRS_CUSTOM_ACTION(CActionLock);
				REGISTER_DRS_CUSTOM_ACTION(CActionOpen);
				REGISTER_DRS_CUSTOM_ACTION(CActionPlayAnimation);
				REGISTER_DRS_CUSTOM_ACTION(CActionSwitch);
				REGISTER_DRS_CUSTOM_ACTION(CActionUnlock);
			}

			// Don't need to load the map in editor
			if (!gEnv->IsEditor())
			{
				gEnv->pConsole->ExecuteString("map example", false, true);
			}
		}
		break;

		case ESYSTEM_EVENT_LEVEL_LOAD_END:
			// In the editor, we wait until now before attempting to connect to the local player. This is to ensure all the
			// entities are already loaded and initialised. It works differently in game mode. 
			if (gEnv->IsEditor())
			{
				if (auto pPlayer = CPlayerComponent::GetLocalPlayer())
					pPlayer->NetworkClientConnect();
			}
			break;
	}
}
Example #11
0
 void __fastcall PACKAGE Register()
   {
   TComponentClass classes[1] = {__classid(TvtkBorlandRenderWindow)};
   RegisterComponents("Samples", classes, 0);
   }
Example #12
0
 void __fastcall PACKAGE Register()
 {
    TComponentClass classes[1] = {__classid(TShadeSelect)};
    RegisterComponents("IComp", classes, 0);
 }
	void __fastcall PACKAGE Register()
	{
		TComponentClass classes[1] = {__classid(TCustomStringGrid)};
		RegisterComponents("Samples", classes, 0);
	}
Example #14
0
 void __fastcall PACKAGE Register()
 {
   TComponentClass classes[1] = {__classid(TRichEditPlus)};
   RegisterComponents("Win32", classes, 0);
 }
ActorFactory::ActorFactory()
{
	RegisterGlobalLuaFunction();
	RegisterComponents();
}
Example #16
0
 void __fastcall PACKAGE Register()
 {
    TComponentClass classes[1] = {__classid(TSymbolDialog)};
    RegisterComponents("IComp", classes, 0);
 }
Example #17
0
 void __fastcall PACKAGE Register()
 {
    TComponentClass classes[1] = {__classid(TMetroParams)};
    RegisterComponents("Metro", classes, 0);
 }
void __fastcall PACKAGE Register()
{
    TComponentClass classes[1] = {__classid(TTypeComboBox)};
    RegisterComponents("Samples", classes, 0);
}
Example #19
0
nsresult
BrowserWindow::Create ( Handle * hwnd, PRInt32 width, PRInt32 height)
{
	PRINT("BrowserWindow::Create\n");
	nsresult result;

	webBrowser = do_CreateInstance( NS_WEBBROWSER_CONTRACTID );
	if ( ! webBrowser )
		return NS_ERROR_FAILURE;

    (void) webBrowser->SetContainerWindow (static_cast<nsIWebBrowserChrome *> (this));

    nsCOMPtr<nsIDocShellTreeItem> dsti = do_QueryInterface( webBrowser );
    dsti->SetItemType( nsIDocShellTreeItem::typeContentWrapper );

	webNav = do_QueryInterface(webBrowser);
	sessionHistory = do_CreateInstance(NS_SHISTORY_CONTRACTID);
	webNav->SetSessionHistory(sessionHistory);

    nsCOMPtr<nsIWindowCreator> windowCreator (static_cast<nsIWindowCreator *> (this));

    // Attach it via the watcher service
    nsCOMPtr<nsIWindowWatcher> watcher = do_GetService(NS_WINDOWWATCHER_CONTRACTID);
    if (watcher)
      watcher->SetWindowCreator(windowCreator);

	
    nsCOMPtr<nsIX509CertDB> certdb = do_GetService(NS_X509CERTDB_CONTRACTID, &result);

	/** Component registration... ***/
	RegisterComponents ();

    baseWindow = do_QueryInterface (webBrowser);
	
	result = baseWindow->InitWindow( hwnd, nsnull,  0, 0, width, height );
	if (!NS_SUCCEEDED(result)) {
		SHOUT("BrowserWindow: Failed to initialize window\n");
		return NS_ERROR_FAILURE;
	}
    result = baseWindow->Create();
	if (!NS_SUCCEEDED(result)) {
		SHOUT("BrowserWindow: Failed to create window\n");
		return NS_ERROR_FAILURE;
	}

    nsCOMPtr<nsIWebProgressListener> wpl (static_cast<nsIWebProgressListener*>(this));
    nsCOMPtr<nsIWeakReference> weakWpl (NS_GetWeakReference (wpl));
    webBrowser->AddWebBrowserListener (weakWpl, NS_GET_IID (nsIWebProgressListener));

	baseWindow->SetVisibility( PR_TRUE );

	webNav = do_QueryInterface( webBrowser, &result );
	if ( NS_FAILED( result ) || ! webNav ) {
	    return NS_ERROR_FAILURE;
	}


    if ( webBrowser ) {
		// I really hope we don't need this, it calls in nsIWidget.h which calls
		// in a bunch of local includes we don't want
/*		
#ifdef NS_UNIX
		// save the window id of the newly created window
		nsCOMPtr<nsIWidget> mozWidget;
		baseWindow->GetMainWidget(getter_AddRefs(mozWidget));

		GdkWindow *tmp_window = static_cast<GdkWindow *> (mozWidget->GetNativeData(NS_NATIVE_WINDOW));

		// and, thanks to superwin we actually need the parent of that.
		tmp_window = gdk_window_get_parent(tmp_window);
		
		// save the widget ID - it should be the mozarea of the window.
		gpointer data = nsnull;
		gdk_window_get_user_data(tmp_window, &data);
		this->nativeMozWidget = static_cast<Handle *> (data);
#endif		
*/
		return NS_OK;
    }

    return NS_ERROR_FAILURE;
}
 void __fastcall PACKAGE Register()
 {
          TComponentClass classes[1] = {__classid(TPointersViewBox)};
          RegisterComponents("Samples", classes, 0);
 }
Example #21
0
 void __fastcall PACKAGE Register()
 {
   TComponentClass classes[1] = {__classid(TTaePageSetupDialog)};
   RegisterComponents("TaeRichEdit", classes, 0);
 }
Example #22
0
	void __fastcall PACKAGE Register() {
		TComponentClass classes[1] = {__classid(TFIImageBox)};
		RegisterComponents(L"FreeImage", classes, 0);
	}
Example #23
0
 void __fastcall PACKAGE Register()
 {
          TComponentClass classes[1] = {__classid(TCColorGridEx)};
          RegisterComponents("FOTON", classes, 0);
 }
Example #24
0
 void __fastcall PACKAGE Register()
 {
    TComponentClass classes[1] = {__classid(TTaeQRRichText)};
    RegisterComponents("Thin Air", classes, 0);
 }
Example #25
0
 void __fastcall PACKAGE Register()
 {
   TComponentClass classes[1] = {__classid(TIPolygon)};
   RegisterComponents("IComp", classes, 0);
 }
Example #26
0
 void __fastcall PACKAGE Register()
 {
      TComponentClass classes[1] = {__classid(TEditAlt)};
      RegisterComponents("Alt", classes, 0);
 }
Example #27
0
 void __fastcall PACKAGE Register()
 {
   TComponentClass classes[1] = {__classid(TUnixDirView)};
   RegisterComponents(L"Scp", classes, 0);
 }