Scopira  20080306
scopira::core::view_i Class Reference

#include <view.h>

Inheritance diagram for scopira::core::view_i:
scopira::tool::object

Public Member Functions

virtual void bind_model (scopira::core::model_i *sus)
 
virtual void react_model_update (scopira::core::model_i *sus, scopira::core::view_i *src)
 called when the model_i has "changed" by the given inspector (might be null)
 
void set_view_action_reactor (view_action_reactor_i *vh)
 (internal) this is calle by infrastructure systems
 
- Public Member Functions inherited from scopira::tool::object
virtual ~object ()
 
int add_ref (void) const
 
bool sub_ref (void) const
 
void auto_ref (void) const
 
int current_ref (void) const
 
virtual scopira::tool::oflow_iprint (scopira::tool::oflow_i &o) const
 
virtual bool load (scopira::tool::iobjflow_i &in)
 
virtual void save (scopira::tool::oobjflow_i &out) const
 
bool is_alive_object (void) const
 
bool is_dead_object (void) const
 

Protected Member Functions

void react_view_action (int actionID)
 descendants call this when they want to emit an action event
 
void set_view_title (const std::string &newtitle)
 descedants call this when they want to change their displayed title
 
- Protected Member Functions inherited from scopira::tool::object
 object (void)
 
 object (bool neverusecounter)
 

Detailed Description

A generic "view" that can be paired with a model. This used to be an inspector.

Author
Aleksander Demko

Member Function Documentation

◆ bind_model()

virtual void scopira::core::view_i::bind_model ( scopira::core::model_i sus)
virtual

This is called when a new model_i is bound/unbound. This is also the only method called on non-gui views, so you should put your action code in this method in that case.

Author
Aleksander Demko

Referenced by scopira::core::bind_model_view().


The documentation for this class was generated from the following file: