Back to index

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

List of all members.

Public Member Functions

() - aqua_menu_rep
() - ~aqua_menu_rep
(virtual void) - send
(virtual widget- make_popup_widget
(virtual widget- popup_window_widget
(virtual TMMenuItem *) - as_menuitem
(widget- make_popup_widget
(widget- popup_window_widget
(void) - send
virtual widget plain_window_widget (string s)
virtual tm_ostreamprint (tm_ostream &out)
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

NSMenuItem * item
int ref_count

Protected Attributes

list< widget_connectionin
list< widget_connectionout

Friends

class widget

Detailed Description

Definition at line 32 of file aqua_menu.mm.


Constructor & Destructor Documentation

- aqua_menu_rep: (NSMenuItem *)  _item

Definition at line 35 of file aqua_menu.mm.

: item(_item) { [item retain]; }
- aqua_menu_rep:

Definition at line 36 of file aqua_menu.mm.

{ [item release]; }

Member Function Documentation

- (virtual TMMenuItem*) as_menuitem

Reimplemented from aqua_widget_rep.

Definition at line 42 of file aqua_menu.mm.

{ return (TMMenuItem *)item; }
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);
}

Reimplemented from aqua_widget_rep.

Reimplemented from aqua_widget_rep.

Definition at line 46 of file aqua_menu.mm.

{
       return this;
}
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:

widget aqua_widget_rep::plain_window_widget ( string  s) [virtual, inherited]

Reimplemented in aqua_input_widget_rep, aqua_chooser_widget_rep, aqua_view_widget_rep, and aqua_chooser_widget_rep.

Definition at line 50 of file aqua_widget.mm.

                                              {
  (void) s;
  return widget ();
}
- (virtual widget) popup_window_widget (string s

Reimplemented from aqua_widget_rep.

Reimplemented from aqua_widget_rep.

Definition at line 51 of file aqua_menu.mm.

{
       [item setTitle:to_nsstring(s)];
       return this;
}
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 widget_rep::query ( slot  s,
int  type_id 
) [virtual, inherited]
widget widget_rep::read ( slot  s,
blackbox  index 
) [virtual, inherited]
- (virtual void) send (slot s
(blackbox val 

Reimplemented from widget_rep.

- (void) send (slot s
(blackbox val 

Reimplemented from widget_rep.

Definition at line 58 of file aqua_menu.mm.

                                              {
  switch (s) {
  case SLOT_POSITION:
    {
      ASSERT (type_box (val) == type_helper<coord2>::id, "type mismatch");
    }
    break;
  case SLOT_VISIBILITY:
    {  
      check_type<bool> (val, "SLOT_VISIBILITY");
      bool flag = open_box<bool> (val);
      (void) flag;
    }  
    break;
  case SLOT_MOUSE_GRAB:
    {  
      check_type<bool> (val, "SLOT_MOUSE_GRAB");
      bool flag = open_box<bool> (val);
      (void) flag;
      [NSMenu popUpContextMenu:[item submenu] withEvent:[NSApp currentEvent] forView:( (aqua_view_widget_rep*)(the_keyboard_focus.rep))->view ];
    }  
    //               send_mouse_grab (THIS, val);
    break;
    
  default:
    FAILED ("cannot handle slot type");
  }
}

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 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.

- (NSMenuItem*) item

Definition at line 34 of file aqua_menu.mm.

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

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 file: