]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/QTabularCreate.h
re-add tab create dialog
[features.git] / src / frontends / qt2 / QTabularCreate.h
index c6406ce16381dc038cae1b23b8db89ecba8918c8..b24226761429f6027b3ccdfc43bb8aa5f9e17681 100644 (file)
 #ifndef QTABULARCREATE_H
 #define QTABULARCREATE_H
 
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
+#ifdef __GNUG__
+#pragma interface
+#endif
 
-class Dialogs;
-class LyXView; 
+#include "Qt2Base.h"
+
+class ControlTabularCreate;
 class QTabularCreateDialog;
 
-class QTabularCreate : public DialogBase {
-public: 
-       QTabularCreate(LyXView *, Dialogs *);
-       ~QTabularCreate();
+///
+class QTabularCreate
+       : public Qt2CB<ControlTabularCreate, Qt2DB<QTabularCreateDialog> > 
+{
+public:
+       ///
+       friend class QTabularCreateDialog;
+       ///
+       QTabularCreate(ControlTabularCreate &);
 
-       /// create the table 
-       void apply(int rows, int cols);
-       /// 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.
-       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