]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/DialogBase.h
various fixes
[lyx.git] / src / frontends / DialogBase.h
index 650df6a3989995a30c4aad84e28e31c011edccce..7637ab4ab44a034e1b99ba4c3d9827b48d2fd0e0 100644 (file)
@@ -8,7 +8,7 @@
  *           LyX, The Document Processor
  *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  *           This file Copyright 2000
  *           Allan Rae
 #define DIALOGBASE_H
 
 #include <sigc++/signal_system.h>
-
-// If we do not want to bring them in global namespace, they could be
-// defined inside DialogBase... (JMarc) 
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-using SigC::Object;
-
-#endif
-
+#include <boost/utility.hpp>
 
 /** Abstract base class of all dialogs.
     The outside world only needs some way to tell a dialog when to show, hide
@@ -35,23 +26,25 @@ using SigC::Object;
     satisfy that request.  Thus a dialog will have to "pull" the necessary
     details from the core of the program.
  */
-class DialogBase : public Object
+class DialogBase : public SigC::Object, boost::noncopyable
 {
 public:
        /**@name Constructors and Deconstructors */
        //@{
-       ///
+       /// Virtual base destructor
        virtual ~DialogBase() {}
        //@}
 
        /**@name Signal Targets */
        //@{
        ///
-       virtual void show() = 0;
+       //virtual void show() = 0;
        ///
        virtual void hide() = 0;
-       /// Parameter defines if a buffer switch occurred
-       virtual void update(bool = false) = 0;
+       ///
+       virtual void update() {};
+       ///
+       virtual void close() {};
        //@}
 };