]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QParagraph.h
The Cygwin path fix.
[lyx.git] / src / frontends / qt2 / QParagraph.h
index 3f96094ee1c1a80e0ee197995dbff8081d83a5dd..d036659fb60054c23db1ca021a88066464c1f317 100644 (file)
@@ -1,55 +1,44 @@
 // -*- C++ -*-
 /**
  * \file QParagraph.h
- * Copyright 2001 LyX Team
- * see the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Edwin Leuven
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef QPARAGRAPH_H
 #define QPARAGRAPH_H
 
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
+#include "QDialogView.h"
+
+namespace lyx {
+namespace frontend {
 
-class Dialogs;
-class LyXView;
+class ControlParagraph;
 class QParagraphDialog;
 
-class QParagraph : public DialogBase {
-public: 
-       QParagraph(LyXView *, Dialogs *);
-       ~QParagraph();
 
+class QParagraph
+       : public QController<ControlParagraph, QView<QParagraphDialog> >
+{
+public:
+       friend class QParagraphDialog;
+
+       QParagraph(Dialog &);
+private:
        /// Apply changes
-       void apply();
-       /// Update the dialog.
-       void update(bool switched = false);
-       /// Close the connections
-       void close();
-private: 
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-
-       /// Real GUI implementation.
-       QParagraphDialog * dialog_;
-
-       /// the LyXView we belong to
-       LyXView * lv_;
-       /// Used so we can get at the signals we have to connect to.
-       Dialogs * d_;
-       
-       /// Hide connection.
-       SigC::Connection h_;
-       
-       /// readonly file or not
-       bool readonly; 
+       virtual void apply();
+       /// update
+       virtual void update_contents();
+       /// build the dialog
+       virtual void build_dialog();
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // QPARAGRAPH_H