]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/DialogBase.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / DialogBase.h
index 5285da0c58e88b466e07de436dd48d6360fd43a2..dec7d884f14afede484dc41c3d8366c026d508bb 100644 (file)
 #define DIALOGBASE_H
 
 #include <sigc++/signal_system.h>
+#include <boost/utility.hpp>
 
 // 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
 
 
@@ -33,11 +35,7 @@ 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 Object, public noncopyable
 {
 public:
        /**@name Constructors and Deconstructors */
@@ -53,15 +51,10 @@ public:
        ///
        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