Back to index

texmacs  1.0.7.15
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes
QTMGuiHelper Class Reference

#include <QTMGuiHelper.hpp>

Collaboration diagram for QTMGuiHelper:
Collaboration graph
[legend]

List of all members.

Public Slots

void doUpdate ()
void doRefresh ()
void doReadSocketNotification (int socket)
void doWriteSocketNotification (int socket)
void aboutToShowMainMenu ()
void aboutToHideMainMenu ()
void doPopWaitingWidgets ()

Signals

void refresh ()

Public Member Functions

 QTMGuiHelper (qt_gui_rep *_gui)

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)

Private Attributes

qt_gui_repgui

Detailed Description

Definition at line 19 of file QTMGuiHelper.hpp.


Constructor & Destructor Documentation

QTMGuiHelper::QTMGuiHelper ( qt_gui_rep _gui) [inline]

Definition at line 24 of file QTMGuiHelper.hpp.

: QObject (), gui (_gui) {}

Member Function Documentation

Definition at line 23 of file QTMGuiHelper.cpp.

                                  {
  menu_count--;
    //cout << "Hide :" << menu_count << " " << N(waiting_widgets) <<  LF;
  if (menu_count <= 0) {
    menu_count = 0;
    QTimer::singleShot (0, the_gui->gui_helper, SLOT (doPopWaitingWidgets ()));
  }
}

Here is the call graph for this function:

Definition at line 17 of file QTMGuiHelper.cpp.

                                  {
    //cout << "Show :" << menu_count << LF;
  menu_count++;
}

Definition at line 33 of file QTMGuiHelper.cpp.

                                  {
  if (!is_nil(waiting_widgets)) {
    if (DEBUG_QT)
      cout << "Installing postponed menu" << LF;
    waiting_widgets->item->install_main_menu();
    waiting_widgets = waiting_widgets->next;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void QTMGuiHelper::doReadSocketNotification ( int  socket) [slot]

Definition at line 560 of file qt_gui.cpp.

                                                  {
  if (DEBUG_QT) 
    cout << "READ SOCKET NOTIFICATION " << socket << " "
         << texmacs_time () << LF;
  iterator<socket_notifier> it = iterate (read_notifiers);
  while (it->busy ()) {
    socket_notifier sn= it->next ();
    if (sn->fd == socket) {
      //sn->notify();
      the_gui->process_socket_notification (sn);
      the_gui->enable_notifier (sn, false);
    }
  }
}

Here is the call graph for this function:

void QTMGuiHelper::doRefresh ( ) [slot]

Definition at line 524 of file qt_gui.cpp.

                         {
  emit refresh();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void QTMGuiHelper::doUpdate ( ) [slot]

Definition at line 518 of file qt_gui.cpp.

                        {
//  cout << "UPDATE " << texmacs_time () << LF;
  gui->update();
}

Here is the call graph for this function:

void QTMGuiHelper::doWriteSocketNotification ( int  socket) [slot]

Definition at line 544 of file qt_gui.cpp.

                                                   {
  if (DEBUG_QT) 
    cout << "WRITE SOCKET NOTIFICATION " << socket << " "
         << texmacs_time () << LF;
  iterator<socket_notifier> it = iterate (write_notifiers);
  while (it->busy ()) {
    socket_notifier sn= it->next ();
    if (sn->fd == socket) {
      //sn->notify();
      the_gui->process_socket_notification (sn);
      the_gui->enable_notifier (sn, false);
    }
  }
}

Here is the call graph for this function:

bool QTMGuiHelper::eventFilter ( QObject *  obj,
QEvent *  event 
) [protected]

Definition at line 529 of file qt_gui.cpp.

                                                      {
   if (event->type() == QEvent::FileOpen) {
     QFileOpenEvent *openEvent = static_cast<QFileOpenEvent *>(event);
     const char *s = openEvent->file().toAscii().constData();
     //qDebug ("File Open Event %s", s);
     call ( "texmacs-load-buffer", object(url_system (s)), 
            object("generic"), object(1), object(false));
     return true;
   } else {
     // standard event processing
     return QObject::eventFilter(obj, event);
   }
}

Here is the call graph for this function:

void QTMGuiHelper::refresh ( ) [signal]

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file QTMGuiHelper.hpp.


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