DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/*********************************************************************** filename: CEGUIScheme.h created: 21/2/2004 author: Paul D Turner purpose: Defines abstract base class for the GUI Scheme object. *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. ***************************************************************************/ #ifndef _CEGUIScheme_h_ #define _CEGUIScheme_h_ #include "CEGUIBase.h" #include "CEGUIString.h" #include "CEGUISchemeManager.h" #include
#if defined(_MSC_VER) # pragma warning(push) # pragma warning(disable : 4251) #endif // Start of CEGUI namespace section namespace CEGUI { /*! \brief A class that groups a set of GUI elements and initialises the system to access those elements. A GUI Scheme is a high-level construct that loads and initialises various lower-level objects and registers them within the system for usage. So, for example, a Scheme might create some Imageset objects, some Font objects, and register a collection of WindowFactory objects within the system which would then be in a state to serve those elements to client code. */ class CEGUIEXPORT Scheme { friend class Scheme_xmlHandler; public: /*! \brief Loads all resources for this scheme. \return Nothing. */ void loadResources(void); /*! \brief Unloads all resources for this scheme. This should be used very carefully. \return Nothing. */ void unloadResources(void); /*! \brief Return whether the resources for this Scheme are all loaded. \return true if all resources for the Scheme are loaded and available, or false of one or more resource is not currently loaded. */ bool resourcesLoaded(void) const; /*! \brief Return the name of this Scheme. \return String object containing the name of this Scheme. */ const String& getName(void) const {return d_name;} /*! \brief Returns the default resource group currently set for Schemes. \return String describing the default resource group identifier that will be used when loading Scheme xml file data. */ static const String& getDefaultResourceGroup() { return d_defaultResourceGroup; } /*! \brief Sets the default resource group to be used when loading scheme xml data \param resourceGroup String describing the default resource group identifier to be used. \return Nothing. */ static void setDefaultResourceGroup(const String& resourceGroup) { d_defaultResourceGroup = resourceGroup; } private: /************************************************************************* Implementation Constants *************************************************************************/ static const char GUISchemeSchemaName[]; //!< Filename of the XML schema used for validating GUIScheme files. /************************************************************************* Friends *************************************************************************/ friend Scheme* SchemeManager::loadScheme(const String& scheme_filename, const String& resourceGroup); friend void SchemeManager::unloadScheme(const String& scheme_name); /************************************************************************* Construction and Destruction *************************************************************************/ /*! \brief Creates a scheme object from the data specified in the file \a filename \param filename String object holding the name of the file to use when creating this Scheme object. \param resourceGroup Group identifier to be passed to the resource provider when loading the scheme specification file. \return Nothing. */ Scheme(const String& filename, const String& resourceGroup); /*! \brief Load all XML based imagesets required by the scheme. */ void loadXMLImagesets(); /*! \brief Load all image file based imagesets required by the scheme. */ void loadImageFileImagesets(); /*! \brief Load all xml based fonts required by the scheme. */ void loadFonts(); /*! \brief Load all xml looknfeel files required by the scheme. */ void loadLookNFeels(); /*! \brief Register all window factories required by the scheme. */ void loadWindowFactories(); /*! \brief Register all window renderer factories required by the scheme. */ void loadWindowRendererFactories(); /*! \brief Register all factory aliases required by the scheme. */ void loadFactoryAliases(); /*! \brief Create all falagard mappings required by the scheme. */ void loadFalagardMappings(); /*! \brief Unload all XML based imagesets created by the scheme. */ void unloadXMLImagesets(); /*! \brief Unload all image file based imagesets created by the scheme. */ void unloadImageFileImagesets(); /*! \brief Unload all xml based fonts created by the scheme. */ void unloadFonts(); /*! \brief Unload all xml looknfeel files loaded by the scheme. */ void unloadLookNFeels(); /*! \brief Unregister all window factories registered by the scheme. */ void unloadWindowFactories(); /*! \brief Unregister all window renderer factories registered by the scheme. */ void unloadWindowRendererFactories(); /*! \brief Unregister all factory aliases created by the scheme. */ void unloadFactoryAliases(); /*! \brief Unregister all falagard mappings created by the scheme. */ void unloadFalagardMappings(); /*! \brief Check state of all XML based imagesets created by the scheme. */ bool areXMLImagesetsLoaded() const; /*! \brief Check state of all image file based imagesets created by the scheme. */ bool areImageFileImagesetsLoaded() const; /*! \brief Check state of all xml based fonts created by the scheme. */ bool areFontsLoaded() const; /*! \brief Check state of all looknfeel files loaded by the scheme. */ bool areLookNFeelsLoaded() const; /*! \brief Check state of all window factories registered by the scheme. */ bool areWindowFactoriesLoaded() const; /*! \brief Check state of all window renderer factories registered by the scheme. */ bool areWindowRendererFactoriesLoaded() const; /*! \brief Check state of all factory aliases created by the scheme. */ bool areFactoryAliasesLoaded() const; /*! \brief Check state of all falagard mappings created by the scheme. */ bool areFalagardMappingsLoaded() const; public: // for luabind compatibility /*! \brief Destroys a Scheme object \return Nothing */ ~Scheme(void); private: /************************************************************************* Structs used to hold scheme information *************************************************************************/ struct LoadableUIElement { String name; String filename; String resourceGroup; }; struct UIElementFactory { String name; }; struct UIModule { String name; FactoryModule* module; std::vector
factories; }; struct AliasMapping { String aliasName; String targetName; }; struct FalagardMapping { String windowName; String targetName; String rendererName; String lookName; }; /************************************************************************* Implementation Data *************************************************************************/ String d_name; //!< the name of this scheme. std::vector
d_imagesets; std::vector
d_imagesetsFromImages; std::vector
d_fonts; std::vector
d_widgetModules; std::vector
d_windowRendererModules; std::vector
d_aliasMappings; std::vector
d_looknfeels; std::vector
d_falagardMappings; static String d_defaultResourceGroup; //!< holds default resource group }; } // End of CEGUI namespace section #if defined(_MSC_VER) # pragma warning(pop) #endif #endif // end of guard _CEGUIScheme_h_
CEGUIScheme.h
Page URL
File URL
Prev
49/76
Next
Download
( 9 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.