]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/DropDown.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / DropDown.h
index 491eea49a2c61040b844b205bc126f77db696662..530f1441a7d4af3ab2072ab0e5f265dc3c1a2575 100644 (file)
@@ -1,29 +1,33 @@
 // -*- C++ -*-
 /**
  * \file DropDown.h
- * Copyright 2001 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 John Levon, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef DROPDOWN_H
 #define DROPDOWN_H
 
-#ifdef __GNUG_
+#ifdef __GNUG__
 #pragma interface
 #endif
 
-#include "LyXView.h"
-#include <sigc++/signal_system.h>
+#include "forms_fwd.h"
+#include <X11/Xlib.h>
+
+#include <boost/signals/signal1.hpp>
+
 #include "LString.h"
-#include FORMS_H_LOCATION
 #include <vector>
 
 class DropDown {
 public:
        /// constructor
-       DropDown(LyXView * lv, FL_OBJECT * ob);
+       DropDown(FL_OBJECT * ob);
        /// destructor
        ~DropDown();
 
@@ -37,10 +41,10 @@ public:
        void key_pressed(char c);
 
        /// signal for completion
-       SigC::Signal1<void, string const &> result;
+       boost::signal1<void, string const &> result;
 
        /// signal that a key was pressed
-       SigC::Signal1<void, char> keypress;
+       boost::signal1<void, char> keypress;
 
        /// X event
        int peek(XEvent *);
@@ -52,9 +56,6 @@ private:
        /// move down a browser line
        void line_down();
 
-       /// owning lyxview
-       LyXView * lv_;
-
        /// our form
        FL_FORM * form_;