Back to index

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

#include <aqua_basic_widgets.h>

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

List of all members.

Public Member Functions

 aqua_image_widget_rep (url _image)
virtual TMMenuItemas_menuitem ()
virtual widget plain_window_widget (string s)
virtual widget make_popup_widget ()
virtual widget popup_window_widget (string s)
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

url image
int ref_count

Protected Attributes

list< widget_connectionin
list< widget_connectionout

Friends

class widget

Detailed Description

Definition at line 25 of file aqua_basic_widgets.h.


Constructor & Destructor Documentation

Definition at line 29 of file aqua_basic_widgets.h.

: image(_image) {};

Member Function Documentation

Reimplemented from aqua_widget_rep.

Definition at line 385 of file aqua_menu.mm.

{
#if 0
  CGImageRef cgi = the_aqua_renderer()->xpm_image(image);
  NSImage *img = [[[NSImage alloc] init] autorelease];
  [img addRepresentation:[[NSBitmapImageRep alloc ] initWithCGImage: cgi]];
#else
  NSImage *img = the_aqua_renderer()->xpm_image(image);
#endif
  //   TMMenuItem *mi = [[[TMMenuItem alloc] initWithTitle:to_nsstring(as_string(file_name)) action:NULL keyEquivalent:@""] autorelease];
  TMMenuItem *mi = [[[TMMenuItem alloc] initWithTitle:@"" action:NULL keyEquivalent:@""] autorelease];
  [mi setRepresentedObject:img];
  [mi setImage:img];
  
  return  mi;
}

Here is the call graph for this function:

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);
}
widget aqua_widget_rep::make_popup_widget ( ) [virtual, inherited]

Reimplemented in aqua_menu_rep, and aqua_menu_rep.

Definition at line 56 of file aqua_widget.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 ();
}
widget aqua_widget_rep::popup_window_widget ( string  s) [virtual, inherited]

Reimplemented in aqua_menu_rep, and aqua_menu_rep.

Definition at line 61 of file aqua_widget.mm.

                                              {
  (void) s;
  return widget();
}

Here is the caller 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 widget_rep::query ( slot  s,
int  type_id 
) [virtual, inherited]
widget widget_rep::read ( slot  s,
blackbox  index 
) [virtual, inherited]
void widget_rep::send ( slot  s,
blackbox  val 
) [virtual, inherited]
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

Definition at line 27 of file aqua_basic_widgets.h.

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

Definition at line 36 of file widget.hpp.

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