|
| | SApplication (IRenderFactory *pRendFactory, HINSTANCE hInst, LPCTSTR pszHostClassName=_T("SOUIHOST"), const ISystemObjectRegister &sysObjRegister=SObjectDefaultRegister(), BOOL bImeApp=FALSE) |
| | Constructor for SApplication.
|
| |
| | ~SApplication (void) |
| | Destructor for SApplication.
|
| |
| IRenderFactory * | GetRenderFactory () OVERRIDE |
| | Get the render factory.
|
| |
| BOOL | SetRenderFactory (IRenderFactory *renderFac) OVERRIDE |
| | Set the render factory.
|
| |
| HMODULE | GetModule () SCONST OVERRIDE |
| | Get the module handle.
|
| |
| UINT | LoadSystemNamedResource (IResProvider *pResProvider) OVERRIDE |
| | Load system named resources.
|
| |
| ITranslatorMgr * | GetTranslator () OVERRIDE |
| | Get the translator manager.
|
| |
| void | SetTranslator (ITranslatorMgr *pTrans) OVERRIDE |
| | Set the translator manager.
|
| |
| IToolTipFactory * | GetToolTipFactory () OVERRIDE |
| | Get the tooltip factory.
|
| |
| void | SetToolTipFactory (IToolTipFactory *pToolTipFac) OVERRIDE |
| | Set the tooltip factory.
|
| |
| BOOL | SetMsgLoopFactory (IMsgLoopFactory *pMsgLoopFac) OVERRIDE |
| | Set the message loop factory.
|
| |
| IMsgLoopFactory * | GetMsgLoopFactory () OVERRIDE |
| | Get the message loop factory.
|
| |
| void | SetLogManager (ILogMgr *pLogMgr) OVERRIDE |
| | Set the log manager.
|
| |
| ILogMgr * | GetLogManager () OVERRIDE |
| | Get the log manager.
|
| |
| void | SetAttrStorageFactory (IAttrStorageFactory *pAttrStorageFactory) OVERRIDE |
| | Set the attribute storage factory.
|
| |
| IAttrStorageFactory * | GetAttrStorageFactory () OVERRIDE |
| | Get the attribute storage factory.
|
| |
| int | Run (HWND hMainWnd) OVERRIDE |
| | Run the application message loop.
|
| |
| void | Quit (int nCode) OVERRIDE |
| | Quit the application.
|
| |
| HWND | GetMainWnd () OVERRIDE |
| | Get the main window handle.
|
| |
| BOOL | AddMsgLoop (IMessageLoop *pMsgLoop, BOOL bReplace=FALSE) OVERRIDE |
| | Add a message loop.
|
| |
| BOOL | RemoveMsgLoop () OVERRIDE |
| | Remove the current message loop.
|
| |
| IMessageLoop * | GetMsgLoop (tid_t tid=::GetCurrentThreadId()) SCONST OVERRIDE |
| | Get the message loop for a specific thread.
|
| |
| IResProviderMgr * | GetResProviderMgr () OVERRIDE |
| | Get the resource provider manager.
|
| |
| IRealWndHandler * | GetRealWndHander () OVERRIDE |
| | Get the real window handler.
|
| |
| void | SetRealWndHandler (IRealWndHandler *pRealHandler) OVERRIDE |
| | Set the real window handler.
|
| |
| void | SetScriptFactory (IScriptFactory *pScriptModule) OVERRIDE |
| | Set the script factory.
|
| |
| void | InitXmlNamedID (const LPCWSTR *pNames, const int *nIds, int nCount) OVERRIDE |
| | Initialize XML named IDs from arrays.
|
| |
| IXmlDoc * | LoadXmlDocment (LPCTSTR strResId) OVERRIDE |
| | Load an XML document from a resource.
|
| |
| IXmlDoc * | LoadXmlDocmentU8 (LPCSTR strResId) OVERRIDE |
| | Load an XML document from a UTF-8 encoded resource.
|
| |
| IAnimation * | LoadAnimation (LPCTSTR strResId) OVERRIDE |
| | Load an animation from a resource.
|
| |
| IAnimation * | LoadAnimationU8 (LPCSTR strResId) OVERRIDE |
| | Load an animation from a UTF-8 encoded resource.
|
| |
| IBitmapS * | LoadImage (LPCTSTR strResId) OVERRIDE |
| | Load an image from a resource.
|
| |
| IBitmapS * | LoadImageU8 (LPCSTR strResId) OVERRIDE |
| | Load an image from a UTF-8 encoded resource.
|
| |
| IValueAnimator * | LoadValueAnimator (LPCTSTR strResId) OVERRIDE |
| | Load a value animator from a resource.
|
| |
| IValueAnimator * | LoadValueAnimatorU8 (LPCSTR strResId) OVERRIDE |
| | Load a value animator from a UTF-8 encoded resource.
|
| |
| ITranslator * | LoadTranslator (LPCTSTR strResId) OVERRIDE |
| | Load a translator from a resource.
|
| |
| ITranslator * | LoadTranslatorU8 (LPCSTR strResId) OVERRIDE |
| | Load a translator from a UTF-8 encoded resource.
|
| |
| BOOL | InstallTranslator (ITranslator *trModule) OVERRIDE |
| | Install a translator.
|
| |
| BOOL | UnnstallTranslator (REFGUID langId) OVERRIDE |
| | Uninstall a translator by language ID.
|
| |
| void | EnableNotifyCenter (BOOL bEnable, int interval=20) OVERRIDE |
| | Enable or disable the notification center.
|
| |
| void * | GetInnerSingleton (SingletonType nType) OVERRIDE |
| | Get an inner singleton.
|
| |
| IObject * | CreateObject (LPCWSTR pszName, SObjectType nType) SCONST OVERRIDE |
| | Create an object by name and type.
|
| |
| void | SetCreateObjectCallback (FunCreateObject cbCreateObj) OVERRIDE |
| | Set the callback for creating objects.
|
| |
| BOOL | RegisterObjFactory (const IObjectFactory *objFac, BOOL bReplace=FALSE) OVERRIDE |
| | Register an object factory.
|
| |
| BOOL | UnregisterObjFactory (const IObjectFactory *objFac) OVERRIDE |
| | Unregister an object factory.
|
| |
| void | SetDefaultFontInfo (LPCWSTR pszFontInfo) OVERRIDE |
| | Set the default font information.
|
| |
| BOOL | CreateTaskLoop (int nCount, Priority priority, BOOL bAutoStart=TRUE) OVERRIDE |
| | Create task loops.
|
| |
| ITaskLoop * | GetTaskLoop (int iTaskLoop=0) OVERRIDE |
| | Get a task loop by index.
|
| |
| void | SetCreateTaskLoopCallback (FunCrateTaskLoop cbCreateTaskLoop) OVERRIDE |
| | Set the callback for creating task loops.
|
| |
| HRESULT | CreateScriptModule (IScriptModule **ppScriptModule) OVERRIDE |
| | Create a script module.
|
| |
| BOOL | SetEditCtxMenuTemplateResId (LPCTSTR resId, IResProvider *pResProvider=NULL) OVERRIDE |
| | Set the resource ID for the edit context menu template.
|
| |
| BOOL | SetMessageBoxTemplateResId (LPCTSTR resId, IResProvider *pResProvider=NULL) OVERRIDE |
| | Set the resource ID for the message box template.
|
| |
| void | InitXmlNamedID (const SNamedID::NAMEDVALUE *pNamedValue, int nCount, BOOL bSorted) |
| | Initialize XML named IDs from an array of named values.
|
| |
| BOOL | LoadXmlDocment (SXmlDoc &xmlDoc, const SStringT &strResId, IResProvider *pResProvider=NULL) |
| | Load an XML document from a resource.
|
| |
| void | SetAppDir (const SStringT &strAppDir) |
| | Set the application directory.
|
| |
| SStringT | GetAppDir () const |
| | Get the application directory.
|
| |
| template<class T> |
| BOOL | RegisterWindowClass () |
| | Register a window class.
|
| |
| template<class T> |
| BOOL | UnregisterWindowClass () |
| | Unregister a window class.
|
| |
| template<class T> |
| BOOL | RegisterSkinClass () |
| | Register a skin class.
|
| |
| template<class T> |
| BOOL | UnregisterSkinClass () |
| | Unregister a skin class.
|
| |
| int | Str2ID (const SStringW &str) |
| | Convert a string to an ID.
|
| |
| SXmlNode | GetMessageBoxTemplate () const |
| | Get the message box template XML node.
|
| |
| SXmlNode | GetEditCtxMenuTemplate () const |
| | Get the edit context menu template XML node.
|
| |
| SStringW | tr (const SStringW &strSrc, const SStringW &strCtx) const |
| | Translate a string with context.
|
| |
| virtual IWindow * | CreateWindowByName (LPCWSTR pszWndClass) const |
| | Create a window by name.
|
| |
| virtual ISkinObj * | CreateSkinByName (LPCWSTR pszSkinClass) const |
| | Create a skin by name.
|
| |
| virtual IInterpolator * | CreateInterpolatorByName (LPCWSTR pszName) const |
| | Create an interpolator by name.
|
| |
| virtual IAnimation * | CreateAnimationByName (LPCWSTR pszName) const |
| | Create an animation by name.
|
| |
| virtual IValueAnimator * | CreateValueAnimatorByName (LPCWSTR pszName) const |
| | Create a value animator by name.
|
| |
| | SSingleton (void) |
| | Constructor for SSingleton.
|
| |
| virtual | ~SSingleton (void) |
| | Destructor for SSingleton.
|
| |
| | TObjRefImpl () |
| | Constructor that initializes the reference count to 1.
|
| |
| virtual | ~TObjRefImpl () |
| | Virtual destructor.
|
| |
| long | AddRef () override |
| | Increments the reference count.
|
| |
| long | Release () override |
| | Decrements the reference count and deletes the object if the count reaches zero.
|
| |
| void | OnFinalRelease () override |
| | Deletes the object.
|
| |
| | SResProviderMgr (void) |
| | Constructor.
|
| |
| | ~SResProviderMgr (void) |
| | Destructor.
|
| |
| void | AddResProvider (IResProvider *pResProvider, LPCTSTR pszUidef=_T("uidef:xml_init")) OVERRIDE |
| | Adds a resource provider with a specified UI definition.
|
| |
| void | AddResProviderA (IResProvider *pResProvider, LPCSTR pszUidef="uidef:xml_init") OVERRIDE |
| | Adds a resource provider with a specified UI definition (ANSI version).
|
| |
| void | RemoveResProvider (IResProvider *pResProvider) OVERRIDE |
| | Removes a resource provider.
|
| |
| void | RemoveAll () OVERRIDE |
| | Removes all resource providers.
|
| |
| IResProvider * | GetHeadResProvider () SCONST OVERRIDE |
| | Retrieves the first resource provider in the list.
|
| |
| IResProvider * | GetTailResProvider () SCONST OVERRIDE |
| | Retrieves the last resource provider in the list.
|
| |
| void | SetFilePrefix (LPCTSTR pszFilePrefix) OVERRIDE |
| | Sets the file prefix for resource paths.
|
| |
| BOOL | HasResource (LPCTSTR pszType, LPCTSTR pszResName) OVERRIDE |
| | Checks if a resource exists.
|
| |
| HICON | LoadIcon (LPCTSTR pszResName, int cx=0, int cy=0, BOOL bFromFile=FALSE) OVERRIDE |
| | Loads an icon resource.
|
| |
| HCURSOR | LoadCursor (LPCTSTR pszResName, BOOL bFromFile=FALSE) OVERRIDE |
| | Loads a cursor resource.
|
| |
| HBITMAP | LoadBitmap (LPCTSTR pszResName, BOOL bFromFile=FALSE) OVERRIDE |
| | Loads a bitmap resource.
|
| |
| IBitmapS * | LoadImage (LPCTSTR pszType, LPCTSTR pszResName) OVERRIDE |
| | Loads an image resource as an IBitmapS object.
|
| |
| IImgX * | LoadImgX (LPCTSTR pszType, LPCTSTR pszResName) OVERRIDE |
| | Loads an image resource as an IImgX object.
|
| |
| size_t | GetRawBufferSize (LPCTSTR pszType, LPCTSTR pszResName) OVERRIDE |
| | Retrieves the size of the raw buffer for a resource.
|
| |
| BOOL | GetRawBuffer (LPCTSTR pszType, LPCTSTR pszResName, LPVOID pBuf, size_t size) OVERRIDE |
| | Retrieves the raw buffer for a resource.
|
| |
| IResProvider * | GetMatchResProvider (LPCTSTR pszType, LPCTSTR pszResName) |
| | Finds the resource provider that contains the specified resource type and name.
|
| |
| IBitmapS * | LoadImage2 (const SStringW &strImgID) |
| | Loads an image using a type:name formatted string.
|
| |
| HICON | LoadIcon2 (const SStringW &strIconID) |
| | Loads an icon using a name:size formatted string.
|
| |
| BOOL | LoadRawBuffer (LPCTSTR pszType, LPCTSTR pszResName, IResProvider *pResProvider, SAutoBuf &buf) |
| | Loads the raw buffer for a resource using a specified resource provider.
|
| |
| | SObjectFactoryMgr (void) |
| | Constructor for SObjectFactoryMgr.
|
| |
| BOOL | RegisterFactory (const IObjectFactory *objFactory, BOOL bReplace=false) |
| | Registers an object factory.
|
| |
| BOOL | UnregisterFactory (const SObjectInfo &objInfo) |
| | Unregisters an object factory.
|
| |
| void | SetSwndDefAttr (IObject *pObject) const |
| | Sets default attributes for a given object.
|
| |
| SObjectInfo | BaseObjectInfoFromObjectInfo (const SObjectInfo &objInfo) |
| | Gets the base object information from a given object information.
|
| |
| template<class T> |
| BOOL | TplRegisterFactory () |
| | Template method to register a factory for a specific object type.
|
| |
| template<class T> |
| BOOL | TplUnregisterFactory () |
| | Template method to unregister a factory for a specific object type.
|
| |
| | SCmnMap (void(*funOnKeyRemoved)(const SObjectFactoryPtr &)=NULL) |
| | Constructor.
|
| |
| virtual | ~SCmnMap () |
| | Destructor.
|
| |
| bool | HasKey (const SObjectInfo &key) const |
| | Checks if a key exists in the map.
|
| |
| bool | GetKeyObject (const SObjectInfo &key, SObjectFactoryPtr &obj) const |
| | Retrieves an object associated with a key.
|
| |
| SObjectFactoryPtr & | GetKeyObject (const SObjectInfo &key) const |
| | Retrieves an object associated with a key.
|
| |
| bool | AddKeyObject (const SObjectInfo &key, const SObjectFactoryPtr &obj) |
| | Adds a key-object pair to the map.
|
| |
| void | SetKeyObject (const SObjectInfo &key, const SObjectFactoryPtr &obj) |
| | Sets an object for a key, replacing any existing object.
|
| |
| bool | RemoveKeyObject (const SObjectInfo &key) |
| | Removes a key-object pair from the map.
|
| |
| void | RemoveAll () |
| | Removes all key-object pairs from the map.
|
| |
| size_t | GetCount () |
| | Gets the number of key-object pairs in the map.
|
| |