/**
* \file qt2/Alert_pimpl.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <qmessagebox.h>
#include <qlabel.h>
#include <qlineedit.h>
+2002-09-24 Angus Leeming <leeming@lyx.org>
+
+ * most files: "standard-conforming" Licence declaration.
+ Remove trailing whitespace.
+
+ * many header files: do not #include <config.h>.
+ Remove unnecessary #includes by using forward declarations.
+ Add as first line: // -*- C++ -*-
+ Move several definitions of virtual functions out of line
+ as they are unlikely to be inlined anyway (and it reduces
+ header file dependencies)...
+
+ * many files: added g++ #pragma directives.
+
2002-09-23 Angus Leeming <leeming@lyx.org>
* QMath.h: forward declare QMathDialog.
/**
* \file qt2/Dialogs.C
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The 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 Allan Rae, rae@lyx.org
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Allan Rae
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
/**
* \file xforms/Dialogs.C
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The 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 Allan Rae, rae@lyx.org
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Allan Rae
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file Dialogs_impl.h
- * Copyright 1995-2002 The LyX Team.
- * See the file COPYING.
- * \author Angus Leeming <leeming@lyx.org>
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef DIALOGS_IMPL_H
/**
* \file qt2/FileDialog.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifdef __GNUG__
/**
* \file FileDialog_private.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-#include "LString.h"
-#include "support/lstrings.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
#include <qapplication.h>
-#include <qfiledialog.h>
-#include <qtoolbutton.h>
+#include <qtoolbutton.h>
+
+#include "FileDialog_private.h"
#include "QtLyXView.h"
#include "debug.h"
#include "funcrequest.h"
-
-#include "FileDialog_private.h"
+#include "lyxfunc.h"
+#include "support/lstrings.h"
namespace {
/// return the Qt form of the label
return label;
}
}
-
+
LyXFileDialog::LyXFileDialog(string const & p, string const & m, string const & t,
FileDialog::Button const & b1, FileDialog::Button const & b2)
: QFileDialog(p.c_str(), m.c_str(), qApp->mainWidget(), t.c_str(), true),
{
setCaption(t.c_str());
- if (!b1.first.empty()) {
+ if (!b1.first.empty()) {
b1_dir_ = b1.second;
b1_ = new QToolButton(this);
connect(b1_, SIGNAL(clicked()), this, SLOT(buttonClicked()));
// -*- C++ -*-
/**
* \file FileDialog_private.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef FILEDIALOG_PRIVATE_H
#define FILEDIALOG_PRIVATE_H
-#include <config.h>
-
-#include "LString.h"
-#include "lyxfunc.h"
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "frontends/FileDialog.h"
-
#include <qfiledialog.h>
+#include "LString.h"
class QToolButton;
public slots:
void buttonClicked();
-
+
private:
QToolButton * b1_;
string b1_dir_;
-
+
QToolButton * b2_;
string b2_dir_;
};
/**
* \file LyXKeySymFactory.C
- * Copyright 2002 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 Asger & Juergen
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "frontends/LyXKeySymFactory.h"
#include "QLyXKeySym.h"
/**
* \file LyXScreenFactory.C
- * Copyright 2002 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "frontends/LyXScreenFactory.h"
#include "QWorkArea.h"
iconpalette.h \
iconpalette.C \
io_callback.h \
+ io_callback.C \
lengthcombo.C \
lengthcombo.h \
lyx_gui.C \
/**
* \file Menubar_pimpl.C
- * Copyright 1999-2001 The 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 Lars Gullik Bjønnes, larsbj@lyx.org
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "QtView.h"
#include "QLPopupMenu.h"
-
+
#include <qmenubar.h>
#include <qcursor.h>
-
+
using std::endl;
using std::vector;
using std::max;
using std::for_each;
using std::pair;
-Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
+Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
: owner_(static_cast<QtView*>(view)), menubackend_(mbe)
{
Menu::const_iterator m = mbe.getMenubar().begin();
void Menubar::Pimpl::openByName(string const & name)
{
- NameMap::const_iterator const cit = name_map_.find(name);
- if (cit == name_map_.end())
+ NameMap::const_iterator const cit = name_map_.find(name);
+ if (cit == name_map_.end())
return;
// this will have to do I'm afraid.
// -*- C++ -*-
/**
* \file Menubar_pimpl.h
- * Copyright 2002 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 Lars Gullik Bjønnes <larsbj@lyx.org>
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
-
+
#ifndef MENUBAR_PIMPL_H
#define MENUBAR_PIMPL_H
-#include <map>
-
-#include <config.h>
-
#ifdef __GNUG__
#pragma interface
#endif
-#include "LString.h"
#include "frontends/Menubar.h"
+#include "LString.h"
+#include <map>
class LyXView;
class QtView;
struct Menubar::Pimpl {
public:
Pimpl(LyXView *, MenuBackend const &);
-
+
/// opens a top-level submenu given its name
void openByName(string const &);
void update() {};
/// return the owning view
- QtView * view() { return owner_; }
+ QtView * view() { return owner_; }
/// return the menu controller
MenuBackend const & backend() { return menubackend_; }
typedef std::map<string, QLPopupMenu *> NameMap;
- /// name to menu for openByName
+ /// name to menu for openByName
NameMap name_map_;
};
-
+
#endif // MENUBAR_PIMPL_H
/**
* \file QAbout.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/lstrings.h"
#include "Lsstream.h"
#include "debug.h"
// -*- C++ -*-
/**
* \file QAbout.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef FORMABOUT_H
#define FORMABOUT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
-#include "boost/utility.hpp"
-class LyXView;
class QAboutDialog;
class ControlAboutlyx;
/**
* \file QAboutDialog.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QAboutDialog.h"
QAboutDialog::QAboutDialog(QWidget * parent, const char * name, bool modal, WFlags fl)
+// -*- C++ -*-
/**
* \file QAboutDialog.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QABOUTDIALOG_H
#define QABOUTDIALOG_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QAboutDialogBase.h"
class QAboutDialog : public QAboutDialogBase
/**
* \file QBibitem.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/lstrings.h"
#include "ControlBibitem.h"
// -*- C++ -*-
/**
* \file QBibitem.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 QBIBITEM_H
#define QBIBITEM_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlBibitem;
/**
* \file QBibitemDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlBibitem.h"
#include <qpushbutton.h>
+// -*- C++ -*-
/**
* \file QBibitemDialog.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 QBIBITEMDIALOG_H
#define QBIBITEMDIALOG_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QBibitemDialogBase.h"
class QBibitem;
/**
* \file QBibtex.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/lstrings.h"
#include "ControlBibtex.h"
// -*- C++ -*-
/**
* \file QBibtex.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 QBIBTEX_H
#define QBIBTEX_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlBibtex;
/**
* \file QBibtexDialog.C
- * 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
*/
#include <config.h>
-#include <vector>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include <vector>
#include "ControlBibtex.h"
#include "gettext.h"
#include "debug.h"
#include "QBibtexDialog.h"
#include "QBibtex.h"
-
+
QBibtexDialog::QBibtexDialog(QBibtex * form)
: QBibtexDialogBase(0, 0, false, 0),
form_(form)
for(unsigned int i = 0; i!=databaseLB->count(); i++) {
if (databaseLB->text(i).latin1()==f)
present = true;
-
+
}
if (!present) {
databaseLB->insertItem(f.c_str());
+// -*- C++ -*-
/**
* \file QBibtexDialog.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 QBIBTEXDIALOG_H
#define QBIBTEXDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QBibtexDialogBase.h"
class QBibtex;
class QBibtexDialog : public QBibtexDialogBase
-{ Q_OBJECT
+{
+ Q_OBJECT
public:
QBibtexDialog(QBibtex * form);
virtual void styleChanged(const QString &);
virtual void databaseChanged();
-
protected:
virtual void closeEvent(QCloseEvent * e);
/**
* \file QCharacter.C
- * 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 Edwin Leuven, leuven@fee.uva.nl
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Edwin Leuven
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-#include <vector>
-
-#include "gettext.h"
-#include "support/lstrings.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
#include "ControlCharacter.h"
#include "QCharacterDialog.h"
#include "QCharacter.h"
#include "Qt2BC.h"
+
+#include "gettext.h"
+#include "support/lstrings.h"
+
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
+#include <vector>
+
using namespace frnt;
using std::vector;
// -*- C++ -*-
/**
* \file QCharacter.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 Edwin Leuven, leuven@fee.uva.nl
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Edwin Leuven
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QCHARACTER_H
#define QCHARACTER_H
-#include <config.h>
-#include <vector>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "LString.h"
#include "Qt2Base.h"
#include "controllers/character.h"
#include "controllers/frnt_lang.h"
+#include "LString.h"
+#include <vector>
+
class ControlCharacter;
class QCharacterDialog;
/**
* \file QCharacterDialog.C
- * Copyright 2001 the 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 Edwin Leuven, leuven@fee.uva.nl
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QCharacterDialog.h"
#include <qcombobox.h>
+// -*- C++ -*-
/**
* \file QCharacterDialog.h
- * Copyright 2001 the 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 Edwin Leuven
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QCHARACTERDIALOG_H
#define QCHARACTERDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "QCharacter.h"
#include "ui/QCharacterDialogBase.h"
/**
* \file QCitation.C
- * 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 Angus Leeming <a.leeming@ic.ac.uk>
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Angus Leeming
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QCitation.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 Angus Leeming <a.leeming@ic.ac.uk>
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Angus Leeming
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QCITATION_H
#pragma interface
#endif
-class QListBox;
-
#include "Qt2Base.h"
+class QListBox;
class ControlCitation;
class QCitationDialog;
/**
* \file QCitationDialog.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <algorithm>
#include "gettext.h"
#include <qpushbutton.h>
#include "QCitationDialog.h"
-
+#include "QCitation.h"
+#include "support/lstrings.h"
+
using std::vector;
using std::find;
using std::max;
}
+void QCitationDialog::changed_adaptor()
+{
+ form_->changed();
+}
+
+
void QCitationDialog::doFind(biblio::Direction dir)
{
biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
if (cit == form_->bibkeys.end())
return;
}
-
+
int const found = int(cit - form_->bibkeys.begin());
if (found == sel) {
return;
+// -*- C++ -*-
/**
* \file QCitationDialog.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QCITATIONDIALOG_H
#define QCITATIONDIALOG_H
-#include <config.h>
-#include "support/lstrings.h"
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "QCitation.h"
#include "ui/QCitationDialogBase.h"
#include "controllers/biblio.h"
+class QCitation;
+
class QCitationDialog : public QCitationDialogBase
{ Q_OBJECT
virtual void slotDownClicked();
virtual void slotPreviousClicked();
virtual void slotNextClicked();
-
- virtual void changed_adaptor() {
- form_->changed();
- }
+ virtual void changed_adaptor();
private:
void doFind(biblio::Direction dir);
/**
* \file QCommandBuffer.C
- * Copyright 2002 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
*/
#include <config.h>
-
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/filetools.h"
#include "controllers/ControlCommandBuffer.h"
#include "gettext.h"
#include "debug.h"
-
+
#include "QtView.h"
#include "QCommandBuffer.h"
#include "QCommandEdit.h"
-
+
#include <qcombobox.h>
#include <qlistbox.h>
#include <qtoolbutton.h>
#include <qpixmap.h>
+#include "LString.h"
+
using std::vector;
namespace {
-
+
class QTempListBox : public QListBox {
public:
QTempListBox()
WType_Modal | WType_Popup | WDestructiveClose) {
setHScrollBarMode(AlwaysOff);
}
-
+
protected:
void mouseReleaseEvent(QMouseEvent * e) {
if (e->x() < 0 || e->y() < 0
emit selected(currentText());
}
}
-
+
void keyPressEvent(QKeyEvent * e) {
if (e->key() == Key_Escape) {
hide();
};
}
-
+
QCommandBuffer::QCommandBuffer(QtView * view, ControlCommandBuffer & control)
: QToolBar(view), view_(view), controller_(control)
{
setHorizontalStretchable(true);
-
+
QPixmap qp(LibFileSearch("images", "unknown", "xpm").c_str());
QToolButton * upb = new QToolButton(qp, _("Up"), "", this, SLOT(up()), this);
upb->show();
-
+
QToolButton * downb = new QToolButton(qp, _("Down"), "", this, SLOT(down()), this);
downb->show();
-
+
edit_ = new QCommandEdit(this);
edit_->setMinimumSize(edit_->sizeHint());
edit_->show();
setStretchableWidget(edit_);
-
+
show();
-
+
connect(edit_, SIGNAL(escapePressed()), this, SLOT(cancel()));
connect(edit_, SIGNAL(returnPressed()), this, SLOT(dispatch()));
connect(edit_, SIGNAL(rightPressed()), this, SLOT(complete()));
edit_->setFocus();
}
-
+
void QCommandBuffer::cancel()
{
view_->centralWidget()->setFocus();
edit_->setText("");
}
-
+
void QCommandBuffer::dispatch()
{
controller_.dispatch(edit_->text().latin1());
string const input = edit_->text().latin1();
string new_input;
vector<string> comp = controller_.completions(input, new_input);
-
+
if (comp.empty() && new_input == input) {
// show_info_suffix(_("[no match]"), input);
return;
// show_info_suffix(("[only completion]"), new_input + " ");
return;
}
-
+
edit_->setText(new_input.c_str());
QTempListBox * list = new QTempListBox();
// For some reason the scrollview's contents are larger
- // than the number of actual items...
+ // than the number of actual items...
vector<string>::const_iterator cit = comp.begin();
vector<string>::const_iterator end = comp.end();
for (; cit != end; ++cit) {
list->insertItem(cit->c_str());
}
-
+
// width() is not big enough by a few pixels. Qt Sucks.
list->setMinimumWidth(list->sizeHint().width() + 10);
-
+
list->resize(list->sizeHint());
- QPoint pos(edit_->mapToGlobal(QPoint(0, 0)));
+ QPoint pos(edit_->mapToGlobal(QPoint(0, 0)));
int y = pos.y() - list->height();
if (y < 0)
y = 0;
list->move(pos.x(), y);
-
+
connect(list, SIGNAL(selected(const QString &)),
- this, SLOT(complete_selected(const QString &)));
-
+ this, SLOT(complete_selected(const QString &)));
+
list->show();
list->setFocus();
}
const_cast<QWidget *>(widget)->hide();
}
-
+
void QCommandBuffer::up()
{
string const input = edit_->text().latin1();
string const h(controller_.historyUp());
-
+
if (h.empty()) {
// show_info_suffix(_("[Beginning of history]"), input);
} else {
{
string const input = edit_->text().latin1();
string const h(controller_.historyDown());
-
+
if (h.empty()) {
// show_info_suffix(_("[End of history]"), input);
} else {
}
-#if 0
+#if 0
void XMiniBuffer::show_info_suffix(string const & suffix, string const & input)
{
stored_input_ = input;
info_suffix_shown_ = true;
- set_input(input + " " + suffix);
+ set_input(input + " " + suffix);
suffix_timer_->start();
}
-
+
void XMiniBuffer::suffix_timeout()
{
+// -*- C++ -*-
/**
* \file QCommandBuffer.h
- * Copyright 2002 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 QCOMMANDBUFFER_H
#define QCOMMANDBUFFER_H
-#include <config.h>
-#include "LString.h"
-
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <qtoolbar.h>
-#include <qtimer.h>
-
+
class QtView;
class QCommandEdit;
class QListBoxItem;
class ControlCommandBuffer;
-
+
class QCommandBuffer : public QToolBar {
Q_OBJECT
public:
/// focus the edit widget
void focus_command();
-
+
public slots:
/// cancel command compose
void cancel();
void up();
/// down
void down();
-
+
private:
/// owning view
QtView * view_;
/// command widget
QCommandEdit * edit_;
-
};
#endif // QCOMMANDBUFFER_H
/**
* \file QCommandEdit.C
- * Copyright 2002 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
*/
#include "QCommandEdit.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
QCommandEdit::QCommandEdit(QWidget * parent)
: QLineEdit(parent)
{
+// -*- C++ -*-
/**
* \file QCommandEdit.h
- * Copyright 2002 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 QCOMMANDEDIT_H
#define QCOMMANDEDIT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <qlineedit.h>
-
+
class QCommandEdit : public QLineEdit {
Q_OBJECT
public:
signals:
/// cancel
void escapePressed();
-
+
/// up history
void upPressed();
-
+
/// down history
void downPressed();
-
+
/// complete
void rightPressed();
-
+
protected:
virtual void keyPressEvent(QKeyEvent * e);
};
/**
* \file QContentPane.C
- * Copyright 1995-2002 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QContentPane.h
- * Copyright 1995-2002 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 QCONTENTPANE_H
#pragma interface
#endif
-#include <config.h>
-#include <utility>
-#include <boost/smart_ptr.hpp>
-
#include <qwidget.h>
-#include <qscrollbar.h>
-#include <qpixmap.h>
#include <qevent.h>
+#include <qpixmap.h>
+#include <boost/scoped_ptr.hpp>
+
+class QWorkArea;
-class QWorkArea;
-
/// for emulating triple click
struct double_click {
int x;
double_click()
: x(0), y(0), state(Qt::NoButton), active(false) {}
-
+
double_click(QMouseEvent * e)
: x(e->x()), y(e->y()),
state(e->button()), active(true) {}
*/
class QContentPane : public QWidget {
Q_OBJECT
-
+
public:
QContentPane(QWorkArea * parent);
-
+
/// return the backing pixmap
- QPixmap * pixmap() const { return pixmap_.get(); }
-
+ QPixmap * pixmap() const { return pixmap_.get(); }
+
protected:
/// repaint part of the widget
void paintEvent(QPaintEvent * e);
/// widget has been resized
void resizeEvent(QResizeEvent * e);
-
+
/// mouse button press
void mousePressEvent(QMouseEvent * e);
- /// mouse button release
+ /// mouse button release
void mouseReleaseEvent(QMouseEvent * e);
- /// mouse double click of button
+ /// mouse double click of button
void mouseDoubleClickEvent(QMouseEvent * e);
/// mouse motion
void mouseMoveEvent(QMouseEvent * e);
-
+
/// key press
void keyPressEvent(QKeyEvent * e);
-
+
public slots:
void doubleClickTimeout();
-
+
void scrollBarChanged(int);
-
+
private:
/// owning widget
QWorkArea * wa_;
-
+
/// the double buffered pixmap
boost::scoped_ptr<QPixmap> pixmap_;
/**
* \file QDelimiterDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/filetools.h"
#include "gettext.h"
#include "debug.h"
+// -*- C++ -*-
/**
* \file QDelimiterDialog.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 QDELIMITERDIALOG_H
#define QDELIMITERDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "LString.h"
-
#include "ui/QDelimiterDialogBase.h"
+#include "LString.h"
class QMath;
class IconPalette;
private:
void set_label(QLabel * label, string const & str);
- /// symbol of left delimiter
+ /// symbol of left delimiter
string left_;
/// symbol of right delimiter
string right_;
-
+
/// owning form
QMath * form_;
};
/**
* \file QDocument.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QDocument.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QDOCUMENT_H
#define QDOCUMENT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
#include "Qt2BC.h"
-#include "QtLyXView.h"
+//#include "QtLyXView.h"
#include <boost/scoped_ptr.hpp>
-#include <vector>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
class ControlDocument;
class QDocumentDialog;
class BufferParams;
/**
* \file QDocumentDialog.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QDocumentDialog.h"
#include "Dialogs.h"
#include "QDocument.h"
+// -*- C++ -*-
/**
* \file QDocumentDialog.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QDOCUMENTDIALOG_H
#define QDOCUMENTDIALOG_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QDocumentDialogBase.h"
class QDocument;
/**
* \file QERT.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlERT.h"
#include "gettext.h"
#include "QERTDialog.h"
#include "QERT.h"
#include "Qt2BC.h"
-
+
typedef Qt2CB<ControlERT, Qt2DB<QERTDialog> > base_class;
QERT::QERT()
// -*- C++ -*-
/**
* \file QERT.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 QERT_H
#define QERT_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlERT;
/**
* \file QERTDialog.C
- * 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
*/
#include <config.h>
-
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QERT.h"
#include "QERTDialog.h"
form_->slotWMHide();
e->accept();
}
+
+
+void QERTDialog::change_adaptor()
+{
+ form_->changed();
+}
+// -*- C++ -*-
/**
* \file QERTDialog.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 QERTDIALOG_H
#define QERTDIALOG_H
-#include <config.h>
-
-#include "QERT.h"
#include "ui/QERTDialogBase.h"
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+class QERT;
+
class QERTDialog : public QERTDialogBase
{ Q_OBJECT
QERTDialog(QERT * form);
protected slots:
- void change_adaptor() {
- form_->changed();
- }
+ virtual void change_adaptor();
protected:
virtual void closeEvent(QCloseEvent * e);
/**
* \file QError.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlError.h"
#include "gettext.h"
// -*- C++ -*-
/**
* \file QError.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 QERROR_H
#define QERROR_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlError;
/**
* \file QErrorDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QError.h"
#include <qwidget.h>
+// -*- C++ -*-
/**
* \file QErrorDialog.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 QERRORDIALOG_H
#define QERRORDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QErrorDialogBase.h"
/**
* \file QExternal.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "ControlExternal.h"
// -*- C++ -*-
/**
* \file QExternal.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 QEXTERNAL_H
#define QEXTERNAL_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlExternal;
/**
* \file QExternalDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "gettext.h"
#include "ControlExternal.h"
+// -*- C++ -*-
/**
* \file QExternalDialog.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 QEXTERNALDIALOG_H
#define QEXTERNALDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QExternalDialogBase.h"
QExternalDialog(QExternal * form);
virtual void show();
-
+
protected slots:
virtual void change_adaptor();
virtual void editClicked();
/**
* \file QFloat.C
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QFloat.h
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QFLOAT_H
/**
* \file QFloatDialog.C
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "LString.h"
#include "ControlFloat.h"
+// -*- C++ -*-
/**
* \file QFloatDialog.h
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QFLOATDIALOG_H
#define QFLOATDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QFloatDialogBase.h"
virtual void tbhpClicked();
virtual void heredefinitelyClicked();
virtual void spanClicked();
-
+
protected:
virtual void closeEvent(QCloseEvent * e);
/**
* \file QGraphics.C
- * 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QGraphics.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 QGRAPHICS_H
/**
* \file QGraphicsDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "ControlGraphics.h"
+// -*- C++ -*-
/**
* \file QGraphicsDialog.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 QGRAPHICSDIALOG_H
#define QGRAPHICSDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QGraphicsDialogBase.h"
QGraphicsDialog(QGraphics * form);
virtual void show();
-
+
protected slots:
virtual void change_adaptor();
virtual void browse_clicked();
/**
* \file QInclude.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QInclude.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 QINCLUDE_H
/**
* \file QIncludeDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "ControlInclude.h"
+// -*- C++ -*-
/**
* \file QIncludeDialog.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 QINCLUDEDIALOG_H
#define QINCLUDEDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QIncludeDialogBase.h"
void updateLists();
virtual void show();
-
+
protected slots:
virtual void change_adaptor();
virtual void loadClicked();
/**
* \file QIndex.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlIndex.h"
#include "gettext.h"
// -*- C++ -*-
/**
* \file QIndex.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author John Levon
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QINDEX_H
#define QINDEX_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlIndex;
/**
* \file QIndexDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "gettext.h"
#include "QIndex.h"
+// -*- C++ -*-
/**
* \file QIndexDialog.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 QINDEXDIALOG_H
#define QINDEXDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QIndexDialogBase.h"
QIndexDialog(QIndex * form);
virtual void show();
-
+
protected slots:
virtual void change_adaptor();
-/*
+/**
* \file QLImage.C
- * Copyright 2002 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 Angus Leeming, a.leeming@ic.ac.uk
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Angus Leeming
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QLImage.h
- * Copyright 2002 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 Angus Leeming, a.leeming@ic.ac.uk
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Angus Leeming
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QLIMAGE_H
#endif
#include "graphics/GraphicsImage.h"
-
+
#include <qpixmap.h>
-
+
namespace grfx {
class QLImage : public Image
/// Get the image height
virtual unsigned int getHeight() const;
- // FIXME
- virtual bool isDrawable() const { return true; }
-
- /**
+ // FIXME
+ virtual bool isDrawable() const { return true; }
+
+ /**
* Load the image file into memory.
* The process is asynchronous, so this method starts the loading.
* When finished, the Image::finishedLoading signal is emitted.
/**
* \file QLPainter.C
- * Copyright 1998-2002 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QLPainter.h
- * Copyright 1995-2002 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 QLPAINTER_H
#pragma interface
#endif
-#include <config.h>
-#include <boost/smart_ptr.hpp>
-
#include "Painter.h"
#include "LString.h"
#include "LColor.h"
+#include <boost/scoped_ptr.hpp>
+
class LyXFont;
class QWorkArea;
class QPainter;
class QLPainter : public Painter {
public:
QLPainter(QWorkArea &);
-
+
/// begin painting
virtual void start();
/// end painting
virtual void end();
-
+
/// return the width of the work area in pixels
virtual int paperWidth() const;
/// return the height of the work area in pixels
/// draw a line from point to point
virtual Painter & line(
- int x1, int y1,
+ int x1, int y1,
int x2, int y2,
LColor::color = LColor::foreground,
line_style = line_solid,
* @param np size of the points array
*/
virtual Painter & lines(
- int const * xp,
- int const * yp,
+ int const * xp,
+ int const * yp,
int np,
LColor::color = LColor::foreground,
line_style = line_solid,
LColor::color = LColor::foreground,
line_style = line_solid,
line_width = line_thin);
-
+
/// draw a filled rectangle
virtual Painter & fillRectangle(
int x, int y,
int w, int h,
LColor::color);
-
+
/// draw a filled (irregular) polygon
virtual Painter & fillPolygon(
- int const * xp,
- int const * yp,
+ int const * xp,
+ int const * yp,
int np,
- LColor::color = LColor::foreground);
-
+ LColor::color = LColor::foreground);
+
/// draw an arc
virtual Painter & arc(
int x, int y,
unsigned int w, unsigned int h,
int a1, int a2,
LColor::color = LColor::foreground);
-
+
/// draw a pixel
virtual Painter & point(
int x, int y,
LColor::color = LColor::foreground);
-
+
/// draw an image from the image cache
virtual Painter & image(int x, int y,
int w, int h,
grfx::Image const & image);
-
+
/// draw a string at position x, y (y is the baseline)
virtual Painter & text(int x, int y,
string const & str, LyXFont const & f);
LyXFont const & f);
/// set pen parameters
- QPainter & setPen(LColor::color c,
+ QPainter & setPen(LColor::color c,
line_style ls = line_solid,
line_width lw = line_thin);
-
+
/// our owner who we paint upon
QWorkArea & owner_;
/// our qt painter
boost::scoped_ptr<QPainter> qp_;
-
+
/// recursion check
int paint_check_;
};
/**
* \file QLPopupMenu.h
- * Copyright 2002 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 <levon@movementarian.org>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "MenuBackend.h"
#include "lyxfunc.h"
#include "debug.h"
+// -*- C++ -*-
/**
* \file QLPopupMenu.h
- * Copyright 2002 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 <levon@movementarian.org>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QLPOPUPMENU_H
#define QLPOPUPMENU_H
-
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Menubar_pimpl.h"
-
-#include <qpopupmenu.h>
+
+#include <qpopupmenu.h>
#include "LString.h"
-
+
class MenuBackend;
class MenuItem;
class Menu;
/// create a sub-menu
std::pair<int, QLPopupMenu *>
createMenu(QMenuData * parent, MenuItem const * item, Menubar::Pimpl * owner, bool is_toplevel = false);
-
+
/// a submenu
class QLPopupMenu : public QPopupMenu {
Q_OBJECT
public:
QLPopupMenu(Menubar::Pimpl * owner, string const & name, bool toplevel);
- /// populate the menu
+ /// populate the menu
void populate(Menu * menu);
public slots:
private:
/// return true if the given submenu is disabled
bool disabled(Menu * menu);
-
+
/// our owning menubar
Menubar::Pimpl * owner_;
/**
* \file QLog.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QLog.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 QLOG_H
/**
* \file QLogDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "LyXView.h"
+// -*- C++ -*-
/**
* \file QLogDialog.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 QLOGDIALOG_H
#define QLOGDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QLogDialogBase.h"
/**
* \file QLyXKeySym.C
- * Copyright 2002 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 Asger and Juergen
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QLyXKeySym.h
- * Copyright 2002 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 Asger and Juergen
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QLYXKEYSYM_H
#include <qstring.h>
class QKeyEvent;
-
+
/**
* Qt-specific key press.
*
/// Is this a modifier key only?
virtual bool isModifier() const;
-
+
/// return the LyX symbolic name
virtual string getSymbolName() const;
private:
/// the Qt sym value
int key_;
- /// the event string value
+ /// the event string value
QString text_;
};
/**
* \file QMath.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QMath.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 QMATH_H
#define QMATH_H
-#include <config.h>
-
-#include "LString.h"
-
#ifdef __GNUG__
#pragma interface
#endif
+#include "LString.h"
+
class QMathDialog;
class QMath
/// temporary
void do_show();
-
+
/// build the dialog (should be private)
virtual void build_dialog();
/// insert a math symbol into the doc
void insert(string const & name);
-
+
/// insert a cube root
void insertCubeRoot();
-
+
/// insert a matrix
void insertMatrix();
-
+
/// insert delim
void insertDelim(string const & str);
-
+
/// add a subscript
void subscript();
/// add a superscript
void superscript();
-
+
/// switch between display and inline
void toggleDisplay();
-
+
private:
/// Apply changes
virtual void apply() {}
/// update
virtual void update_contents() {}
- // FIXME: temp
- QMathDialog * dialog_;
+ // FIXME: temp
+ QMathDialog * dialog_;
};
#endif // QMATH_H
/**
* \file QMathDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/filetools.h"
#include "gettext.h"
#include "debug.h"
+// -*- C++ -*-
/**
* \file QMathDialog.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 QMATHDIALOG_H
#define QMATHDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "LString.h"
-
#include "ui/QMathDialogBase.h"
+#include "LString.h"
class QMath;
class IconPalette;
/// about to show a symbol panel
void showingPanel(int);
-
+
protected:
//needed ? virtual void closeEvent(QCloseEvent * e);
/// add a symbol panel
void addPanel(int num);
-
+
/// owning form
QMath * form_;
};
/**
* \file QMinipage.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QMinipage.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 QMINIPAGE_H
/**
* \file QMinipageDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "ControlMinipage.h"
+// -*- C++ -*-
/**
* \file QMinipageDialog.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 QMINIPAGEDIALOG_H
#define QMINIPAGEDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QMinipageDialogBase.h"
/**
* \file QParagraph.C
- * Copyright 2000-2001 The 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- 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 Edwin Leuven <leuven@fee.uva.nl>
- * \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 <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
+#include <vector>
class ControlParagraph;
class QParagraphDialog;
virtual void update_contents();
/// build the dialog
virtual void build_dialog();
-
+
std::vector<string> units_;
};
/**
* \file QParagraphDialog.C
* 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, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QParagraphDialog.h"
+#include "QParagraph.h"
#include <qlineedit.h>
#include <qcombobox.h>
form_, SLOT(slotApply()));
connect(closePB, SIGNAL(clicked()),
form_, SLOT(slotClose()));
-
+
linespacingValue->setValidator(new QDoubleValidator(linespacingValue));
- // disabled to allow glue spacing for latexperts
+ // disabled to allow glue spacing for latexperts
//valueAbove->setValidator(new QDoubleValidator(valueAbove));
//valueBelow->setValidator(new QDoubleValidator(valueBelow));
}
bool const enable = spacingAbove->currentItem()==6;
valueAbove->setEnabled(enable);
unitAbove->setEnabled(enable);
-
+
}
void QParagraphDialog::enableBelow(int)
// -*- C++ -*-
/**
* \file QParagraphDialog.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, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QPARAGRAPHDIALOG_H
#define QPARAGRAPHDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "QParagraph.h"
#include "ui/QParagraphDialogBase.h"
-#include <qevent.h>
+class QParagraph;
class QParagraphDialog : public QParagraphDialogBase
{
void closeEvent (QCloseEvent * e);
private:
QParagraph * form_;
-
+
protected slots:
void change_adaptor();
void enableAbove(int);
/**
* \file QPreamble.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QPreamble.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 QPREAMBLE_H
/**
* \file QPreambleDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <fstream>
#include "support/lyxlib.h"
+// -*- C++ -*-
/**
* \file QPreambleDialog.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 QPreambleDIAPreamble_H
#define QPreambleDIAPreamble_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QPreambleDialogBase.h"
/**
* \file QPrint.C
- * 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 Edwin Leuven, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#endif
#include "LyXView.h"
+#include "PrinterParams.h"
#include "ControlPrint.h"
#include "support/lstrings.h"
#include "gettext.h"
// -*- C++ -*-
/**
* \file QPrint.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 Edwin Leuven, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QPRINT_H
class ControlPrint;
class QPrintDialog;
-class Dialogs;
///
class QPrint
/**
* \file QPrintDialog.C
* 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, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <gettext.h>
#include "support/filetools.h"
#include "support/lstrings.h"
form_, SLOT(slotClose()));
}
-
+
void QPrintDialog::change_adaptor()
{
form_->changed();
+// -*- C++ -*-
/**
* \file QPrintDialog.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, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QPRINTDIALOG_H
#define QPRINTDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QPrintDialogBase.h"
-#include "lyxrc.h"
-#include "PrinterParams.h"
class QPrint;
private:
QPrint * form_;
-
};
#endif // QPRINTDIALOG_H
/**
* \file QRef.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlRef.h"
#include "QRef.h"
#include "QRefDialog.h"
+// -*- C++ -*-
/**
* \file QRef.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QREF_H
#define QREF_H
-#include <config.h>
-#include <vector>
-#include "LString.h"
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "Qt2Base.h"
+#include <vector>
+#include "LString.h"
class ControlRef;
class QRefDialog;
/**
* \file QRefDialog.C
- * 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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Kalle Dalheimer
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlRef.h"
#include "debug.h"
+// -*- C++ -*-
/**
* \file QRefDialog.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Kalle Dalheimer
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QREFDIALOG_H
#define QREFDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QRefDialogBase.h"
/**
* \file QSearch.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QSearch.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 QSEARCH_H
/**
* \file QSearchDialog.C
- * Copyright 2001 The 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 Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlSearch.h"
#include "QSearchDialog.h"
+#include "QSearch.h"
#include "debug.h"
#include <qpushbutton.h>
+// -*- C++ -*-
/**
* \file QSearchDialog.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 Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QSEARCHDIALOG_H
#define QSEARCHDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "QSearch.h"
#include "ui/QSearchDialogBase.h"
+#include "LString.h"
+class QSearch;
class QCloseEvent;
class QComboBox;
void remember(string const & find, QComboBox & combo);
QSearch * form_;
-
};
#endif // QSEARCHDIALOG_H
/**
* \file QShowFile.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlShowFile.h"
#include "gettext.h"
// -*- C++ -*-
/**
* \file QShowFile.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 QSHOWFILE_H
#define QSHOWFILE_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlShowFile;
/**
* \file QShowFileDialog.C
- * 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
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QShowFile.h"
#include "QShowFileDialog.h"
+// -*- C++ -*-
/**
* \file QShowFileDialog.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 QSHOWFILEDIALOG_H
#define QSHOWFILEDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QShowFileDialogBase.h"
/**
* \file QSpellchecker.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlSpellchecker.h"
#include "QSpellcheckerDialog.h"
#include "QSpellchecker.h"
// -*- C++ -*-
/**
* \file QSpellchecker.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 Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author John Levon
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QSPELLCHECKER_H
#define QSPELLCHECKER_H
-#include "Qt2Base.h"
+#ifdef __GNUG__
+#pragma interface
+#endif
+#include "Qt2Base.h"
class ControlSpellchecker;
class QSpellcheckerDialog;
/**
* \file QSpellcheckerDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QSpellcheckerDialog.h"
#include "QSpellchecker.h"
#include "gettext.h"
}
-void QSpellcheckerDialog:: suggestionChanged(const QString & str)
+void QSpellcheckerDialog::stop()
+{
+ form_->stop();
+}
+
+
+void QSpellcheckerDialog::acceptClicked()
+{
+ form_->accept();
+}
+
+
+void QSpellcheckerDialog::spellcheckClicked()
+{
+ form_->spellcheck();
+}
+
+
+void QSpellcheckerDialog::addClicked()
+{
+ form_->add();
+}
+
+
+void QSpellcheckerDialog::replaceClicked()
+{
+ form_->replace();
+}
+
+
+void QSpellcheckerDialog::ignoreClicked()
+{
+ form_->ignore();
+}
+
+
+void QSpellcheckerDialog::suggestionChanged(const QString & str)
{
if (replaceCO->count() != 0)
replaceCO->changeItem(str, 0);
}
-void QSpellcheckerDialog:: replaceChanged(const QString & str)
+void QSpellcheckerDialog::replaceChanged(const QString & str)
{
if (suggestionsLB->currentText() == str)
return;
+// -*- C++ -*-
/**
* \file QSpellcheckerDialog.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 QSPELLCHECKERDIALOG_H
#define QSPELLCHECKERDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "QSpellchecker.h"
#include "ui/QSpellcheckerDialogBase.h"
+class QSpellchecker;
+
class QSpellcheckerDialog : public QSpellcheckerDialogBase
{ Q_OBJECT
QSpellcheckerDialog(QSpellchecker * form);
protected slots:
- virtual void stop() {
- form_->stop();
- }
-
- virtual void acceptClicked() {
- form_->accept();
- }
- virtual void spellcheckClicked() {
- form_->spellcheck();
- }
- virtual void addClicked() {
- form_->add();
- }
- virtual void replaceClicked() {
- form_->replace();
- }
- virtual void ignoreClicked() {
- form_->ignore();
- }
+ virtual void stop();
+ virtual void acceptClicked();
+ virtual void spellcheckClicked();
+ virtual void addClicked();
+ virtual void replaceClicked();
+ virtual void ignoreClicked();
virtual void suggestionChanged(const QString &);
virtual void replaceChanged(const QString &);
/**
* \file QTabularCreate.C
- * 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
*/
#include <config.h>
// -*- 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
/**
* \file QTabularCreateDialog.C
- * 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 Edwin Leuven, leuven@fee.uva.nl
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <gettext.h>
#include "support/lstrings.h"
+// -*- C++ -*-
/**
* \file QTabularCreateDialog.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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QTABULARCREATEDIALOG_H
#define QTABULARCREATEDIALOG_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QTabularCreateDialogBase.h"
class QTabularCreate;
/**
* \file QTexinfo.C
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QTexinfo.h
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QTEXINFO_H
/**
* \file QTexinfoDialog.C
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "LString.h"
+// -*- C++ -*-
/**
* \file QTexinfoDialog.h
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QTEXINFODIALOG_H
#define QTEXINFODIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QTexinfoDialogBase.h"
/**
* \file QThesaurus.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QThesaurus.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 QTHESAURUS_H
/**
* \file QThesaurusDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "LString.h"
+// -*- C++ -*-
/**
* \file QThesaurusDialog.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 QTHESAURUSDIALOG_H
#define QTHESAURUSDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QThesaurusDialogBase.h"
/**
* \file QToc.C
- * 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
*/
#include <config.h>
#include "support/lstrings.h"
#include "debug.h"
+#include "ControlToc.h"
#include "QToc.h"
#include "QTocDialog.h"
#include "Qt2BC.h"
// -*- C++ -*-
/**
* \file QToc.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
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QTOC_H
#pragma interface
#endif
-#include "ControlToc.h"
-#include "toc.h"
-
#include "Qt2Base.h"
+#include "toc.h"
class ControlToc;
class QTocDialog;
/**
* \file QTocDialog.C
- * 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QToc.h"
#include "QTocDialog.h"
+// -*- C++ -*-
/**
* \file QTocDialog.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 QTOCDIALOG_H
#define QTOCDIALOG_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QTocDialogBase.h"
class QToc;
/**
* \file QURL.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "ControlUrl.h"
#include "debug.h"
#include "gettext.h"
+// -*- C++ -*-
/**
* \file QURL.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QURL_H
#define QURL_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "Qt2Base.h"
class ControlUrl;
/**
* \file QURLDialog.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "QURL.h"
#include "QURLDialog.h"
+// -*- C++ -*-
/**
* \file QURLDialog.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QURLDIALOG_H
#define QURLDIALOG_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ui/QURLDialogBase.h"
class QURL;
~QURLDialog();
virtual void show();
-
+
public slots:
void changed_adaptor();
/**
* \file QVCLog.C
- * 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QVCLog.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 QVCLOG_H
/**
* \file QVCLogDialog.C
- * 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
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include <vector>
#include "LyXView.h"
+// -*- C++ -*-
/**
* \file QVCLogDialog.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 QVCLOGDIALOG_H
#define QVCLOGDIALOG_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include "ui/QVCLogDialogBase.h"
/**
* \file QWorkArea.C
- * Copyright 1995-2002 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QWorkArea.h
- * Copyright 1995-2002 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 unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QWORKAREA_H
#pragma interface
#endif
-#include <utility>
-
#include "WorkArea.h"
#include "QLPainter.h"
#include "QContentPane.h"
-
+
#include <qwidget.h>
#include <qscrollbar.h>
#include <qpixmap.h>
-
+
/**
* Qt-specific implementation of the work area
* (buffer view GUI)
* Hopefully soon we can just use QScrollView ...
*/
class QWorkArea : public WorkArea, public QWidget {
-
+
friend class QContentPane;
-
+
public:
QWorkArea(int x, int y, int w, int h);
virtual int workWidth() const { return content_->width(); }
/// return the height of the content pane
virtual int workHeight() const { return content_->height(); }
- ///
+ ///
virtual void setScrollbarParams(int height, int pos, int line_height);
-
+
/// a selection exists
virtual void haveSelection(bool) const;
///
QScrollBar * scrollbar_;
/// content
QContentPane * content_;
-
+
/// our painter
QLPainter painter_;
};
-
+
#endif // QWORKAREA_H
/**
* \file Qt2BC.C
- * 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 Allan Rae <rae@lyx.org>
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Allan Rae
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file Qt2BC.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 Allan Rae, rae@lyx.org
- * \author Angus Leeming, a.leeming@ic.ac.uk
- * \author Baruch Even, baruch.even@writeme.com
+ * \author Allan Rae
+ * \author Angus Leeming
+ * \author Baruch Even
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QT2BC_H
-/* This file is part of
- * ======================================================
+/**
+ * \file Qt2Base.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Angus Leeming
*
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file Qt2Base.h
- * Copyright 2000-2002 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 Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
-
#ifndef QT2BASE_H
#define QT2BASE_H
-#include <config.h>
-
#ifdef __GNUG__
#pragma interface
#endif
#include "ViewBase.h"
-#include "LString.h"
-#include "debug.h"
-#include "ButtonPolicies.h"
-
#include <boost/scoped_ptr.hpp>
#include <qfont.h>
// -*- C++ -*-
-/*
- * QtLyXView.h
- * (C) 2000 LyX Team
- * moz@compsoc.man.ac.uk
+/**
+ * \file QtLyXView.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
*/
/* Qt has a messy namespace which conflicts with 'emit' in
/**
* \file QtView.C
- * Copyright 1995-2002 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 Lars Gullik Bjornes <larsbj@lyx.org>
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Lars Gullik Bjornes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file QtView.h
- * Copyright 1995-2002 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 Lars Gullik Bjornes <larsbj@lyx.org>
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author Lars Gullik Bjornes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef QTVIEW_H
#pragma interface
#endif
-#include <config.h>
-
#include "frontends/LyXView.h"
-
+
#include <qmainwindow.h>
#include <qtimer.h>
-
+
class QCommandBuffer;
-
+
/**
* QtView - Qt implementation of LyXView
*
QtView(unsigned int w, unsigned int h);
~QtView();
-
+
/**
* show - display the top-level window
* @param x x position
* @param title window title
*/
void show(int x, int y, string const & t = string("LyX"));
-
+
/// start modal operation
virtual void prohibitInput() const;
/// end modal operation
virtual void allowInput() const;
-
+
/// display a status message
virtual void message(string const & str);
-
+
public slots:
/// menu item has been selected
void activated(int id);
-
+
/// idle timeout
void update_view_state_qt();
-
+
protected:
/// make sure we quit cleanly
virtual void closeEvent(QCloseEvent * e);
-
+
private:
/// focus the command buffer widget
void focus_command_widget();
/// update status bar
void update_view_state();
-
- /**
+
+ /**
* setWindowTitle - set title of window
* @param t main window title
* @param it iconified (short) title
/// idle timer
QTimer idle_timer_;
-
+
/// command buffer
QCommandBuffer * commandbuffer_;
};
-
+
#endif // QTVIEW_H
/**
* \file qt2/Timeout_pimpl.C
- * Copyright 2001 LyX Team
- * Read COPYING
+ * 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>
// -*- C++ -*-
/**
* \file qt2/Timeout_pimpl.h
- * Copyright 2001 LyX Team
- * Read COPYING
+ * 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 TIMEOUTPIMPL_H
#define TIMEOUTPIMPL_H
-#include <config.h>
-
#ifdef __GNUG__
#pragma interface
#endif
#include "frontends/Timeout.h"
-
#include <qobject.h>
+
// stupid Qt
#undef emit
protected:
/// slot
virtual void timerEvent(QTimerEvent *);
+
private:
/// the owning timer
Timeout * owner_;
/**
* \file Toolbar_pimpl.C
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes, larsbj@lyx.org
- * \uathor John Levon <moz@compsoc.man.ac.uk>
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "support/LAssert.h"
#include "support/filetools.h"
-#include "support/lstrings.h"
+#include "support/lstrings.h"
#include "QtView.h"
-
+
#include "Toolbar_pimpl.h"
-
+
#include <boost/tuple/tuple.hpp>
-
+
#include <qtoolbar.h>
#include <qcombobox.h>
#include <qtooltip.h>
#include <qsizepolicy.h>
-
+
using std::endl;
namespace {
-
+
QPixmap getIconPixmap(int action)
{
FuncRequest f = lyxaction.retrieveActionArg(action);
-
+
string xpm_name;
if (f.action == LFUN_INSERT_MATH && !f.argument.empty()) {
string const name = lyxaction.getActionName(f.action);
if (!f.argument.empty())
xpm_name = subst(name + ' ' + f.argument, ' ','_');
- else
+ else
xpm_name = name;
}
string fullname = LibFileSearch("images", xpm_name, "xpm");
if (!fullname.empty()) {
- lyxerr[Debug::GUI] << "Full icon name is `"
+ lyxerr[Debug::GUI] << "Full icon name is `"
<< fullname << "'" << endl;
return QPixmap(fullname.c_str());
}
lyxerr << "Unable to find icon `" << xpm_name << "'" << endl;
fullname = LibFileSearch("images", "unknown", "xpm");
if (!fullname.empty()) {
- lyxerr[Debug::GUI] << "Using default `unknown' icon"
+ lyxerr[Debug::GUI] << "Using default `unknown' icon"
<< endl;
}
return QPixmap(fullname.c_str());
} // namespace anon
-
+
class QLComboBox : public QComboBox {
public:
QLComboBox(QWidget * parent) : QComboBox(parent) {}
void popup() { QComboBox::popup(); }
};
-
+
Toolbar::Pimpl::Pimpl(LyXView * o, int, int)
- : owner_(static_cast<QtView *>(o)),
+ : owner_(static_cast<QtView *>(o)),
combo_(0)
{
proxy_.reset(new ToolbarProxy(*this));
{
ButtonMap::const_iterator p = map_.begin();
ButtonMap::const_iterator end = map_.end();
-
+
for (; p != end; ++p) {
QToolButton * button = p->first;
int action = p->second;
-
- FuncStatus const status =
+
+ FuncStatus const status =
owner_->getLyXFunc().getStatus(action);
-
+
button->setToggleButton(true);
button->setOn(status.onoff(true));
button->setEnabled(!status.disabled());
owner_->getLyXFunc().dispatch(cit->second, true);
}
-
+
void Toolbar::Pimpl::changed_layout(string const & sel)
{
owner_->centralWidget()->setFocus();
-
+
LyXTextClass const & tc =
owner_->buffer()->params.getLyXTextClass();
-
+
LyXTextClass::const_iterator end = tc.end();
for (LyXTextClass::const_iterator cit = tc.begin();
cit != end; ++cit) {
lyxerr << "ERROR (Toolbar::Pimpl::layoutSelected): layout not found!"
<< endl;
}
-
+
void Toolbar::Pimpl::setLayout(string const & layout)
{
LyXTextClass const & tc =
owner_->buffer()->params.getLyXTextClass();
-
+
string const & name = _(tc[layout]->name());
-
+
int i;
-
+
for (i = 0; i < combo_->count(); ++i) {
if (name == combo_->text(i).latin1())
break;
void Toolbar::Pimpl::updateLayoutList(bool force)
{
- // if we don't need an update, don't ...
+ // if we don't need an update, don't ...
if (combo_->count() && !force)
return;
-
+
LyXTextClass const & tc =
owner_->buffer()->params.getLyXTextClass();
-
- combo_->setUpdatesEnabled(false);
-
+
+ combo_->setUpdatesEnabled(false);
+
combo_->clear();
-
+
LyXTextClass::const_iterator cit = tc.begin();
LyXTextClass::const_iterator end = tc.end();
for (; cit != end; ++cit) {
if (!toolbars_.size()) {
toolbars_.push_back(new QToolBar(owner_));
}
-
+
switch (action) {
case ToolbarDefaults::SEPARATOR:
toolbars_.back()->addSeparator();
combo_->setSizePolicy(p);
combo_->setFocusPolicy(QWidget::ClickFocus);
combo_->setMinimumWidth(combo_->sizeHint().width());
-
+
QObject::connect(combo_, SIGNAL(activated(const QString &)),
proxy_.get(), SLOT(layout_selected(const QString &)));
break;
}
default: {
- QToolButton * tb =
+ QToolButton * tb =
new QToolButton(getIconPixmap(action),
_(lyxaction.helpText(action)).c_str(), "",
proxy_.get(), SLOT(button_selected()), toolbars_.back());
// -*- C++ -*-
/**
* \file Toolbar_pimpl.h
- * Copyright 2002 the LyX Team
- * Copyright 1996-2001 Lars Gullik Bjønnes
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes, larsbj@lyx.org
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef TOOLBAR_PIMPL_H
#define TOOLBAR_PIMPL_H
-#include <config.h>
-#include <map>
-#include <vector>
-
-#include <boost/smart_ptr.hpp>
-
-#include "frontends/Toolbar.h"
-
#ifdef __GNUG__
#pragma interface
#endif
+#include "frontends/Toolbar.h"
+
#include <qobject.h>
#include <qtoolbutton.h>
-
+
+#include <boost/scoped_ptr.hpp>
+#include <map>
+#include <vector>
+
class QtView;
class QToolBar;
class QLComboBox;
class ToolbarProxy;
struct Toolbar::Pimpl {
-
+
friend class ToolbarProxy;
-
+
public:
Pimpl(LyXView * o, int x, int y);
~Pimpl();
-
+
/// add a new button to the toolbar.
void add(int action);
void changed_layout(string const & sel);
void button_selected(QToolButton * button);
-
- QtView * owner_;
+
+ QtView * owner_;
boost::scoped_ptr<ToolbarProxy> proxy_;
typedef std::map<QToolButton *, int> ButtonMap;
ButtonMap map_;
-
+
};
-
+
// moc is mind-numbingly stupid
class ToolbarProxy : public QObject {
Q_OBJECT
public:
ToolbarProxy(Toolbar::Pimpl & owner)
: owner_(owner) { };
-
+
public slots:
-
+
void layout_selected(const QString & str) {
owner_.changed_layout(str.latin1());
}
private:
Toolbar::Pimpl & owner_;
};
-
+
#endif
/**
* \file WorkAreaFactory.C
- * Copyright 2002 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
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "frontends/WorkAreaFactory.h"
#include "QWorkArea.h"
/**
* \file emptytable.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "emptytable.h"
/**
+// -*- C++ -*-
/**
* \file emptytable.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef EMPTYTABLE_H
#define EMPTYTABLE_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include <qpainter.h>
#include "qttableview.h"
/**
* \file iconpalette.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "debug.h"
#include "iconpalette.h"
+// -*- C++ -*-
/**
* \file iconpalette.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef ICONPALETTE_H
#define ICONPALETTE_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-#include "LString.h"
-
#include <qwidget.h>
-
+#include "LString.h"
+#include <utility>
#include <vector>
-#include <algorithm>
class QPixmap;
class QPushButton;
protected:
virtual void resizeEvent(QResizeEvent * e);
-
+
protected slots:
virtual void clicked();
private:
int maxcol_;
-
+
QGridLayout * layout_;
-
+
typedef std::pair<QPushButton *, string> Button;
-
+
std::vector<Button> buttons_;
};
--- /dev/null
+/**
+ * \file io_callback.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author unknown
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "lyxserver.h"
+#include "io_callback.h"
+
+io_callback::io_callback(int fd, LyXComm * comm)
+ : comm_(comm)
+{
+ sn_.reset(new QSocketNotifier(fd, QSocketNotifier::Read, this));
+ connect(sn_.get(), SIGNAL(activated(int)), this, SLOT(data_received()));
+}
+
+
+void io_callback::data_received()
+{
+ comm_->read_ready();
+}
+// -*- C++ -*-
/**
* \file io_callback.h
- * Copyright 2002 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 unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef IO_CALLBACK_H
#define IO_CALLBACK_H
-
-#include <config.h>
-#include "lyxserver.h"
-#include "debug.h"
-
-#include <qsocketnotifier.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
+#include <qobject.h>
+#include <qsocketnotifier.h>
#include <boost/scoped_ptr.hpp>
-
+
+class LyXComm;
+
/**
* io_callback - a simple wrapper for asynchronous pipe notification
*
* FIXME: this code apparently will not work on Windows.
*/
class io_callback : public QObject {
- Q_OBJECT
+ Q_OBJECT
public:
/// connect a read ready notification for fd to the LyXComm
- io_callback(int fd, LyXComm * comm)
- : comm_(comm) {
- sn_.reset(new QSocketNotifier(fd, QSocketNotifier::Read, this));
- connect(sn_.get(), SIGNAL(activated(int)), this, SLOT(data_received()));
- }
-
+ io_callback(int fd, LyXComm * comm);
+
public slots:
- void data_received() {
- comm_->read_ready();
- }
+ void data_received();
private:
/// our notifier
boost::scoped_ptr<QSocketNotifier> sn_;
-
+
LyXComm * comm_;
};
-#endif // IO_CALLBACK_H
+#endif // IO_CALLBACK_H
/**
* \file lengthcombo.C
- * 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
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "gettext.h"
#include "lengthcombo.h"
+// -*- C++ -*-
/**
* \file lengthcombo.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
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef LENGTHCOMBO_H
#define LENGTHCOMBO_H
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
#include <qcombobox.h>
/**
* \file lyx_gui.C
- * Copyright 2002 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 unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "support/lyxlib.h"
#include "support/os.h"
#include "support/filetools.h"
namespace {
/// good ol' "easy to use" Qt again
float getDPI() { return 95; }
-};
-
+}
+
// FIXME: wrong place !
LyXServer * lyxserver;
return fontloader.available(font);
}
-
+
namespace {
map<int, io_callback *> io_callbacks;
}
-
+
void lyx_gui::set_read_callback(int fd, LyXComm * comm)
{
io_callbacks[fd] = new io_callback(fd, comm);
/**
* \file qfont_loader.C
- * Copyright 1997 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 Asger Alstrup
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
// -*- C++ -*-
/**
* \file qfont_loader.h
- * Copyright 1997 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 QFONTLOADER_H
-#define QFONTLOADER_H
+#define QFONTLOADER_H
#ifdef __GNUG__
#pragma interface
#endif
-#include <config.h>
-#include <boost/smart_ptr.hpp>
-
#include "lyxfont.h"
-
-#include "LString.h"
#include <qfont.h>
#include <qfontmetrics.h>
+#include <boost/scoped_ptr.hpp>
+
/**
* Qt font loader for LyX. Matches LyXFonts against
* actual QFont instances, and also caches metrics.
/// do we have anything matching?
bool available(LyXFont const & f);
-
+
/// get the QFont for this LyXFont
QFont const & get(LyXFont const & f);
/// metrics on the font
QFontMetrics metrics;
};
-
+
/// get font info (font + metrics) for the given LyX font. Does not fail.
font_info const * getfontinfo(LyXFont const & f);
-
+
/// BUTT ugly !
- boost::scoped_ptr<font_info> fontinfo_[LyXFont::NUM_FAMILIES][2][4][10];
+ boost::scoped_ptr<font_info> fontinfo_[LyXFont::NUM_FAMILIES][2][4][10];
};
extern qfont_loader fontloader;
-
+
#endif // QFONT_LOADER_H
/**
* \file qfont_metrics.C
- * Copyright 1995-2002 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 unknown
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
+// -*- C++ -*-
/**
* \file qlkey.h
- * Copyright 2002 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 QLKEY_H
#define QLKEY_H
-
-#include <config.h>
-#include <qnamespace.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include <qnamespace.h>
#include "LString.h"
-#include "debug.h"
-
+
/**
* Return true if the key event is a modifier.
*/
return true;
// AltGr becomes Key_unknown on at least one keyboard
- case Qt::Key_unknown:
+ case Qt::Key_unknown:
return true;
}
return false;
}
-
+
/**
* Return the numeric Qt Key corresponding to the
* given symbol name.
if (str == "thorn") return Qt::Key_thorn;
if (str == "ydiaeresis") return Qt::Key_ydiaeresis;
- // FIXME, correct for all these ?
+ // FIXME, correct for all these ?
if (str == "Super_L") return Qt::Key_Super_L;
if (str == "Super_R") return Qt::Key_Super_R;
if (str == "Menu") return Qt::Key_Menu;
if (str == "Help") return Qt::Key_Help;
if (str == "Bar") return Qt::Key_Bar;
if (str == "BackTab") return Qt::Key_Backtab;
-
+
return Qt::Key_unknown;
}
-
+
/**
* qkey_to_string - convert Qt keypress into LyX
*
/**
* \file qscreen.C
- * Copyright 2002 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
*/
#include <config.h>
// -*- C++ -*-
/**
* \file qscreen.h
- * Copyright 2002 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 QSCREEN_H
#pragma interface
#endif
-#include <boost/smart_ptr.hpp>
-
#include "screen.h"
-#include "QWorkArea.h"
-
#include <qrect.h>
-
+#include <boost/scoped_ptr.hpp>
+
+class WorkArea;
+
+
/**
* Qt implementation of toolkit-specific parts of LyXScreen.
*/
* draw the screen from a given position
* @param y the text position to draw from
*
- * Uses as much of the already printed pixmap as possible
+ * Uses as much of the already printed pixmap as possible
*/
virtual void draw(LyXText *, BufferView *, unsigned int y);
-
+
/**
* showManualCursor - display the caret on the work area
* @param text the lyx text containing the cursor
virtual void showManualCursor(LyXText const *, int x, int y,
int asc, int desc,
Cursor_Shape shape);
-
+
/// unpaint the cursor painted by showManualCursor()
virtual void hideCursor();
-
+
protected:
/// get the work area
virtual WorkArea & workarea() const { return owner_; }
-
+
/// repaint the whole content immediately
void repaint();
-
+
/// copies specified area of pixmap to screen
- virtual void expose(int x, int y, int exp_width, int exp_height);
+ virtual void expose(int x, int y, int exp_width, int exp_height);
private:
/// our owning widget
QWorkArea & owner_;
-
+
/// the mini-pixmap used for backing store for the blinking cursor
boost::scoped_ptr<QPixmap> nocursor_pixmap_;