]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBase.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / FormBase.h
index ec4c1eec68867d0dfd7f4b0d481247a253be4343..1cf0f693b1531b3836b376cac5136841247370b0 100644 (file)
 
 #include "DialogBase.h"
 #include "LString.h"
-#include <boost/utility.hpp>
 #include FORMS_H_LOCATION
 #include "ButtonController.h"
 #include "gettext.h"
-#include <sigc++/signal_system.h> // temporary
+#include <sigc++/signal_system.h>
 
 class Buffer;
 class Dialogs;
@@ -34,7 +33,7 @@ class LyXView;
     @author Angus Leeming
  */
 
-class FormBase : public DialogBase, public noncopyable {
+class FormBase : public DialogBase {
 public:
        /// Callback functions
        static  int WMHideCB(FL_FORM *, void *);
@@ -57,14 +56,14 @@ protected: // methods
        virtual ~FormBase();
 
        /** Redraw the form (on receipt of a Signal indicating, for example,
-           that the xform colours have been re-mapped).
+           that the xform colors have been re-mapped).
            Must be virtual because dialogs with tabbed folders will need to
            redraw the form for each tab.
        */
        virtual void redraw();
 
        /// Create the dialog if necessary, update it and display it.
-       void show();
+       virtual void show();
        /// Hide the dialog.
        virtual void hide();
        /// Update the dialog.
@@ -72,7 +71,7 @@ protected: // methods
        /// Connect signals. Also perform any necessary initialisation.
        virtual void connect();
        /// Disconnect signals. Also perform any necessary housekeeping.
-       virtual void disconnect() = 0;
+       virtual void disconnect();
        /// Build the dialog
        virtual void build() = 0;
        /** Filter the inputs on callback from xforms
@@ -110,6 +109,8 @@ protected: // methods
        Dialogs * d_;
        /// Hide connection.
        Connection h_;
+       /// Redraw connection.
+       Connection r_;
        /// dialog title, displayed by WM.
        string title;
 private:
@@ -137,8 +138,6 @@ protected:
 
        /// Connect signals
        virtual void connect();
-       /// Disconnect signals
-       virtual void disconnect();
 };