Back to index

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

List of all members.

Public Member Functions

 qt_field_widget_rep (qt_input_widget_rep *_parent)
virtual void send (slot s, blackbox val)
virtual blackbox query (slot s, int type_id)
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
qt_input_widget_repparent

Friends

class qt_input_widget_rep
class widget

Detailed Description

Definition at line 58 of file qt_dialogues.cpp.


Constructor & Destructor Documentation

Definition at line 65 of file qt_dialogues.cpp.

                                                   :
    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 qt_field_widget_rep::query ( slot  s,
int  type_id 
) [virtual]

Reimplemented from widget_rep.

Definition at line 102 of file qt_dialogues.cpp.

                                               {
  if (DEBUG_QT)
    cout << "qt_field_widget_rep::query " << slot_name(s) << LF;
  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);
  }
}

Here is the call graph for this function:

widget widget_rep::read ( slot  s,
blackbox  index 
) [virtual, inherited]
void qt_field_widget_rep::send ( slot  s,
blackbox  val 
) [virtual]

Reimplemented from widget_rep.

Definition at line 75 of file qt_dialogues.cpp.

                                               {
  if (DEBUG_QT)
    cout << "qt_field_widget_rep::send " << slot_name(s) << LF;
  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 qt_input_widget_rep [friend]

Definition at line 71 of file qt_dialogues.cpp.

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.

Definition at line 60 of file qt_dialogues.cpp.

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

Definition at line 37 of file widget.hpp.

Definition at line 63 of file qt_dialogues.cpp.

Definition at line 59 of file qt_dialogues.cpp.

Definition at line 62 of file qt_dialogues.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 61 of file qt_dialogues.cpp.


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