Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | Friends
aqua_field_widget_rep Class Reference
Inheritance diagram for aqua_field_widget_rep:
Inheritance graph
[legend]
Collaboration diagram for aqua_field_widget_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

() - aqua_field_widget_rep
(virtual void) - send
(virtual blackbox- query
virtual tm_ostreamprint (tm_ostream &out)
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

Private Attributes

string prompt
string input
string type
array< stringproposals
aqua_input_widget_repparent

Friends

class aqua_input_widget_rep
class widget

Detailed Description

Definition at line 313 of file aqua_dialogues.mm.


Constructor & Destructor Documentation

- aqua_field_widget_rep: (aqua_input_widget_rep *)  _parent

Definition at line 320 of file aqua_dialogues.mm.

: widget_rep(), prompt(""), input(""),  proposals(), parent(_parent) {};

Member Function Documentation

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

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, inherited]

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, inherited]

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, inherited]

Reimplemented in wk_widget_rep.

Definition at line 207 of file widget.cpp.

                                  {
  return out << "widget";
}
- (blackbox) query (slot s
(int)  type_id 

Reimplemented from widget_rep.

Definition at line 362 of file aqua_dialogues.mm.

                                                 {
  switch (s) {
  case SLOT_STRING_INPUT:
    {
      TYPE_CHECK (type_id == type_helper<string>::id);
      return close_box<string> (input);
    }
    
  default:
    return widget_rep::query(s,type_id);
  }
}
widget widget_rep::read ( slot  s,
blackbox  index 
) [virtual, inherited]
- (void) send (slot s
(blackbox val 

Reimplemented from widget_rep.

Definition at line 329 of file aqua_dialogues.mm.

                                                 {
  switch (s) {
  case SLOT_STRING_INPUT:
    {
      TYPE_CHECK (type_box (val) == type_helper<string>::id);
      input =  open_box<string> (val);
    }
    //        send_string (THIS, "input", val);
    break;
  case SLOT_INPUT_TYPE:
    {
      TYPE_CHECK (type_box (val) == type_helper<string>::id);
      type =  open_box<string> (val);
    }
    break;
  case SLOT_INPUT_PROPOSAL:
    {
      TYPE_CHECK (type_box (val) == type_helper<string>::id);
      proposals <<  open_box<string> (val);
    }
    //send_string (THIS, "default", val);
    break;
  case SLOT_KEYBOARD_FOCUS:
    {
      parent->send(s,val);
    }
    break;
  default:
    widget_rep::send(s,val);
  }
}

Here is the call graph for this function:

void widget_rep::write ( slot  s,
blackbox  index,
widget  w 
) [virtual, inherited]

Friends And Related Function Documentation

- (friend class) aqua_input_widget_rep [friend]

Definition at line 324 of file aqua_dialogues.mm.

friend class widget [friend, inherited]

Definition at line 59 of file widget.hpp.


Member Data Documentation

list<widget_connection> widget_rep::in [protected, inherited]

Definition at line 36 of file widget.hpp.

- (string) input [private]

Definition at line 315 of file aqua_dialogues.mm.

list<widget_connection> widget_rep::out [protected, inherited]

Definition at line 37 of file widget.hpp.

- (aqua_input_widget_rep*) parent [private]

Definition at line 318 of file aqua_dialogues.mm.

- (string) prompt [private]

Definition at line 314 of file aqua_dialogues.mm.

- (array<string>) proposals [private]

Definition at line 317 of file aqua_dialogues.mm.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

- (string) type [private]

Definition at line 316 of file aqua_dialogues.mm.


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