]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Tooltips.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / Tooltips.h
index 862b3803c2b621c0dc923f511d904733bdf27bb9..5b7624a098e3486b72a5bce71bb0becaa1f9140e 100644 (file)
@@ -1,10 +1,12 @@
 // -*- C++ -*-
 /**
  * \file Tooltips.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 /* Tooltips for xforms. xforms 0.89 supports them directly, but 0.88 needs
@@ -16,9 +18,6 @@
 #ifndef TOOLTIPS_H
 #define TOOLTIPS_H
 
-#include "LString.h"
-
-#include <boost/utility.hpp>
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/trackable.hpp>
 
@@ -26,9 +25,6 @@
 
 #include <map>
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 class Tooltips : boost::noncopyable, public boost::signals::trackable {
 public:
@@ -36,23 +32,11 @@ public:
        Tooltips();
 
        /// Initialise a tooltip for this ob.
-       void init(FL_OBJECT * ob, string const & tip);
+       void init(FL_OBJECT * ob, std::string const & tip);
 
        /// Are the tooltips on or off?
        static bool enabled() { return enabled_; }
 
-       /// This method is connected to the tooltipsToggled signal.
-       void set();
-
-#if FL_VERSION < 1 && FL_REVISION < 89
-
-       /** Return the tooltip associated with this object.
-        *  Required by an xforms callback routine.
-        */
-       string const get(FL_OBJECT *) const;
-
-#endif
-
        /** This method is connected to Dialogs::toggleTooltips and toggles
         *  the state of enabled_.
         */
@@ -60,6 +44,9 @@ public:
 
 private:
 
+       /// This method is connected to the Tooltips::toggled signal.
+       void set();
+
        /// Are the tooltips on or off?
        static bool enabled_;
 
@@ -69,18 +56,9 @@ private:
        static boost::signal0<void> toggled;
 
        /// The tooltips are stored so that they can be turned on and off.
-       typedef std::map<FL_OBJECT *, string> TooltipsMap;
+       typedef std::map<FL_OBJECT *, std::string> TooltipsMap;
 
        TooltipsMap tooltipsMap;
-
-#if FL_VERSION < 1 && FL_REVISION < 89
-
-       /** A timer is started once the mouse enters an object, so that the
-        *  tip appears a short delay afterwards.
-        */
-       FL_OBJECT * tooltip_timer_;
-
-#endif
 };
 
 #endif // TOOLTIPS_H