Back to index

texmacs  1.0.7.15
Classes | Defines | Functions | Variables
aqua_widget.mm File Reference
#include "mac_cocoa.h"
#include "aqua_widget.h"
#include "aqua_simple_widget.h"
#include "aqua_other_widgets.h"
#include "aqua_renderer.h"
#include "aqua_utilities.h"
#include "aqua_menu.h"
#include "gui.hpp"
#include "widget.hpp"
#include "message.hpp"
#include "promise.hpp"
#include "analyze.hpp"
#include "aqua_basic_widgets.h"
#import "TMView.h"
#import "TMButtonsController.h"

Go to the source code of this file.

Classes

class  TMWindowController
class  TMToolbarItem
class  TMWidgetHelper
class  TMMenuHelper

Defines

#define TYPE_CHECK(b)   ASSERT (b, "type mismatch")
#define NOT_IMPLEMENTED   { if (DEBUG_EVENTS) cout << "STILL NOT IMPLEMENTED\n"; }

Functions

widget plain_window_widget (widget w, string s)
widget popup_window_widget (widget w, string s)
void destroy_window_widget (widget w)
widget texmacs_widget (int mask, command quit)
widget popup_widget (widget w)
widget empty_widget ()
widget glue_widget (bool hx, bool vx, SI w, SI h)
widget glue_widget (tree col, bool hx, bool vx, SI w, SI h)
widget extend (widget w, array< widget > a)
widget wait_widget (SI width, SI height, string message)

Variables

widget the_keyboard_focus (NULL)
NSString * TMToolbarIdentifier = "TMToolbarIdentifier"
NSString * TMButtonsIdentifier = "TMButtonsIdentifier"
TMMenuHelperthe_menu_helper = nil

Define Documentation

#define NOT_IMPLEMENTED   { if (DEBUG_EVENTS) cout << "STILL NOT IMPLEMENTED\n"; }

Definition at line 34 of file aqua_widget.mm.

#define TYPE_CHECK (   b)    ASSERT (b, "type mismatch")

Definition at line 33 of file aqua_widget.mm.


Function Documentation

Definition at line 1036 of file aqua_widget.mm.

                                        {  
// destroys a window as created by the above routines
  (void) w;
}

Definition at line 1076 of file aqua_widget.mm.

                {
  // an empty widget of size zero
  NOT_IMPLEMENTED;
  return widget();
}

Here is the call graph for this function:

widget extend ( widget  w,
array< widget a 
)

Definition at line 1099 of file aqua_widget.mm.

                                   {
  (void) a;
  return w;
}
widget glue_widget ( bool  hx,
bool  vx,
SI  w,
SI  h 
)

Definition at line 1083 of file aqua_widget.mm.

                                           {
  //{ return widget(); }
  // an empty widget of minimal width w and height h and which is horizontally
  // resp. vertically extensible if hx resp. vx is true
  NOT_IMPLEMENTED;
  (void) hx; (void) vx; (void) w; (void) h;
  return tm_new <aqua_view_widget_rep> ([[[NSView alloc] initWithFrame:NSMakeRect(0, 0, 50, 50)] autorelease]);
}
widget glue_widget ( tree  col,
bool  hx,
bool  vx,
SI  w,
SI  h 
)

Definition at line 1093 of file aqua_widget.mm.

                                                     {
  (void) col;
  return glue_widget (hx, vx, w, h);
}

Here is the call graph for this function:

Definition at line 1024 of file aqua_widget.mm.

{
  return concrete(w)->plain_window_widget(s);
}

Here is the call graph for this function:

Definition at line 1061 of file aqua_widget.mm.

{
  return concrete(w)->make_popup_widget();
}

Here is the call graph for this function:

Definition at line 1030 of file aqua_widget.mm.

{
  return concrete(w)->popup_window_widget(s);
}

Here is the call graph for this function:

widget texmacs_widget ( int  mask,
command  quit 
)

Definition at line 1046 of file aqua_widget.mm.

{
  (void) mask; (void) quit; // FIXME: handle correctly mask and quit

  widget w = tm_new <aqua_tm_widget_rep> (mask);
  return w; 
}
widget wait_widget ( SI  width,
SI  height,
string  message 
)

Definition at line 1105 of file aqua_widget.mm.

                                                  { 
  // a widget of a specified width and height, displaying a wait message
  // this widget is only needed when using the X11 plugin
  (void) width; (void) height; (void) message;
  return widget(); 
}

Here is the call graph for this function:


Variable Documentation

Definition at line 631 of file aqua_widget.mm.

NSString* TMButtonsIdentifier = "TMButtonsIdentifier"

Definition at line 228 of file aqua_widget.mm.

NSString* TMToolbarIdentifier = "TMToolbarIdentifier"

Definition at line 227 of file aqua_widget.mm.