Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

vos/gui/gui/label.hh

Go to the documentation of this file.
00001 /* $Id: label.hh,v 1.8 2003/07/24 16:12:13 reed Exp $ */
00002 
00003 
00004 /* This file was generated by otd2cpp.pl, a script for VOS by Reed Hedges <reed@zerohour.net>
00005    and Peter Amstutz <tetron@interreality.org>
00006 
00007    Search for TODO for stuff that needs editing. You will want to especially fill in constructors,
00008    destructors, message handlers, non-property subobjects...
00009 
00010    I can make no guarantee that this code will work, or even that it even is safe to run.
00011    Use it at your own risk.
00012 */
00013 
00014 /** @file label.hh Defines MetaObject class for Label type (revision 0).
00015 
00016 */ 
00017 
00018 #ifndef _LABEL_HH_
00019 #define _LABEL_HH_
00020 
00021 #if defined(_WIN32) && defined(_MSC_VER)
00022 # ifdef VOSGUI_EXPORTS
00023 #  define VOSGUI_API __declspec(dllexport)
00024 # else
00025 #  define VOSGUI_API __declspec(dllimport)
00026 # endif
00027 #else
00028 # define VOSGUI_API
00029 #endif
00030 
00031 #include <vos/corelibs/vos/vos.hh>
00032 #include <vos/metaobjects/property/property.hh>
00033 #include <vos/gui/gui/widget.hh>
00034 
00035 namespace VOSGUI {
00036 
00037 /** MetaObject implementing Label Object Type. 
00038     A text label (may be multiline).
00039 */
00040 class VOSGUI_API Label : public virtual Widget
00041 {
00042 
00043 public:
00044 
00045     /** Constructor */
00046     Label(MetaObject* superobject);
00047 
00048     /** Destructor */
00049     virtual ~Label();
00050 
00051     /** Return type string ("gui:widget.label") */
00052     virtual const string getType();
00053 
00054     /** Register Extenders */
00055     static void registerExtenders();
00056 
00057     /** Set a file backend for the image.
00058         @see FileProperty
00059         @throw FileAccessError
00060     */
00061     virtual void setLabelToFile(const string& filename, const string& datatype, PropertyAccessControl* ac = 0);
00062 
00063 };
00064 
00065 
00066 
00067 /** Local version of Label. */
00068 class LocalLabel : public virtual Label, public virtual LocalWidget
00069 {
00070 
00071 public:
00072 
00073     /** Constructor */
00074     LocalLabel(MetaObject* superobject);
00075 
00076     /** Destructor */
00077     ~LocalLabel();
00078 
00079     /** Initialize required subproperties with given access control. */
00080     virtual void initialize(PropertyAccessControl* ac);
00081 
00082     /** Static generator, for factory. */
00083     static MetaObject* new_LocalLabel(MetaObject* superobject, const string& type);
00084 
00085 };
00086 
00087 
00088 
00089 } // end of namespace VOSGUI
00090 #endif // #ifdef _LABEL_HH_
00091 

Generated on Tue Aug 12 03:55:43 2003 for Interreality Project - VOS by doxygen 1.3.2