]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/DialogBase.h
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / frontends / DialogBase.h
index f110645d3e4773ccce32df30ebde4e0abcb9a3c2..e9ba6926c3d959e989b344b4d371768622e10848 100644 (file)
@@ -3,12 +3,12 @@
  * Abstract base class of all dialogs.
  * Author: Allan Rae <rae@lyx.org>
  * This file is part of
- * ====================================================== 
+ * ======================================================
  *
  *           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
 #ifndef DIALOGBASE_H
 #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;
-#endif
-
+#include <boost/signals/trackable.hpp>
+#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
@@ -33,37 +26,26 @@ using SigC::slot;
     satisfy that request.  Thus a dialog will have to "pull" the necessary
     details from the core of the program.
  */
-#ifdef SIGC_CXX_NAMESPACES
-///
-class DialogBase : public SigC::Object
-#else
-///
-class DialogBase : public Object
-#endif
+class DialogBase : public boost::signals::trackable, 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;
        ///
-       virtual void update() = 0;
-       //@}
-
+       virtual void update() {};
        ///
-       enum EnumDialogStatus {
-               DIALOG_UNMODIFIED,
-               DIALOG_MODIFIED,
-               DIALOG_READONLY
-       };
+       virtual void close() {};
+       //@}
 };
 
 #endif // DIALOGBASE_H