mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
merge QAbout and QAboutDialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
97fe710a4f
commit
e9b92c06a3
@ -86,7 +86,7 @@ MOCFILES = \
|
|||||||
InsertTableWidget.C InsertTableWidget.h \
|
InsertTableWidget.C InsertTableWidget.h \
|
||||||
lengthcombo.C lengthcombo.h \
|
lengthcombo.C lengthcombo.h \
|
||||||
panelstack.C panelstack.h \
|
panelstack.C panelstack.h \
|
||||||
QAboutDialog.C QAboutDialog.h \
|
QAbout.C QAbout.h \
|
||||||
QBibitemDialog.C QBibitemDialog.h \
|
QBibitemDialog.C QBibitemDialog.h \
|
||||||
QBibtexDialog.C QBibtexDialog.h \
|
QBibtexDialog.C QBibtexDialog.h \
|
||||||
QBox.C QBox.h \
|
QBox.C QBox.h \
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "QAbout.h"
|
#include "QAbout.h"
|
||||||
#include "QAboutDialog.h"
|
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
@ -38,10 +37,11 @@ using std::string;
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
typedef QController<ControlAboutlyx, QView<QAboutDialog> > about_base_class;
|
|
||||||
|
typedef QController<ControlAboutlyx, QView<QAboutDialog> > AboutBase;
|
||||||
|
|
||||||
QAbout::QAbout(Dialog & parent)
|
QAbout::QAbout(Dialog & parent)
|
||||||
: about_base_class(parent, _("About LyX"))
|
: AboutBase(parent, _("About LyX"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,3 +120,5 @@ void QAbout::build_dialog()
|
|||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
#include "QAbout_moc.cpp"
|
||||||
|
@ -13,13 +13,26 @@
|
|||||||
#define FORMABOUT_H
|
#define FORMABOUT_H
|
||||||
|
|
||||||
#include "QDialogView.h"
|
#include "QDialogView.h"
|
||||||
#include "QAboutDialog.h"
|
#include "ui/AboutUi.h"
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlAboutlyx;
|
class ControlAboutlyx;
|
||||||
|
|
||||||
|
class QAboutDialog : public QDialog, public Ui::QAboutUi {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
QAboutDialog(QWidget * parent = 0)
|
||||||
|
: QDialog(parent)
|
||||||
|
{
|
||||||
|
setupUi(this);
|
||||||
|
connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
class QAbout
|
class QAbout
|
||||||
: public QController<ControlAboutlyx, QView<QAboutDialog> >
|
: public QController<ControlAboutlyx, QView<QAboutDialog> >
|
||||||
{
|
{
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* \file QAboutDialog.C
|
|
||||||
* This file is part of LyX, the document processor.
|
|
||||||
* Licence details can be found in the file COPYING.
|
|
||||||
*
|
|
||||||
* \author Kalle Dalheimer
|
|
||||||
*
|
|
||||||
* Full author contact details are available in file CREDITS.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <config.h>
|
|
||||||
|
|
||||||
#include "QAboutDialog.h"
|
|
||||||
|
|
||||||
namespace lyx {
|
|
||||||
namespace frontend {
|
|
||||||
|
|
||||||
QAboutDialog::QAboutDialog(QWidget * /*parent*/, char const * /*name*/,
|
|
||||||
bool /*modal*/, Qt::WFlags /*fl*/)
|
|
||||||
{
|
|
||||||
setupUi(this);
|
|
||||||
|
|
||||||
connect( closePB, SIGNAL( clicked() ),
|
|
||||||
this, SLOT( reject() ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
QAboutDialog::~QAboutDialog()
|
|
||||||
{}
|
|
||||||
|
|
||||||
} // namespace frontend
|
|
||||||
} // namespace lyx
|
|
||||||
|
|
||||||
#include "QAboutDialog_moc.cpp"
|
|
@ -1,32 +0,0 @@
|
|||||||
// -*- C++ -*-
|
|
||||||
/**
|
|
||||||
* \file QAboutDialog.h
|
|
||||||
* This file is part of LyX, the document processor.
|
|
||||||
* Licence details can be found in the file COPYING.
|
|
||||||
*
|
|
||||||
* \author Kalle Dalheimer
|
|
||||||
*
|
|
||||||
* Full author contact details are available in file CREDITS.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef QABOUTDIALOG_H
|
|
||||||
#define QABOUTDIALOG_H
|
|
||||||
|
|
||||||
#include "ui/AboutUi.h"
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
namespace lyx {
|
|
||||||
namespace frontend {
|
|
||||||
|
|
||||||
class QAboutDialog : public QDialog, public Ui::QAboutUi {
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
QAboutDialog(QWidget * parent = 0, const char * name = 0,
|
|
||||||
bool modal = FALSE, Qt::WFlags fl = 0);
|
|
||||||
~QAboutDialog();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace frontend
|
|
||||||
} // namespace lyx
|
|
||||||
|
|
||||||
#endif // QABOUTDIALOG_H
|
|
Loading…
Reference in New Issue
Block a user