Back to index

texmacs  1.0.7.15
Classes | Functions | Variables
qt_widget.cpp File Reference
#include "qt_widget.hpp"
#include "qt_simple_widget.hpp"
#include "qt_tm_widget.hpp"
#include "qt_utilities.hpp"
#include "QTMMenuHelper.hpp"
#include "qt_renderer.hpp"
#include "qt_ui_element.hpp"

Go to the source code of this file.

Classes

class  qt_glue_widget_rep

Functions

widget plain_window_widget (widget w, string s, command q)
 Creates a decorated window using the given widget.
widget popup_window_widget (widget w, string s)
void destroy_window_widget (widget w)
widget texmacs_widget (int mask, command quit)
 A factory for the main TeXmacs window.
widget popup_widget (widget w)
 A factory for a popup widget container whose contents are to be unmapped as soon as the mouse exits the 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 empty_widget ()
widget extend (widget w, array< widget > a)
widget wait_widget (SI width, SI height, string message)

Variables

widget the_keyboard_focus (NULL)

Function Documentation

Definition at line 161 of file qt_widget.cpp.

                                 {
  // FIXME: Handle correcly
  // destroys a window as created by the above routines
  (void) w;

  // In the QT implementation explicitly destroying window widgets should not be necessary
  // since the widget itself destroy the Qt widget as soon as its destructor is called.
  // No memory leak should be caused by this trivial implementation.
}

Definition at line 229 of file qt_widget.cpp.

                {
  // 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 236 of file qt_widget.cpp.

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

Definition at line 205 of file qt_widget.cpp.

                                           {
  
  // an empty widget of minimal width w and height h and which is horizontally
  // resp. vertically extensible if hx resp. vx is true
  
  // glue_widget is used when detaching a canvas from the texmacs window
  // in view of attaching another one, e.g. when changing buffer.
  //return glue_widget("", hx, vx, w, h);
  // Bypass qt_glue_widget and use QSpacers instead:
  return qt_ui_element_rep::create (qt_ui_element_rep::glue_widget,
                                    hx, vx, w/PIXEL, h/PIXEL);
}

Here is the call graph for this function:

widget glue_widget ( tree  col,
bool  hx,
bool  vx,
SI  w,
SI  h 
)

Definition at line 219 of file qt_widget.cpp.

                                                     {
  return tm_new<qt_glue_widget_rep> (col, hx, vx, w, h);
}

Creates a decorated window using the given widget.

The window will have name s, contents w and perform command q upon closing.

Definition at line 150 of file qt_widget.cpp.

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

Here is the call graph for this function:

A factory for a popup widget container whose contents are to be unmapped as soon as the mouse exits the widget.

This is used in edit_mouse.cpp to implement a contextual menu in the canvas

Parameters:
wThe widget to be placed in the popup. It will be deleted after the mouse leaves the popup.
Returns:

Definition at line 198 of file qt_widget.cpp.

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

Here is the call graph for this function:

Definition at line 155 of file qt_widget.cpp.

                                         {
  // creates an undecorated window with name s and contents w
  return concrete(w)->popup_window_widget (s);
}

Here is the call graph for this function:

widget texmacs_widget ( int  mask,
command  quit 
)

A factory for the main TeXmacs window.

Parameters:
maskIndicates whether the menu, icon bars, status bar, etc. are visible or not.
quitCommand called on exit.

Definition at line 183 of file qt_widget.cpp.

                                        {
  (void) mask; (void) quit; // FIXME: handle correctly mask and quit
  widget w= tm_new<qt_tm_widget_rep> (mask, quit);
  return w;
}
widget wait_widget ( SI  width,
SI  height,
string  message 
)

Definition at line 242 of file qt_widget.cpp.

                                                  {
  // 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