![]() |
![]() |
00001 #ifndef IGUANA_MODELS_IG_TEXT_MODEL_H 00002 # define IGUANA_MODELS_IG_TEXT_MODEL_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "Iguana/Models/interface/config.h" 00007 # include "Iguana/Framework/interface/IgModel.h" 00008 # include <classlib/utils/Callback.h> 00009 00010 //<<<<<< PUBLIC DEFINES >>>>>> 00011 //<<<<<< PUBLIC CONSTANTS >>>>>> 00012 //<<<<<< PUBLIC TYPES >>>>>> 00013 00014 class IgTextRep; 00015 class IgTextModelEvent; 00016 00017 //<<<<<< PUBLIC VARIABLES >>>>>> 00018 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00019 //<<<<<< CLASS DECLARATIONS >>>>>> 00020 00021 class IGUANA_MODELS_API IgTextModel : public IgModel 00022 { 00023 public: 00024 typedef lat::Callback1<IgTextModelEvent> Listener; 00025 enum EventType { TextChanged }; 00026 00027 ~IgTextModel (void); 00028 // default constructor 00029 // default copy constructor 00030 // default assignment operator 00031 00032 virtual void listen (EventType event, const Listener &listener) = 0; 00033 virtual void unlisten (EventType event, const Listener &listener) = 0; 00034 virtual void changed (void) = 0; 00035 00036 virtual IgTextRep * text (void) const = 0; 00037 }; 00038 00039 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00040 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00041 00042 #endif // IGUANA_MODELS_IG_TEXT_MODEL_H