+2002-11-15 John Levon <levon@movementarian.org>
+
+ * Makefile.dialogs:
+ * Makefile.am:
+ * moc/Makefile.am:
+ * Dialogs2.C:
+ * Dialogs_impl.h:
+ * Dialogs.C:
+ * QTabular.h:
+ * QTabular.C:
+ * QTabularDialog.h:
+ * QTabularDialog.C: add skeleton
+
2002-11-14 John Levon <levon@movementarian.org>
* ui/QTabularDialog.ui: label for cell pos
sendto(lv, d),
spellchecker(lv, d),
tabularcreate(lv, d),
+ tabular(lv, d),
texinfo(lv, d),
#ifdef HAVE_LIBAIKSAURUS
}
-void Dialogs::showTabular(InsetTabular *)
-{}
+void Dialogs::showTabular(InsetTabular * it)
+{
+ pimpl_->tabular.controller().showInset(it);
+}
-void Dialogs::updateTabular(InsetTabular *)
-{}
+void Dialogs::updateTabular(InsetTabular * it)
+{
+ pimpl_->tabular.controller().updateInset(it);
+}
void Dialogs::showTabularCreate()
#include "ControlShowFile.h"
#include "ControlSpellchecker.h"
#include "ControlTabularCreate.h"
+#include "ControlTabular.h"
#include "ControlTexinfo.h"
#include "ControlToc.h"
#include "ControlUrl.h"
#include "QShowFileDialog.h"
#include "QSpellchecker.h"
#include "QSpellcheckerDialog.h"
-//#include "QTabular.h"
#include "QTabularCreate.h"
#include "QTabularCreateDialog.h"
+#include "QTabular.h"
+#include "QTabularDialog.h"
#include "QTexinfo.h"
#include "QTexinfoDialog.h"
typedef GUI<ControlTabularCreate, QTabularCreate, OkApplyCancelReadOnlyPolicy, Qt2BC>
TabularCreateDialog;
+typedef GUI<ControlTabular, QTabular, OkApplyCancelReadOnlyPolicy, Qt2BC>
+TabularDialog;
+
typedef GUI<ControlTexinfo, QTexinfo, OkCancelPolicy, Qt2BC>
TexinfoDialog;
SendtoDialog sendto;
SpellcheckerDialog spellchecker;
TabularCreateDialog tabularcreate;
+ TabularDialog tabular;
TexinfoDialog texinfo;
#ifdef HAVE_LIBAIKSAURUS
qlkey.h \
qscreen.h \
qscreen.C \
+ qsetborder.h \
+ qsetborder.C \
qttableview.h \
qttableview.C \
$(DIALOGSOURCES)
QShowFile \
QSpellchecker \
QTabularCreate \
+ QTabular \
QTexinfo \
QThesaurus \
QToc \
QSpellchecker.C QSpellcheckerDialog.C \
QTabularCreate.h QTabularCreateDialog.h \
QTabularCreate.C QTabularCreateDialog.C \
+ QTabular.h QTabularDialog.h \
+ QTabular.C QTabularDialog.C \
QTexinfo.h QTexinfoDialog.h \
QTexinfo.C QTexinfoDialog.C \
QThesaurus.h QThesaurusDialog.h \
QShowFileDialog_moc.C \
QSpellcheckerDialog_moc.C \
QTabularCreateDialog_moc.C \
+ QTabularDialog_moc.C \
QTexinfoDialog_moc.C \
QThesaurusDialog_moc.C \
QTocDialog_moc.C \
QSpellcheckerDialogBase.C \
QTabularCreateDialogBase.h \
QTabularCreateDialogBase.C \
+ QTabularDialogBase.h \
+ QTabularDialogBase.C \
QTexinfoDialogBase.h \
QTexinfoDialogBase.C \
QThesaurusDialogBase.h \
QShowFileDialogBase_moc.C \
QSpellcheckerDialogBase_moc.C \
QTabularCreateDialogBase_moc.C \
+ QTabularDialogBase_moc.C \
QTexinfoDialogBase_moc.C \
QThesaurusDialogBase_moc.C \
QTocDialogBase_moc.C \
--- /dev/null
+/**
+ * \file QTabular.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "ControlTabular.h"
+#include "gettext.h"
+
+#include "QTabularDialog.h"
+#include "QTabular.h"
+#include "Qt2BC.h"
+
+#include <qpushbutton.h>
+
+typedef Qt2CB<ControlTabular, Qt2DB<QTabularDialog> > base_class;
+
+QTabular::QTabular()
+ : base_class(_("LyX: Edit Table"))
+{
+}
+
+
+void QTabular::build_dialog()
+{
+ dialog_.reset(new QTabularDialog(this));
+
+ bc().setCancel(dialog_->closePB);
+}
+
+
+void QTabular::update_contents()
+{
+}
+
+
+bool QTabular::isValid()
+{
+ return true;
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QTabular.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#ifndef QTABULAR_H
+#define QTABULAR_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "Qt2Base.h"
+
+class ControlTabular;
+class QTabularDialog;
+
+
+class QTabular :
+ public Qt2CB<ControlTabular, Qt2DB<QTabularDialog> >
+{
+public:
+ friend class QTabularDialog;
+
+ QTabular();
+
+protected:
+ virtual bool isValid();
+
+private:
+ /// We can't use this ...
+ virtual void apply() {}
+ /// update
+ virtual void update_contents();
+ /// build the dialog
+ virtual void build_dialog();
+};
+
+#endif // QTABULAR_H
--- /dev/null
+/**
+ * \file QTabularDialog.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "gettext.h"
+
+#include "QTabular.h"
+#include "QTabularDialog.h"
+
+#include <qpushbutton.h>
+
+
+QTabularDialog::QTabularDialog(QTabular * form)
+ : QTabularDialogBase(0, 0, false, 0),
+ form_(form)
+{
+ connect(closePB, SIGNAL(clicked()),
+ form, SLOT(slotClose()));
+}
+
+
+void QTabularDialog::change_adaptor()
+{
+ form_->changed();
+}
+
+
+void QTabularDialog::closeEvent(QCloseEvent * e)
+{
+ form_->slotWMHide();
+ e->accept();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QTabularDialog.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#ifndef QTABULARDIALOG_H
+#define QTABULARDIALOG_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "ui/QTabularDialogBase.h"
+
+class QTabular;
+
+class QTabularDialog : public QTabularDialogBase {
+ Q_OBJECT
+public:
+ QTabularDialog(QTabular * form);
+
+protected slots:
+ virtual void change_adaptor();
+
+protected:
+ virtual void closeEvent(QCloseEvent * e);
+
+private:
+ QTabular * form_;
+};
+
+#endif // QTABULARDIALOG_H
emptytable_moc.C \
iconpalette_moc.C \
lengthcombo_moc.C \
+ qsetborder_moc.C \
qttableview_moc.C \
qgridview_moc.C \
QBrowseBox_moc.C \