Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes | Events | Friends
simple_widget_rep Class Reference

#include <aqua_simple_widget.h>

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

List of all members.

Public Member Functions

 simple_widget_rep ()
virtual void handle_get_size_hint (SI &w, SI &h)
virtual void handle_notify_resize (SI w, SI h)
virtual void handle_keypress (string key, time_t t)
virtual void handle_keyboard_focus (bool has_focus, time_t t)
virtual void handle_mouse (string kind, SI x, SI y, int mods, time_t t)
virtual void handle_set_shrinking_factor (int sf)
virtual void handle_clear (SI x1, SI y1, SI x2, SI y2)
virtual void handle_repaint (SI x1, SI y1, SI x2, SI y2)
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 TMMenuItemas_menuitem ()
 simple_widget_rep ()
virtual void handle_get_size_hint (SI &w, SI &h)
virtual void handle_notify_resize (SI w, SI h)
virtual void handle_keypress (string key, time_t t)
virtual void handle_keyboard_focus (bool has_focus, time_t t)
virtual void handle_mouse (string kind, SI x, SI y, int mods, time_t t)
virtual void handle_set_shrinking_factor (int sf)
virtual void handle_clear (SI x1, SI y1, SI x2, SI y2)
virtual void handle_repaint (SI x1, SI y1, SI x2, SI y2)
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 QAction * as_qaction ()
virtual QWidget * get_canvas ()
 Get a texmacs canvas (if available).
QTMWidgettm_canvas ()
 simple_widget_rep ()
virtual void handle_get_size_hint (SI &w, SI &h)
virtual void handle_notify_resize (SI w, SI h)
virtual void handle_keypress (string key, time_t t)
virtual void handle_keyboard_focus (bool has_focus, time_t t)
virtual void handle_mouse (string kind, SI x, SI y, int mods, time_t t)
virtual void handle_set_shrinking_factor (int sf)
virtual void handle_clear (SI x1, SI y1, SI x2, SI y2)
virtual void handle_repaint (SI x1, SI y1, SI x2, SI y2)
void handle_get_size (get_size_event ev)
void handle_attach_window (attach_window_event ev)
void handle_resize (resize_event ev)
void handle_keypress (keypress_event ev)
void handle_keyboard_focus (keyboard_focus_event ev)
void handle_mouse (mouse_event ev)
void handle_set_integer (set_integer_event ev)
void handle_clear (clear_event ev)
void handle_repaint (repaint_event ev)
void handle_set_coord2 (set_coord2_event ev)
void handle_get_coord2 (get_coord2_event ev)
virtual void handle_get_integer (get_integer_event ev)
virtual void handle_get_double (get_double_event ev)
virtual void handle_get_string (get_string_event ev)
virtual void handle_get_coord1 (get_coord1_event ev)
virtual void handle_get_coord3 (get_coord3_event ev)
virtual void handle_get_coord4 (get_coord4_event ev)
virtual void handle_set_double (set_double_event ev)
virtual void handle_set_string (set_string_event ev)
virtual void handle_set_coord1 (set_coord1_event ev)
virtual void handle_set_coord3 (set_coord3_event ev)
virtual void handle_set_coord4 (set_coord4_event ev)
virtual bool handle (event ev)
virtual void handle_get_widget (get_widget_event ev)
virtual void handle_set_widget (set_widget_event ev)
virtual void handle_position (position_event ev)
virtual void handle_move (move_event ev)
virtual void handle_destroy (destroy_event ev)
virtual void handle_alarm (alarm_event ev)
virtual void handle_update (update_event ev)
virtual void handle_refresh (refresh_event ev)
virtual void handle_invalidate (invalidate_event ev)
virtual void handle_keyboard_grab (keyboard_grab_event ev)
virtual void handle_mouse_grab (mouse_grab_event ev)
virtual void handle_request_alarm (request_alarm_event ev)
virtual void handle_find_child (find_child_event ev)
virtual operator tree ()=0
virtual tm_ostreamprint (tm_ostream &out)
virtual bool is_window_widget ()
SI x1 ()
SI y1 ()
SI x2 ()
SI y2 ()
bool attached ()
void wk_error (string message)
virtual void connect (slot s, widget w2, slot s2)
virtual void deconnect (slot s, widget w2, slot s2)
virtual widget plain_window_widget (string s, command q)
 Sets the view's title to _title, then constructs a wrapper widget for the view and returns it.
void set_current_renderer (basic_renderer _r)
basic_renderer get_current_renderer ()
virtual QWidget * as_qwidget ()
 Returns the actual QWidget wrapped by this qt_widget_rep.
virtual widget make_popup_widget ()
virtual widget popup_window_widget (string s)
virtual QMenu * get_qmenu ()
 This method must not give ownership of the menu to the caller, thus allowing menu caching at the TeXmacs level.
virtual QLayoutItem * as_qlayoutitem ()
 Returns a QLayoutItem...
virtual widget plain_window_widget (string s)
virtual widget make_popup_widget ()
virtual widget popup_window_widget (string s)

Public Attributes

window win
SI ox
SI oy
SI w
SI h
gravity grav
array< wk_widgeta
array< stringname
int ref_count
QWidget * view
basic_renderer current_renderer
int ref_count
NSViewview
int ref_count

Protected Attributes

int ptr_focus
list< widget_connectionin
list< widget_connectionout
list< widget_connectionin
list< widget_connectionout
list< widget_connectionin
list< widget_connectionout

Events

emit_position(SI ox, SI oy, SI
w, SI h, gravity grav=north_west)
emit_invalidate(SI x1, SI y1,
SI x2, SI y2) emit_mouse(mouse_event
ev) emit_mouse(mouse_event ev,
string type) emit_mouse(mouse_event
ev, string type, SI x, SI y)
emit_clear(SI x1, SI y1, SI x2,
SI y2) emit_repaint(SI x1, SI
y1, SI x2, SI y2, bool &stop)
emit_find_child(SI x, SI y,
int &which) virtual void 
handle_get_size (get_size_event ev)

Friends

class wk_widget
class widget
class widget
class widget

Detailed Description

Definition at line 19 of file aqua_simple_widget.h.


Constructor & Destructor Documentation

Definition at line 891 of file aqua_widget.mm.

: aqua_view_widget_rep ([[[TMView alloc] initWithFrame:NSMakeRect(0,0,1000,1000)] autorelease]) 
{ 
  [(TMView*)view setWidget:this];
}

Member Function Documentation

Reimplemented from aqua_widget_rep.

Definition at line 482 of file aqua_menu.mm.

{
  TMMenuItem *mi = [[[TMMenuItem alloc] init] autorelease];
  [mi setWidget:this];
  return mi;
}

Here is the call graph for this function:

QAction * simple_widget_rep::as_qaction ( ) [virtual]

Reimplemented from qt_widget_rep.

Definition at line 223 of file qt_menu.cpp.

                               {
  QAction* a= new QTMAction (NULL);
  QPixmap pxm (impress (this));
  QIcon icon (pxm);
  a->setIcon (icon);
  return a;
}

Here is the call graph for this function:

virtual QLayoutItem* qt_widget_rep::as_qlayoutitem ( ) [inline, virtual, inherited]

Returns a QLayoutItem...

Reimplemented in qt_ui_element_rep, and qt_input_text_widget_rep.

Definition at line 84 of file qt_widget.hpp.

{ return NULL; }
virtual QWidget* qt_view_widget_rep::as_qwidget ( ) [inline, virtual, inherited]

Returns the actual QWidget wrapped by this qt_widget_rep.

This is used to connect to signals, to change properties of the QWidget, etc.

Reimplemented from qt_widget_rep.

Definition at line 42 of file qt_view_widget.hpp.

{ return view ; };
bool wk_widget_rep::attached ( ) [inherited]

Definition at line 108 of file wk_widget.cpp.

                         {
  return win != NULL;
}

Here is the caller 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);
}
virtual QWidget* simple_widget_rep::get_canvas ( ) [inline, virtual]

Get a texmacs canvas (if available).

Reimplemented from qt_widget_rep.

Definition at line 46 of file qt_simple_widget.hpp.

{ return tm_canvas(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 41 of file qt_view_widget.hpp.

{  return current_renderer; }

Here is the caller graph for this function:

virtual QMenu* qt_widget_rep::get_qmenu ( ) [inline, virtual, inherited]

This method must not give ownership of the menu to the caller, thus allowing menu caching at the TeXmacs level.

Called only by code which attaches root menus in the GUI elements.

Reimplemented in qt_ui_element_rep, and qt_menu_rep.

Definition at line 74 of file qt_widget.hpp.

{ return NULL; }
bool attribute_widget_rep::handle ( event  ev) [virtual, inherited]

Reimplemented from basic_widget_rep.

Reimplemented in popup_button_rep, extend_widget_rep, minibar_widget_rep, and scroll_widget_rep.

Definition at line 124 of file attribute_widget.cpp.

                                      {
  if (!is_extra_width_event (ev))
    if (basic_widget_rep::handle (ev))
      return true;
  switch (ev->type) {
  case GET_INTEGER_EVENT:
    handle_get_integer (ev);
    return true;
  case GET_DOUBLE_EVENT:
    handle_get_double (ev);
    return true;
  case GET_STRING_EVENT:
    handle_get_string (ev);
    return true;
  case GET_COORD1_EVENT:
    handle_get_coord1 (ev);
    return true;
  case GET_COORD2_EVENT:
    handle_get_coord2 (ev);
    return true;
  case GET_COORD3_EVENT:
    handle_get_coord3 (ev);
    return true;
  case GET_COORD4_EVENT:
    handle_get_coord4 (ev);
    return true;

  case SET_INTEGER_EVENT:
    handle_set_integer (ev);
    return true;
  case SET_DOUBLE_EVENT:
    handle_set_double (ev);
    return true;
  case SET_STRING_EVENT:
    handle_set_string (ev);
    return true;
  case SET_COORD1_EVENT:
    handle_set_coord1 (ev);
    return true;
  case SET_COORD2_EVENT:
    handle_set_coord2 (ev);
    return true;
  case SET_COORD3_EVENT:
    handle_set_coord3 (ev);
    return true;
  case SET_COORD4_EVENT:
    handle_set_coord4 (ev);
    return true;
  }
  return false;
}

Here is the call graph for this function:

void basic_widget_rep::handle_alarm ( alarm_event  ev) [virtual, inherited]

Reimplemented in ver_scrollbar_widget_rep, and hor_scrollbar_widget_rep.

Definition at line 182 of file basic_widget.cpp.

                                              {
  cout << "Alarm: " << ev->message << "\n";
}

Here is the caller graph for this function:

void simple_widget_rep::handle_attach_window ( attach_window_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 76 of file simple_wk_widget.cpp.

virtual void simple_widget_rep::handle_clear ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_clear ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep.

Definition at line 933 of file aqua_widget.mm.

                                                           {
  (void) x1; (void) y1; (void) x2; (void) y2;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_clear ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_clear ( clear_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 107 of file simple_wk_widget.cpp.

                                               {
  handle_clear (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

void basic_widget_rep::handle_destroy ( destroy_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, wrapped_widget_rep, texmacs_widget_rep, and inputs_list_widget_rep.

Definition at line 145 of file basic_widget.cpp.

                                                  { (void) ev;
  int i;
  for (i=0; i<N(a); i++)
    a[i] << emit_destroy ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_find_child ( find_child_event  ev) [virtual, inherited]

Reimplemented in vertical_list_rep, tabs_widget_rep, horizontal_array_rep, horizontal_list_rep, and hsplit_widget_rep.

Definition at line 231 of file basic_widget.cpp.

                                                        {
  int& i= ev->which;
  for (i=0; i<N(a); i++)
    if ((ev->x >= a[i]->x1()-ox) && (ev->x < a[i]->x2()-ox) &&
       (ev->y >= a[i]->y1()-oy) && (ev->y < a[i]->y2()-oy)) return;
  i= -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_coord1 ( get_coord1_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 48 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord1 attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_get_coord2 ( get_coord2_event  ev) [virtual]

Reimplemented from attribute_widget_rep.

Definition at line 123 of file simple_wk_widget.cpp.

                                                         {
  if (ev->which == "extra width") { ev->c1= ev->c2= 0; return; }
  else WK_FAILED ("could not get coord2 attribute " * ev->which);
}
void attribute_widget_rep::handle_get_coord3 ( get_coord3_event  ev) [virtual, inherited]

Definition at line 58 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord3 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_coord4 ( get_coord4_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 63 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get coord4 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_double ( get_double_event  ev) [virtual, inherited]

Definition at line 38 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get double attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_get_integer ( get_integer_event  ev) [virtual, inherited]

Definition at line 33 of file attribute_widget.cpp.

                                                              {
  WK_FAILED ("could not get integer attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_get_size ( get_size_event  ev)

Definition at line 71 of file simple_wk_widget.cpp.

                                                     {
  handle_get_size_hint (ev->w, ev->h);
}

Here is the call graph for this function:

virtual void simple_widget_rep::handle_get_size_hint ( SI w,
SI h 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

void simple_widget_rep::handle_get_size_hint ( SI w,
SI h 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

Definition at line 903 of file aqua_widget.mm.

                                                     {
  gui_root_extents (w, h);  
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_get_size_hint ( SI w,
SI h 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

void attribute_widget_rep::handle_get_string ( get_string_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, input_widget_rep, and inputs_list_widget_rep.

Definition at line 43 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not get string attribute " * ev->which);
}

Here is the caller graph for this function:

void basic_widget_rep::handle_get_widget ( get_widget_event  ev) [virtual, inherited]

Reimplemented in texmacs_widget_rep, canvas_widget_rep, and switch_widget_rep.

Definition at line 99 of file basic_widget.cpp.

                                                        {
  int i;
  for (i=0; i<N(a); i++)
    if (name[i] == ev->which) {
      ev->w= a[i];
      return;
    }
  WK_FAILED ("could not get widget attribute " * ev->which);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_invalidate ( invalidate_event  ev) [virtual, inherited]

Definition at line 216 of file basic_widget.cpp.

                                                        {
  if (ev->all_flag) win->invalidate (x1()-ox, y1()-oy, x2()-ox, y2()-oy);
  else win->invalidate (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_keyboard_focus ( bool  has_focus,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_keyboard_focus ( bool  has_focus,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

Definition at line 918 of file aqua_widget.mm.

                                                                  {
  (void) has_focus; (void) t;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_keyboard_focus ( bool  has_focus,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_keyboard_focus ( keyboard_focus_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 91 of file simple_wk_widget.cpp.

                                                                 {
  handle_keyboard_focus (ev->flag, ev->t);
}

Here is the call graph for this function:

void basic_widget_rep::handle_keyboard_grab ( keyboard_grab_event  ev) [virtual, inherited]

Definition at line 222 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_keypress ( string  key,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_keypress ( string  key,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

Definition at line 913 of file aqua_widget.mm.

                                                        {
  (void) key; (void) t;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_keypress ( string  key,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_keypress ( keypress_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 86 of file simple_wk_widget.cpp.

                                                     {
  handle_keypress (ev->key, ev->t);
}

Here is the call graph for this function:

virtual void simple_widget_rep::handle_mouse ( string  kind,
SI  x,
SI  y,
int  mods,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_mouse ( string  kind,
SI  x,
SI  y,
int  mods,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

Definition at line 923 of file aqua_widget.mm.

                                                                            {
  (void) kind; (void) x; (void) y; (void) mods; (void) t;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_mouse ( string  kind,
SI  x,
SI  y,
int  mods,
time_t  t 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_mouse ( mouse_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 96 of file simple_wk_widget.cpp.

                                               {
  handle_mouse (ev->type, ev->x, ev->y, ev->mods, ev->t);
}

Here is the call graph for this function:

void basic_widget_rep::handle_mouse_grab ( mouse_grab_event  ev) [virtual, inherited]

Reimplemented in popup_widget_rep.

Definition at line 225 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

void basic_widget_rep::handle_move ( move_event  ev) [virtual, inherited]

Definition at line 137 of file basic_widget.cpp.

                                            { (void) ev;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_notify_resize ( SI  w,
SI  h 
) [virtual]

Reimplemented in edit_interface_rep.

void simple_widget_rep::handle_notify_resize ( SI  w,
SI  h 
) [virtual]

Reimplemented in edit_interface_rep.

Definition at line 908 of file aqua_widget.mm.

                                                   {
  (void) w; (void) h; 
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_notify_resize ( SI  w,
SI  h 
) [virtual]

Reimplemented in edit_interface_rep.

void basic_widget_rep::handle_position ( position_event  ev) [virtual, inherited]

Reimplemented in vertical_list_rep, balloon_decoration_widget_rep, scrollable_widget_rep, canvas_widget_rep, button_widget_rep, popup_widget_rep, horizontal_array_rep, tabs_widget_rep, horizontal_list_rep, hsplit_widget_rep, tile_rep, extend_widget_rep, and minibar_widget_rep.

Definition at line 130 of file basic_widget.cpp.

                                                    { (void) ev;
  int i;
  for (i=0; i<N(a); i++)
    a[i] << emit_position (0, 0, w, h, grav);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_refresh ( refresh_event  ev) [virtual, inherited]

Reimplemented in refresh_widget_rep.

Definition at line 210 of file basic_widget.cpp.

                                                  { (void) ev;
  for (int i=0; i<N(a); i++)
    a[i] << emit_refresh ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_repaint ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

void simple_widget_rep::handle_repaint ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

Definition at line 938 of file aqua_widget.mm.

                                                             {
  (void) x1; (void) y1; (void) x2; (void) y2;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_repaint ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual]

Reimplemented in edit_interface_rep, and box_widget_rep.

void simple_widget_rep::handle_repaint ( repaint_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 112 of file simple_wk_widget.cpp.

                                                   {
  handle_repaint (ev->x1, ev->y1, ev->x2, ev->y2);
}

Here is the call graph for this function:

void basic_widget_rep::handle_request_alarm ( request_alarm_event  ev) [virtual, inherited]

Definition at line 228 of file basic_widget.cpp.

{ (void) ev; }

Here is the caller graph for this function:

void simple_widget_rep::handle_resize ( resize_event  ev) [virtual]

Reimplemented from basic_widget_rep.

Definition at line 81 of file simple_wk_widget.cpp.

                                                 { (void) ev;
  handle_notify_resize (0, 0); // FIXME
}

Here is the call graph for this function:

void attribute_widget_rep::handle_set_coord1 ( set_coord1_event  ev) [virtual, inherited]

Reimplemented in scrollbar_rep.

Definition at line 87 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord1 attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_set_coord2 ( set_coord2_event  ev) [virtual]

Reimplemented from attribute_widget_rep.

Definition at line 117 of file simple_wk_widget.cpp.

                                                         {
  if (ev->which == "extra width" && ev->c1 == 0 && ev->c2 == 0) return;
  else WK_FAILED ("could not set coord2 attribute " * ev->which);
}
void attribute_widget_rep::handle_set_coord3 ( set_coord3_event  ev) [virtual, inherited]

Definition at line 97 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord3 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_set_coord4 ( set_coord4_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep.

Definition at line 102 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set coord4 attribute " * ev->which);
}

Here is the caller graph for this function:

void attribute_widget_rep::handle_set_double ( set_double_event  ev) [virtual, inherited]

Definition at line 77 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set double attribute " * ev->which);
}

Here is the caller graph for this function:

void simple_widget_rep::handle_set_integer ( set_integer_event  ev) [virtual]

Reimplemented from attribute_widget_rep.

Definition at line 101 of file simple_wk_widget.cpp.

                                                           {
  if (ev->which == "shrinking factor")
    handle_set_shrinking_factor (ev->i);
}

Here is the call graph for this function:

virtual void simple_widget_rep::handle_set_shrinking_factor ( int  sf) [virtual]

Reimplemented in edit_interface_rep.

Reimplemented in edit_interface_rep.

Definition at line 928 of file aqua_widget.mm.

                                                      {
  (void) sf;
}

Here is the caller graph for this function:

virtual void simple_widget_rep::handle_set_shrinking_factor ( int  sf) [virtual]

Reimplemented in edit_interface_rep.

void attribute_widget_rep::handle_set_string ( set_string_event  ev) [virtual, inherited]

Reimplemented in file_chooser_widget_rep, image_widget_rep, file_list_widget_rep, input_widget_rep, and inputs_list_widget_rep.

Definition at line 82 of file attribute_widget.cpp.

                                                            {
  WK_FAILED ("could not set string attribute " * ev->which);
}

Here is the caller graph for this function:

void basic_widget_rep::handle_set_widget ( set_widget_event  ev) [virtual, inherited]

Reimplemented in scrollable_widget_rep, texmacs_widget_rep, canvas_widget_rep, and switch_widget_rep.

Definition at line 110 of file basic_widget.cpp.

                                                        {
  int i;
  for (i=0; i<N(a); i++)
    if (name[i] == ev->which) { a[i]= ev->w; return; }
  WK_FAILED ("could not set widget attribute " * ev->which);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void basic_widget_rep::handle_update ( update_event  ev) [virtual, inherited]

Definition at line 201 of file basic_widget.cpp.

                                                { (void) ev;
  if (attached ()) {
    this << emit_attach_window (win);
    this << emit_reposition ();
    this << emit_invalidate_all ();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool wk_widget_rep::is_window_widget ( ) [virtual, inherited]

Reimplemented in window_widget_rep.

Definition at line 113 of file wk_widget.cpp.

                                 {
  return false;
}

Here is the caller graph for this function:

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

Reimplemented in qt_ui_element_rep, and qt_menu_rep.

Definition at line 34 of file qt_widget.cpp.

                                  {
  return this;
}
void simple_widget_rep::notify ( slot  s,
blackbox  new_val 
) [virtual]

Reimplemented from aqua_view_widget_rep.

Definition at line 996 of file aqua_widget.mm.

                                                   {
  aqua_view_widget_rep::notify (s, new_val);
}
virtual void simple_widget_rep::notify ( slot  s,
blackbox  new_val 
) [virtual]

Reimplemented from aqua_view_widget_rep.

virtual wk_widget_rep::operator tree ( ) [pure virtual, inherited]
widget qt_view_widget_rep::plain_window_widget ( string  s,
command  q 
) [virtual, inherited]

Sets the view's title to _title, then constructs a wrapper widget for the view and returns it.

Reimplemented from qt_widget_rep.

Reimplemented in qt_tm_widget_rep.

Definition at line 237 of file qt_view_widget.cpp.

                                                                 {
  view->setWindowTitle (to_qstring (_title));
  widget wid= tm_new<qt_window_widget_rep> (view, q);
    //FIXME: is this the right thing to do?
  return wid;
}

Here is the call graph for this function:

Reimplemented from aqua_widget_rep.

Definition at line 203 of file aqua_widget.mm.

{
  NSRect screen_frame = [[NSScreen mainScreen] visibleFrame];
       
  NSWindow *nsw = [[[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) 
                                 styleMask:NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask
                                 backing:NSBackingStoreBuffered
                                 defer:NO] autorelease];
  // NSView *view = ((aqua_view_widget_rep*)w.rep)->get_nsview();
  //   NSRect frame = [[nsw contentView] frame];
  //   [view setFrame:frame];
  [nsw setContentView:view];
  [nsw setTitle:to_nsstring(s)];
  [nsw setAcceptsMouseMovedEvents:YES];
  //   [[nsw contentView] addSubview:view];
  //   [nsw setToolbar:((aqua_tm_widget_rep*)w.rep)->toolbar];
  widget wid =  tm_new <aqua_window_widget_rep> (nsw);
  return wid; 
}
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:

widget qt_widget_rep::popup_window_widget ( string  s) [virtual, inherited]

Reimplemented in qt_ui_element_rep, and qt_menu_rep.

Definition at line 39 of file qt_widget.cpp.

                                            {
  (void) s;
  return widget ();
}
tm_ostream & wk_widget_rep::print ( tm_ostream out) [virtual, inherited]

Reimplemented from widget_rep.

Definition at line 145 of file wk_widget.cpp.

                                     {
  print_tree (out, operator tree (), 0);
  return out;  
}

Here is the call graph for this function:

blackbox simple_widget_rep::query ( slot  s,
int  type_id 
) [virtual]

Reimplemented from aqua_view_widget_rep.

Definition at line 991 of file aqua_widget.mm.

                                             {
  return aqua_view_widget_rep::query(s,type_id);
}
virtual blackbox simple_widget_rep::query ( slot  s,
int  type_id 
) [virtual]

Reimplemented from aqua_view_widget_rep.

widget simple_widget_rep::read ( slot  s,
blackbox  index 
) [virtual]

Reimplemented from aqua_view_widget_rep.

Definition at line 1005 of file aqua_widget.mm.

                                               {
  return aqua_view_widget_rep::read(s,index);
}
virtual widget simple_widget_rep::read ( slot  s,
blackbox  index 
) [virtual]

Reimplemented from aqua_view_widget_rep.

void simple_widget_rep::send ( slot  s,
blackbox  val 
) [virtual]

Reimplemented from aqua_view_widget_rep.

Definition at line 944 of file aqua_widget.mm.

                                             {
  if (DEBUG_QT) cout << "aqua_simple_widget_rep::send " << slot_name(s) << LF;
  switch (s) {
    case SLOT_INVALIDATE:
    {
      TYPE_CHECK (type_box (val) == type_helper<coord4>::id);
      coord4 p= open_box<coord4> (val);
      if (DEBUG_QT)
        cout << "Invalidating rect " << rectangle(p.x1,p.x2,p.x3,p.x4) << LF;
      aqua_renderer_rep* ren = (aqua_renderer_rep*)get_renderer (this);
      if (ren) {
        SI x1 = p.x1, y1 = p.x2, x2 = p.x3, y2 = p.x4;    
        ren->outer_round (x1, y1, x2, y2);
        ren->decode (x1, y1);
        ren->decode (x2, y2);
        //tm_canvas()->invalidate_rect (x1,y2,x2,y1);
      }
    }
      break;
    case SLOT_INVALIDATE_ALL:
    {
      ASSERT (is_nil (val), "type mismatch");
      if (DEBUG_QT)
        cout << "Invalidating all"<<  LF;
      //tm_canvas()->invalidate_all ();
    }
      break;
    case SLOT_CURSOR:
    {
      TYPE_CHECK (type_box (val) == type_helper<coord2>::id);
      coord2 p= open_box<coord2> (val);
      //QPoint pt = to_qpoint(p);
      //tm_canvas() -> setCursorPos(pt);
    }
      break;
      
    default:
      if (DEBUG_QT) cout << "[aqua_simple_widget_rep] ";
      aqua_view_widget_rep::send (s, val);
      //      FAILED ("unhandled slot type");
  }
  
}

Here is the call graph for this function:

virtual void simple_widget_rep::send ( slot  s,
blackbox  val 
) [virtual]

Reimplemented from aqua_view_widget_rep.

void qt_view_widget_rep::set_current_renderer ( basic_renderer  _r) [inline, inherited]

Definition at line 40 of file qt_view_widget.hpp.

{ current_renderer = _r;  }

Here is the caller graph for this function:

Definition at line 48 of file qt_simple_widget.hpp.

{ return qobject_cast <QTMWidget*>(view); }

Here is the caller graph for this function:

void wk_widget_rep::wk_error ( string  message) [inherited]

Definition at line 118 of file wk_widget.cpp.

                                       {
  cerr << "\n------------------------------------------------------------------------------\n";
  cerr << wk_widget (this);
  cerr << "------------------------------------------------------------------------------\n";
  cerr << "Error: " << message << "\n";
}
void simple_widget_rep::write ( slot  s,
blackbox  index,
widget  w 
) [virtual]

Reimplemented from aqua_view_widget_rep.

Definition at line 1010 of file aqua_widget.mm.

                                                          {
  aqua_view_widget_rep::write(s,index,w);
}
virtual void simple_widget_rep::write ( slot  s,
blackbox  index,
widget  w 
) [virtual]

Reimplemented from aqua_view_widget_rep.

SI wk_widget_rep::x1 ( ) [inherited]

Definition at line 63 of file wk_widget.cpp.

                   {
  return ox- get_dx (grav, w);
}

Here is the call graph for this function:

Here is the caller graph for this function:

SI wk_widget_rep::x2 ( ) [inherited]

Definition at line 73 of file wk_widget.cpp.

                   {
  return ox- get_dx (grav, w)+ w;
}

Here is the call graph for this function:

Here is the caller graph for this function:

SI wk_widget_rep::y1 ( ) [inherited]

Definition at line 68 of file wk_widget.cpp.

                   {
  return oy- get_dy (grav, h)- h;
}

Here is the call graph for this function:

Here is the caller graph for this function:

SI wk_widget_rep::y2 ( ) [inherited]

Definition at line 78 of file wk_widget.cpp.

                   {
  return oy- get_dy (grav, h);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class widget [friend, inherited]

Definition at line 59 of file widget.hpp.

friend class widget [friend, inherited]

Definition at line 59 of file widget.hpp.

friend class widget [friend, inherited]

Definition at line 59 of file widget.hpp.

friend class wk_widget [friend, inherited]

Definition at line 50 of file wk_widget.hpp.


Member Data Documentation

Definition at line 28 of file wk_widget.hpp.

Definition at line 27 of file qt_view_widget.hpp.

Definition at line 27 of file wk_widget.hpp.

SI wk_widget_rep::h [inherited]

Definition at line 26 of file wk_widget.hpp.

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

Definition at line 36 of file widget.hpp.

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

Definition at line 36 of file widget.hpp.

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

Definition at line 36 of file widget.hpp.

Reimplemented in xpm_widget_rep.

Definition at line 29 of file wk_widget.hpp.

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

Definition at line 37 of file widget.hpp.

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

Definition at line 37 of file widget.hpp.

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

Definition at line 37 of file widget.hpp.

SI wk_widget_rep::ox [inherited]

Definition at line 25 of file wk_widget.hpp.

SI wk_widget_rep::oy [inherited]

Definition at line 25 of file wk_widget.hpp.

int basic_widget_rep::ptr_focus [protected, inherited]

Definition at line 19 of file basic_widget.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

QWidget* qt_view_widget_rep::view [inherited]

Definition at line 26 of file qt_view_widget.hpp.

Definition at line 46 of file aqua_widget.h.

SI wk_widget_rep::w [inherited]

Definition at line 26 of file wk_widget.hpp.

Definition at line 24 of file wk_widget.hpp.


Event Documentation

emit_position( SI ox, SI oy, SI w, SI h, gravity grav= north_west) emit_invalidate( SI x1, SI y1, SI x2, SI y2) emit_mouse( mouse_event ev) emit_mouse( mouse_event ev, string type) emit_mouse( mouse_event ev, string type, SI x, SI y) emit_clear( SI x1, SI y1, SI x2, SI y2) emit_repaint( SI x1, SI y1, SI x2, SI y2, bool& stop) emit_find_child( SI x, SI y, int& which) virtual void basic_widget_rep::handle_get_size(get_size_event ev) [inherited]

Definition at line 36 of file basic_widget.hpp.


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