]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QTabularCreate.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QTabularCreate.h
index c6406ce16381dc038cae1b23b8db89ecba8918c8..6297d4887027dce3b7bbc63b67d4e55df699257b 100644 (file)
@@ -1,52 +1,43 @@
 // -*- C++ -*-
 /**
  * \file QTabularCreate.h
- * Copyright 2001 the LyX Team
- * Read 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 John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QTABULARCREATE_H
 #define QTABULARCREATE_H
 
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "Qt2Base.h"
 
-class Dialogs;
-class LyXView; 
+class ControlTabularCreate;
 class QTabularCreateDialog;
 
-class QTabularCreate : public DialogBase {
-public: 
-       QTabularCreate(LyXView *, Dialogs *);
-       ~QTabularCreate();
 
-       /// create the table 
-       void apply(int rows, int cols);
-       /// close the connections
-       void close();
+///
+class QTabularCreate
+       : public Qt2CB<ControlTabularCreate, Qt2DB<QTabularCreateDialog> >
+{
+public:
+       ///
+       friend class QTabularCreateDialog;
+       ///
+       QTabularCreate();
 private:
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-       /// Real GUI implementation.
-       QTabularCreateDialog * dialog_;
-
-       /// the LyXView we belong to
-       LyXView * lv_;
-       /** Which Dialogs do we belong to?
-           Used so we can get at the signals we have to connect to.
-       */
-       Dialogs * d_;
-       
-       /// Hide connection.
-       SigC::Connection h_;
+       /// Apply changes
+       virtual void apply();
+       /// update
+       virtual void update_contents() {}
+       /// build the dialog
+       virtual void build_dialog();
 };
 
 #endif // QTABULARCREATE_H