]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/DialogBase.h
implement getLabelList
[lyx.git] / src / frontends / DialogBase.h
index f25f738f1fb67b9108348e941f2114df67e92cb6..72d1a982f18568609b95286c458220b697f7e145 100644 (file)
 #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,34 +26,26 @@ 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, public 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