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/select_boolean.hh

Go to the documentation of this file.
00001 /* $Id: select_boolean.hh,v 1.11 2003/07/24 05:18:26 tetron Exp $ */
00002 
00003 
00004 /** @file select.boolean.hh Defines MetaObject class for select.boolean type (revision 0).
00005 
00006     Copyright (C) 2002 Reed Hedges
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with this library; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00021 
00022 */ 
00023 
00024 #ifndef _GUI_SELECT_BOOLEAN_HH_
00025 #define _GUI_SELECT_BOOLEAN_HH_
00026 
00027 #if defined(_WIN32) && defined(_MSC_VER)
00028 # ifdef VOSGUI_EXPORTS
00029 #  define VOSGUI_API __declspec(dllexport)
00030 # else
00031 #  define VOSGUI_API __declspec(dllimport)
00032 # endif
00033 #else
00034 # define VOSGUI_API
00035 #endif
00036 
00037 #include <vos/corelibs/vos/vos.hh>
00038 #include <vos/metaobjects/property/property.hh>
00039 #include <vos/gui/gui/widget.hh>
00040 #include <vos/gui/gui/select.hh>
00041 
00042 namespace VOSGUI {
00043 
00044 /** MetaObject implementing SelectBoolean Object Type. 
00045     This control toggles the value of a property to "yes" or "no".
00046     It may be represented as a check box.
00047 
00048 */
00049 class VOSGUI_API SelectBoolean : public virtual Select
00050 {
00051 
00052 
00053 public:
00054 
00055     /** Constructor */
00056     SelectBoolean(MetaObject* superobject);
00057 
00058     /** Destructor */
00059     virtual ~SelectBoolean();
00060 
00061     /** Return type string ("gui:widget.select.boolean") */
00062     virtual const string getType();
00063 
00064     /** Register Extenders */
00065     static void registerExtenders();
00066 
00067     /** @name Access Subobjects */
00068     //@{
00069 
00070     /** Get the value of gui:target property (The property to set to "yes" or "no".). */
00071     virtual bool getTarget();
00072 
00073     /** Get the target property  */
00074     virtual Property* getTargetObj();
00075 
00076     /** Set the value of the gui:target property.  If no target has been set,
00077         a new property will be createdb with the givin access control (or none 
00078         if omitted). */
00079     virtual void setTarget(bool value, PropertyAccessControl* ac = 0);
00080 
00081     /** Set the target property */
00082     virtual void setTargetObj(Property* p);
00083 
00084     //@}
00085 
00086 
00087 };
00088 
00089 
00090 
00091 /** Local version of SelectBoolean. */
00092 class VOSGUI_API LocalSelectBoolean : public virtual SelectBoolean, public virtual LocalSelect
00093 {
00094 
00095 public:
00096 
00097     /** Constructor */
00098     LocalSelectBoolean(MetaObject* superobject);
00099 
00100     /** Destructor */
00101     ~LocalSelectBoolean();
00102 
00103     /** Static generator, for factory. */
00104     static MetaObject* new_LocalSelectBoolean(MetaObject* superobject, const string& type);
00105 
00106 };
00107 
00108 
00109 /** Remote version of SelectBoolean. */
00110 class VOSGUI_API RemoteSelectBoolean : public virtual SelectBoolean, public virtual RemoteSelect
00111 {
00112 public:
00113 
00114     /** Constructor */
00115     RemoteSelectBoolean(MetaObject* superobject);
00116 
00117     /** Destructor */
00118     virtual ~RemoteSelectBoolean();
00119 
00120     /** Static generator, for factory. */
00121     static MetaObject* new_RemoteSelectBoolean(MetaObject* superobject, const string& type);
00122 
00123 
00124 };
00125 
00126 } //namespace VOSGUI 
00127 
00128 #endif // #ifdef _GUI_SELECT_BOOLEAN_HH_
00129 

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