Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes | Friends
widget_rep Class Reference

#include <widget.hpp>

Inheritance diagram for widget_rep:
Inheritance graph
[legend]
Collaboration diagram for widget_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 widget_rep ()
virtual ~widget_rep ()
virtual tm_ostreamprint (tm_ostream &out)
virtual void send (slot s, blackbox val)
virtual blackbox query (slot s, int type_id)
virtual widget read (slot s, blackbox index)
virtual void write (slot s, blackbox index, widget w)
virtual void notify (slot s, blackbox new_val)
virtual void connect (slot s, widget w2, slot s2)
virtual void deconnect (slot s, widget w2, slot s2)

Public Attributes

int ref_count

Protected Attributes

list< widget_connectionin
list< widget_connectionout

Friends

class widget

Detailed Description

Definition at line 34 of file widget.hpp.


Constructor & Destructor Documentation

Definition at line 132 of file widget.cpp.

{}
widget_rep::~widget_rep ( ) [virtual]

Definition at line 134 of file widget.cpp.

                         {
  list<widget_connection> l= in;
  while (!is_nil (l)) {
    remove (l->item->w1->out, l->item);
    l= l->next;
  }
  l= out;
  while (!is_nil (l)) {
    remove (l->item->w2->in, l->item);
    l= l->next;
  }
  in = list<widget_connection> ();
  out= list<widget_connection> ();
}

Here is the call graph for this function:


Member Function Documentation

void widget_rep::connect ( slot  s,
widget  w2,
slot  s2 
) [virtual]

Definition at line 150 of file widget.cpp.

                                               {
  widget_connection con (this, s, w2.rep, s2);
  insert (out, con);
  insert (w2->in, con);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void widget_rep::deconnect ( slot  s,
widget  w2,
slot  s2 
) [virtual]

Definition at line 157 of file widget.cpp.

                                                 {
  widget_connection con (this, s, w2.rep, s2);
  remove (out, con);
  remove (w2->in, con);
}
void widget_rep::notify ( slot  s,
blackbox  new_val 
) [virtual]

Reimplemented in aqua_input_widget_rep, aqua_chooser_widget_rep, qt_window_widget_rep, aqua_view_widget_rep, aqua_chooser_widget_rep, qt_input_widget_rep, qt_chooser_widget_rep, simple_widget_rep, simple_widget_rep, qt_view_widget_rep, wk_widget_rep, and qt_window_widget_rep.

Definition at line 194 of file widget.cpp.

                                            {
  list<widget_connection> l= out;
  while (!is_nil (l)) {
    l->item->w2->send (s, new_val);
    l= l->next;
  }  
}

Here is the call graph for this function:

tm_ostream & widget_rep::print ( tm_ostream out) [virtual]

Reimplemented in wk_widget_rep.

Definition at line 207 of file widget.cpp.

                                  {
  return out << "widget";
}
blackbox widget_rep::query ( slot  s,
int  type_id 
) [virtual]
widget widget_rep::read ( slot  s,
blackbox  index 
) [virtual]
void widget_rep::send ( slot  s,
blackbox  val 
) [virtual]
void widget_rep::write ( slot  s,
blackbox  index,
widget  w 
) [virtual]

Friends And Related Function Documentation

friend class widget [friend]

Definition at line 59 of file widget.hpp.


Member Data Documentation

Definition at line 36 of file widget.hpp.

Definition at line 37 of file widget.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.


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