]> git.lyx.org Git - features.git/commitdiff
Lots and lots of little trivial bits.
authorAngus Leeming <leeming@lyx.org>
Tue, 24 Sep 2002 13:57:09 +0000 (13:57 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 24 Sep 2002 13:57:09 +0000 (13:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5334 a592a061-630c-0410-9148-cb99ea01b6c8

174 files changed:
src/frontends/qt2/Alert_pimpl.C
src/frontends/qt2/ChangeLog
src/frontends/qt2/Dialogs.C
src/frontends/qt2/Dialogs2.C
src/frontends/qt2/Dialogs_impl.h
src/frontends/qt2/FileDialog.C
src/frontends/qt2/FileDialog_private.C
src/frontends/qt2/FileDialog_private.h
src/frontends/qt2/LyXKeySymFactory.C
src/frontends/qt2/LyXScreenFactory.C
src/frontends/qt2/Makefile.am
src/frontends/qt2/Menubar_pimpl.C
src/frontends/qt2/Menubar_pimpl.h
src/frontends/qt2/QAbout.C
src/frontends/qt2/QAbout.h
src/frontends/qt2/QAboutDialog.C
src/frontends/qt2/QAboutDialog.h
src/frontends/qt2/QBibitem.C
src/frontends/qt2/QBibitem.h
src/frontends/qt2/QBibitemDialog.C
src/frontends/qt2/QBibitemDialog.h
src/frontends/qt2/QBibtex.C
src/frontends/qt2/QBibtex.h
src/frontends/qt2/QBibtexDialog.C
src/frontends/qt2/QBibtexDialog.h
src/frontends/qt2/QCharacter.C
src/frontends/qt2/QCharacter.h
src/frontends/qt2/QCharacterDialog.C
src/frontends/qt2/QCharacterDialog.h
src/frontends/qt2/QCitation.C
src/frontends/qt2/QCitation.h
src/frontends/qt2/QCitationDialog.C
src/frontends/qt2/QCitationDialog.h
src/frontends/qt2/QCommandBuffer.C
src/frontends/qt2/QCommandBuffer.h
src/frontends/qt2/QCommandEdit.C
src/frontends/qt2/QCommandEdit.h
src/frontends/qt2/QContentPane.C
src/frontends/qt2/QContentPane.h
src/frontends/qt2/QDelimiterDialog.C
src/frontends/qt2/QDelimiterDialog.h
src/frontends/qt2/QDocument.C
src/frontends/qt2/QDocument.h
src/frontends/qt2/QDocumentDialog.C
src/frontends/qt2/QDocumentDialog.h
src/frontends/qt2/QERT.C
src/frontends/qt2/QERT.h
src/frontends/qt2/QERTDialog.C
src/frontends/qt2/QERTDialog.h
src/frontends/qt2/QError.C
src/frontends/qt2/QError.h
src/frontends/qt2/QErrorDialog.C
src/frontends/qt2/QErrorDialog.h
src/frontends/qt2/QExternal.C
src/frontends/qt2/QExternal.h
src/frontends/qt2/QExternalDialog.C
src/frontends/qt2/QExternalDialog.h
src/frontends/qt2/QFloat.C
src/frontends/qt2/QFloat.h
src/frontends/qt2/QFloatDialog.C
src/frontends/qt2/QFloatDialog.h
src/frontends/qt2/QGraphics.C
src/frontends/qt2/QGraphics.h
src/frontends/qt2/QGraphicsDialog.C
src/frontends/qt2/QGraphicsDialog.h
src/frontends/qt2/QInclude.C
src/frontends/qt2/QInclude.h
src/frontends/qt2/QIncludeDialog.C
src/frontends/qt2/QIncludeDialog.h
src/frontends/qt2/QIndex.C
src/frontends/qt2/QIndex.h
src/frontends/qt2/QIndexDialog.C
src/frontends/qt2/QIndexDialog.h
src/frontends/qt2/QLImage.C
src/frontends/qt2/QLImage.h
src/frontends/qt2/QLPainter.C
src/frontends/qt2/QLPainter.h
src/frontends/qt2/QLPopupMenu.C
src/frontends/qt2/QLPopupMenu.h
src/frontends/qt2/QLog.C
src/frontends/qt2/QLog.h
src/frontends/qt2/QLogDialog.C
src/frontends/qt2/QLogDialog.h
src/frontends/qt2/QLyXKeySym.C
src/frontends/qt2/QLyXKeySym.h
src/frontends/qt2/QMath.C
src/frontends/qt2/QMath.h
src/frontends/qt2/QMathDialog.C
src/frontends/qt2/QMathDialog.h
src/frontends/qt2/QMinipage.C
src/frontends/qt2/QMinipage.h
src/frontends/qt2/QMinipageDialog.C
src/frontends/qt2/QMinipageDialog.h
src/frontends/qt2/QParagraph.C
src/frontends/qt2/QParagraph.h
src/frontends/qt2/QParagraphDialog.C
src/frontends/qt2/QParagraphDialog.h
src/frontends/qt2/QPreamble.C
src/frontends/qt2/QPreamble.h
src/frontends/qt2/QPreambleDialog.C
src/frontends/qt2/QPreambleDialog.h
src/frontends/qt2/QPrint.C
src/frontends/qt2/QPrint.h
src/frontends/qt2/QPrintDialog.C
src/frontends/qt2/QPrintDialog.h
src/frontends/qt2/QRef.C
src/frontends/qt2/QRef.h
src/frontends/qt2/QRefDialog.C
src/frontends/qt2/QRefDialog.h
src/frontends/qt2/QSearch.C
src/frontends/qt2/QSearch.h
src/frontends/qt2/QSearchDialog.C
src/frontends/qt2/QSearchDialog.h
src/frontends/qt2/QShowFile.C
src/frontends/qt2/QShowFile.h
src/frontends/qt2/QShowFileDialog.C
src/frontends/qt2/QShowFileDialog.h
src/frontends/qt2/QSpellchecker.C
src/frontends/qt2/QSpellchecker.h
src/frontends/qt2/QSpellcheckerDialog.C
src/frontends/qt2/QSpellcheckerDialog.h
src/frontends/qt2/QTabularCreate.C
src/frontends/qt2/QTabularCreate.h
src/frontends/qt2/QTabularCreateDialog.C
src/frontends/qt2/QTabularCreateDialog.h
src/frontends/qt2/QTexinfo.C
src/frontends/qt2/QTexinfo.h
src/frontends/qt2/QTexinfoDialog.C
src/frontends/qt2/QTexinfoDialog.h
src/frontends/qt2/QThesaurus.C
src/frontends/qt2/QThesaurus.h
src/frontends/qt2/QThesaurusDialog.C
src/frontends/qt2/QThesaurusDialog.h
src/frontends/qt2/QToc.C
src/frontends/qt2/QToc.h
src/frontends/qt2/QTocDialog.C
src/frontends/qt2/QTocDialog.h
src/frontends/qt2/QURL.C
src/frontends/qt2/QURL.h
src/frontends/qt2/QURLDialog.C
src/frontends/qt2/QURLDialog.h
src/frontends/qt2/QVCLog.C
src/frontends/qt2/QVCLog.h
src/frontends/qt2/QVCLogDialog.C
src/frontends/qt2/QVCLogDialog.h
src/frontends/qt2/QWorkArea.C
src/frontends/qt2/QWorkArea.h
src/frontends/qt2/Qt2BC.C
src/frontends/qt2/Qt2BC.h
src/frontends/qt2/Qt2Base.C
src/frontends/qt2/Qt2Base.h
src/frontends/qt2/QtLyXView.h
src/frontends/qt2/QtView.C
src/frontends/qt2/QtView.h
src/frontends/qt2/Timeout_pimpl.C
src/frontends/qt2/Timeout_pimpl.h
src/frontends/qt2/Toolbar_pimpl.C
src/frontends/qt2/Toolbar_pimpl.h
src/frontends/qt2/WorkAreaFactory.C
src/frontends/qt2/emptytable.C
src/frontends/qt2/emptytable.h
src/frontends/qt2/iconpalette.C
src/frontends/qt2/iconpalette.h
src/frontends/qt2/io_callback.C [new file with mode: 0644]
src/frontends/qt2/io_callback.h
src/frontends/qt2/lengthcombo.C
src/frontends/qt2/lengthcombo.h
src/frontends/qt2/lyx_gui.C
src/frontends/qt2/qfont_loader.C
src/frontends/qt2/qfont_loader.h
src/frontends/qt2/qfont_metrics.C
src/frontends/qt2/qlkey.h
src/frontends/qt2/qscreen.C
src/frontends/qt2/qscreen.h

index 6538fe1ed73357fe6e38915387b574e0aa426d11..657b473103ae5d63ad3c60585b10068c647855b3 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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>
index ac84d963fc9daddcdfc92a58bbd66e88895c3ca9..2c67f902f8d2f79af04844cc4467437b8dd3ca8f 100644 (file)
@@ -1,3 +1,17 @@
+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.
index 6c66c751379cf13aed6fe2cbe73571d06d7c0ace..6d7962e9f4c3147560cfa33f052a0ffccec50365 100644 (file)
@@ -1,11 +1,13 @@
 /**
  * \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>
index 44a349332bd4bb091f1d91657c842bff8d64f1fe..588bbe9d5a13ffb14f0ecdc766f82a2cc2c6137e 100644 (file)
@@ -1,11 +1,13 @@
 /**
  * \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>
index c17d7659a50d39291d97f3ee785da965a60abd14..50ec4257f0f5a70753b33b608f55e5433f56f4df 100644 (file)
@@ -1,9 +1,11 @@
 // -*- 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
index a5c319502adf7fe3be8afa57272273cd0aa51761..0aad7f0e3944dca623bf8c6717784ffc71fae470 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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__
index dc61f7e9ff851e9148e822b80b97851c5b0ca00a..8f68d8caca7d243ff46bc17662d2f09f4a5ff050 100644 (file)
@@ -1,25 +1,29 @@
 /**
  * \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
@@ -35,7 +39,7 @@ namespace {
                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),
@@ -43,7 +47,7 @@ LyXFileDialog::LyXFileDialog(string const & p, string const & m, string const &
 {
        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()));
index 6870f7f7627281fb3ddde253917d690349504db7..5062f226b2c711a2c131c155cb920704e6711f09 100644 (file)
@@ -1,23 +1,24 @@
 // -*- 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;
 
@@ -30,11 +31,11 @@ public:
 
 public slots:
        void buttonClicked();
+
 private:
        QToolButton * b1_;
        string b1_dir_;
+
        QToolButton * b2_;
        string b2_dir_;
 };
index d748f312d5cec227bcb9fdb2691d48db54415d6d..706b18c4ba01d0e57cbd3ea7f137320b86774c32 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index b3abdcc222e1d2decf50b7486e48e564d1c6e038..a5a0f2b2d91c97a7f6f33b9919b431ccd35fb17e 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 5de0fe5bbf0d75be0d14060292b7b88e936e189c..7584392277ad3ac581444bea3ce29df70c42429c 100644 (file)
@@ -59,6 +59,7 @@ libqt2_la_SOURCES = \
        iconpalette.h \
        iconpalette.C \
        io_callback.h \
+       io_callback.C \
        lengthcombo.C \
        lengthcombo.h \
        lyx_gui.C \
index 1dbe51efa0f268f7d150d65073bcf59d0a21f81d..1747534dc27154f37fbe103a70aea5f6f93a7d49 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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;
@@ -39,7 +41,7 @@ using std::min;
 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();
@@ -54,8 +56,8 @@ Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
 
 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.
index 37755e761525062fe9d17057960608329c62a667..4b0fb36aa7fb974b0de42ecc69d39cb12fb7d48c 100644 (file)
@@ -1,27 +1,26 @@
 // -*- 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;
@@ -31,7 +30,7 @@ class QLPopupMenu;
 struct Menubar::Pimpl {
 public:
        Pimpl(LyXView *, MenuBackend const &);
+
        /// opens a top-level submenu given its name
        void openByName(string const &);
 
@@ -39,7 +38,7 @@ public:
        void update() {};
 
        /// return the owning view
-       QtView * view() { return owner_; } 
+       QtView * view() { return owner_; }
 
        /// return the menu controller
        MenuBackend const & backend() { return menubackend_; }
@@ -52,8 +51,8 @@ private:
 
        typedef std::map<string, QLPopupMenu *> NameMap;
 
-       /// name to menu for openByName 
+       /// name to menu for openByName
        NameMap name_map_;
 };
+
 #endif // MENUBAR_PIMPL_H
index 250283198c53b00c137b207412392081256bd0f9..b342235839851e72b890a4bcd07c5c6ee0ac1fc1 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 00c360627dcc78b36116d7c1243385ce10af96c2..3ae8d76b63f7711b6d4cb65f9be98443175ce683 100644 (file)
@@ -1,19 +1,23 @@
 // -*- 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;
 
index c6cb3e418ec2c060541482bae16ecebacc888eff..e1b843c6ac57303bb9af4752aa2a3b7074b546aa 100644 (file)
@@ -1,11 +1,19 @@
 /**
  * \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)
index cf8c485cf5061020d3cedcf3ea2ddc3ad2372737..d14c568594dd44bf850af178a50a3e3a5390460c 100644 (file)
@@ -1,13 +1,21 @@
+// -*- 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
index c96dbfcc6295459a0db1b2de53d134df5cfe0412..1b6c65caf3edfb3ed900ac1fc81bad48ad69220b 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 0797c31581b2d010ccf2ca5a3387a490bdab5800..e1310d6bcb2f69ada3b75b2058bf1ea192fae44f 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index ff05e6f33d28331a3abf25f9d76ae154dbe94fce..6029549722d76322fdc8229004b08ad9a1645967 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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>
index e3c10fca77484a8277bd0361f2f7bfae3796fdf6..f64b3bda3f7aad25995ed69be4ec173e47ab3a73 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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;
index 16f20bee0cb66c7c4c71e33cd75bfa29df0abcbf..d425ca1c89d217e7afdeb2558632ee63a6d6faac 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 8528a260df8fa92fbfe4c5c7a3b5d5af1f340409..bea81b16455607ecf1f8809aeef483db2bd44b4a 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index 966c143e2f1d854a28dfb0b1feb55aa77f319834..460e319f135a52392b95bd20cfe551a237416031 100644 (file)
@@ -1,13 +1,20 @@
 /**
  * \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"
@@ -24,7 +31,7 @@
 
 #include "QBibtexDialog.h"
 #include "QBibtex.h"
+
 QBibtexDialog::QBibtexDialog(QBibtex * form)
        : QBibtexDialogBase(0, 0, false, 0),
        form_(form)
@@ -67,7 +74,7 @@ void QBibtexDialog::addPressed()
                for(unsigned int i = 0; i!=databaseLB->count(); i++) {
                        if (databaseLB->text(i).latin1()==f)
                                present = true;
-                       
+
                }
                if (!present) {
                        databaseLB->insertItem(f.c_str());
index 9ab1693720e051b949b32545d692306ef53e3354..1363871ac5eddfeced4c744a0544541f224c1ee9 100644 (file)
@@ -1,22 +1,28 @@
+// -*- 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);
@@ -29,7 +35,6 @@ protected slots:
        virtual void styleChanged(const QString &);
        virtual void databaseChanged();
 
-
 protected:
        virtual void closeEvent(QCloseEvent * e);
 
index ecc9e8eed67968d9455db80a050ce43509b0e9d2..aa3ac5ef3a44405b24429d071f531eadb2fa0fa9 100644 (file)
@@ -1,27 +1,34 @@
 /**
  * \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;
 
index 2c059e20ca52b5ea4e84691b964f5cff6cda2a6e..e760d99bbecc62826fe7a4f8541c0d057a7e226f 100644 (file)
@@ -1,24 +1,29 @@
 // -*- 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;
index 4a620974659950b78e26374f318c163d4c1074c7..8afcf1ae7e0a9efb0d197dbe2d6cea8e29b42027 100644 (file)
@@ -1,11 +1,19 @@
 /**
  * \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>
index 6c0600c1bb6223288ba53663c53d484959398d48..0827c66a581dadec92e0dafd69dbaf21c1f0e2e8 100644 (file)
@@ -1,16 +1,21 @@
+// -*- 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"
index d0e079eefc19a46e5def79f416030906eb5c6527..e8b9d2048a5d33db67f8d4ddba4a4387ff04a4c6 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 0224fec75808fb9ec2dafb0695dce58012b82280..88af469afcaa75f87f9a5f51a4ed3e63b2e32e81 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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;
 
index e56bebf8362fbab406f86787e7244a9b0cc55a95..74d45f960c56523383f06794369793918f1921b0 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
@@ -23,7 +29,9 @@
 #include <qpushbutton.h>
 
 #include "QCitationDialog.h"
+#include "QCitation.h"
+#include "support/lstrings.h"
+
 using std::vector;
 using std::find;
 using std::max;
@@ -242,6 +250,12 @@ void QCitationDialog::slotNextClicked()
 }
 
 
+void QCitationDialog::changed_adaptor()
+{
+       form_->changed();
+}
+
+
 void QCitationDialog::doFind(biblio::Direction dir)
 {
        biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
@@ -281,7 +295,7 @@ void QCitationDialog::doFind(biblio::Direction dir)
                if (cit == form_->bibkeys.end())
                        return;
        }
-       
+
        int const found = int(cit - form_->bibkeys.begin());
        if (found == sel) {
                return;
index bd2ab44685f3189c19e9dd77a83073fca29c673a..c1581ed4cb7a388845b30ee75c83a18961a8a116 100644 (file)
@@ -1,21 +1,26 @@
+// -*- 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
 
@@ -33,10 +38,7 @@ protected slots:
        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);
index 9d77b01df3b3323c82df45193fff9515bd01fd2a..65bee21cf8a4bcb1e705f4824dd1774883ec4f93 100644 (file)
@@ -1,31 +1,39 @@
 /**
  * \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()
@@ -33,7 +41,7 @@ public:
                WType_Modal | WType_Popup | WDestructiveClose) {
                setHScrollBarMode(AlwaysOff);
        }
+
 protected:
        void mouseReleaseEvent(QMouseEvent * e) {
                if (e->x() < 0 || e->y() < 0
@@ -43,7 +51,7 @@ protected:
                        emit selected(currentText());
                }
        }
+
        void keyPressEvent(QKeyEvent * e) {
                if (e->key() == Key_Escape) {
                        hide();
@@ -54,27 +62,27 @@ protected:
 };
 
 }
+
 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()));
@@ -89,14 +97,14 @@ void QCommandBuffer::focus_command()
        edit_->setFocus();
 }
 
+
 void QCommandBuffer::cancel()
 {
        view_->centralWidget()->setFocus();
        edit_->setText("");
 }
 
+
 void QCommandBuffer::dispatch()
 {
        controller_.dispatch(edit_->text().latin1());
@@ -110,7 +118,7 @@ void QCommandBuffer::complete()
        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;
@@ -121,32 +129,32 @@ void QCommandBuffer::complete()
        //      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();
 }
@@ -159,12 +167,12 @@ void QCommandBuffer::complete_selected(const QString & str)
        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 {
@@ -177,7 +185,7 @@ void QCommandBuffer::down()
 {
        string const input = edit_->text().latin1();
        string const h(controller_.historyDown());
+
        if (h.empty()) {
        //      show_info_suffix(_("[End of history]"), input);
        } else {
@@ -186,15 +194,15 @@ void QCommandBuffer::down()
 }
 
 
-#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()
 {
index 194d8869a59ffdd2485f77986aa6a9463b0cf484..c59c0dfcd543ae9e0d30b681da21a5b4be67f4f3 100644 (file)
@@ -1,25 +1,28 @@
+// -*- 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:
@@ -28,7 +31,7 @@ public:
 
        /// focus the edit widget
        void focus_command();
+
 public slots:
        /// cancel command compose
        void cancel();
@@ -42,7 +45,7 @@ public slots:
        void up();
        /// down
        void down();
+
 private:
        /// owning view
        QtView * view_;
@@ -52,7 +55,6 @@ private:
 
        /// command widget
        QCommandEdit * edit_;
-
 };
 
 #endif // QCOMMANDBUFFER_H
index bdedfd34c3f884c8372ffae5df982e8f904a812c..ffa846ba17503485340306599dbb687c9588ea5f 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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)
 { 
index 6ec68ed3ff63006d78581e98bfbde2b0e2d89f5f..e2355b11044add52b77ac6b3cc18a4cc662a1b7e 100644 (file)
@@ -1,16 +1,23 @@
+// -*- 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:
@@ -20,16 +27,16 @@ public:
 signals:
        /// cancel
        void escapePressed();
+
        /// up history
        void upPressed();
+
        /// down history
        void downPressed();
+
        /// complete
        void rightPressed();
+
 protected:
        virtual void keyPressEvent(QKeyEvent * e);
 };
index 1767f6a191a3fe2b05102a731039a1deeee28bed..6eb624e2027cf663a0cbcf89b68532ef1328051b 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 1256762deaff39a2d4895de695a5a5aa602585c1..d8a7e6c4a39bcc01d565f4a2b71e8fcd7756168d 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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;
@@ -39,7 +37,7 @@ struct double_click {
 
        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) {}
@@ -50,40 +48,40 @@ struct double_click {
  */
 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_;
 
index 1536569165f30e217950e0652f8ef1133566094b..4be8063d0c0f666df2e59264b2942fa68ddd6169 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 649a048f4119d75503fe646895573ee08512ba71..7c265259c2b42a1193a7b4c9fdd57dc2f9ddacef 100644 (file)
@@ -1,19 +1,23 @@
+// -*- 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;
@@ -37,12 +41,12 @@ protected:
 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_;
 };
index dded451619c4f12cedc82bd803181ce059de1a9c..9e762d83fff73720b95555d844bace47cb52001d 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 456a62e5cae8e57a06337bd80a06ede0f4d3c11e..e72d113ba185e20f1506852b2f3b65bc47b83861 100644 (file)
@@ -1,28 +1,28 @@
 // -*- 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;
index 4304f1f5efb5b3fa84e83d6f5b1e778b38b7e6cf..364ca166ccf8f2c76262518599df3babc8230e59 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index da61d0f7f3fd53521583237be207d3f8887c7932..0c0176803d0cd90fc0237c42916aec789d4cda17 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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;
index f034bcbe778454d24b59938e26e2c582fbbd3a84..b26e7e1a7f7f02573492d22c9e946e4eb6453619 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
@@ -17,7 +23,7 @@
 #include "QERTDialog.h"
 #include "QERT.h"
 #include "Qt2BC.h"
+
 typedef Qt2CB<ControlERT, Qt2DB<QERTDialog> > base_class;
 
 QERT::QERT()
index fa0bc3f6f44cfb5d5d5b2c9e04ee31fa96855ef1..f9d95e4b0fcf85617e9e729bf662a2d8c8926fa5 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index f2c21410c7532465621bf311bec4e1c8e2a9a0a9..809ef57d1cf77a871b5c8ddc0f5658e5f019953c 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
@@ -29,3 +35,9 @@ void QERTDialog::closeEvent(QCloseEvent * e)
        form_->slotWMHide();
        e->accept();
 }
+
+
+void QERTDialog::change_adaptor()
+{
+       form_->changed();
+}
index 326dca2430ef4a2afabd7fae39d638d724e1c15a..70078da3a1610c0debe49adc2e9e33e167f6d1e2 100644 (file)
@@ -1,19 +1,25 @@
+// -*- 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
 
@@ -21,9 +27,7 @@ public:
        QERTDialog(QERT * form);
 
 protected slots:
-       void change_adaptor() {
-               form_->changed();
-       }
+       virtual void change_adaptor();
 
 protected:
        virtual void closeEvent(QCloseEvent * e);
index d2cd908c40f5bbefe44261ad30bd657e9734219d..5ada44dee9d2d3d0fee0b75a42c56b71cbc5e352 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
index 1737a700ba530af0a395597b486d0971b8dacc70..9187a7274328cf14ab484a7688ee1c5ee1663cbc 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index 2b05b5207b8b8602931a0d7a130246805c530022..2fa04f64577c959ebec3375416ce213ab40f5448 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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>
index c93fb10b9feac321eb6df3e0e26c1076959d546a..012ee442d66d8bdb1cfc34542f0e05e986f1a0f8 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index fe8c9576990529ee45d83539cbad4a5710ce1c87..5fa7eadfa3cd2e1c9d9b20bba6a34931bc0882e3 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index 1f900eb07c3cdf8f961826a7bc970025be73d48d..7810952c4dace20b8c3bb63bcae5c95e2f2d8b5c 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index 35f08ed57e91163ce240a70b1d4131c1c3653dc4..fab00475ccbeb807b676dd9b14fd1836f6ba4054 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
  
index b1864db1d5a1707c21e0e80dfa0f268792eb6c5f..b698d26d91ebb2e3e53a96bcddf48863f5c30dff 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
@@ -22,7 +27,7 @@ public:
        QExternalDialog(QExternal * form);
 
        virtual void show();
+
 protected slots:
        virtual void change_adaptor();
        virtual void editClicked();
index 6b26ac94bb307628cc2a402860dd45092fa17e10..df8ba889f4db8e33f87e163d3c3ccb6aa857bb97 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index fbea7471434889130d9117215a627e5c8415a0c8..3bb8fc7ce658ddef6f59ad473fe35991e1f076be 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index ce1220f3f84823f12d33f6ba25ea6a509cba3dd1..c1af77b02136f076c31c19975a7a83a4f4dc5e92 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 7b1ad6213412a5d05123070829ed689b0b7a91c9..86f698f7672940960c3e9ce18d50730501f5c904 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
@@ -26,7 +31,7 @@ protected slots:
        virtual void tbhpClicked();
        virtual void heredefinitelyClicked();
        virtual void spanClicked();
+
 protected:
        virtual void closeEvent(QCloseEvent * e);
 
index 395bb3bd22751330d9c6900f4de69dc3544a3602..8a615bbeb7a96c9ce54674e225de48e4df12233e 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 92eee3e586a24a9945f42dc7cb28b4d35189c101..0e3a4a15da43b393d37f376c44b0ea7511d19bf6 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 190442cd63cf07b32efe60ca4238634a5573dee1..695aeb0066883079bc2616867d9b083a84ffc3d6 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index b8e949d99849ab23e1f91d09ff9a97bb2cd08f80..520a5d0e833666c1782f4aab549aa577e8f6b064 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
@@ -22,7 +27,7 @@ public:
        QGraphicsDialog(QGraphics * form);
 
        virtual void show();
+
 protected slots:
        virtual void change_adaptor();
        virtual void browse_clicked();
index e0bcbccf01e397ec2c16520b709b6b3cd372b8d9..a71ffdc6dff830f1ae7974ae23a19c911c19ad5e 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index b1cb7941a33b00362fb36f30bb980ace2eb6b04e..22458cc3d8bad44659489442af2f67a0b2aa37a1 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 05e59ba9e434ced11791ae9ff226245aff2a75cb..88ac17522578286050a7548c1318f645ed0d70fb 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index 02a8e5deec7a17939e5d1639e55908a0b062f6d9..a704ab09c65cbdd505a500bd04aa3804ff507870 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
@@ -24,7 +29,7 @@ public:
        void updateLists();
 
        virtual void show();
+
 protected slots:
        virtual void change_adaptor();
        virtual void loadClicked();
index f1c39be96bb23c3271b50210230930dbb95a3a5d..db885c9794a3c0f721c845e94695ccb96a3f4b44 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
index ecd3885e99898257d4b1c9536d66be8381c6e515..e785bfd46189f80b6afa8b4e90b81380aabeef47 100644 (file)
@@ -1,16 +1,22 @@
 // -*- 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;
index fc16285dfdae9656d8067d69744a33037c443502..06ae362e2e63091e804bfb1c1505bd5a53c64919 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index f360262bbf92b6a6815f4b4641e1e3aaec9489b2..e78d0b61eaf35e608ec860e7529247b2a0d394c3 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
@@ -22,7 +27,7 @@ public:
        QIndexDialog(QIndex * form);
 
        virtual void show();
+
 protected slots:
        virtual void change_adaptor();
 
index 9c5a0442f710280c69628ea273f07ca5c0e463a7..15577b4305e580b49e3a37c11b6affef1e2481b4 100644 (file)
@@ -1,10 +1,12 @@
-/*
+/**
  * \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>
index ed324c44edda9e28cdb06f167d25915606cc09fa..16aad2453dd6c1b5eabcfe72b5bf28fd8e11380e 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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
@@ -16,9 +18,9 @@
 #endif
 
 #include "graphics/GraphicsImage.h"
+
 #include <qpixmap.h>
+
 namespace grfx {
 
 class QLImage : public Image
@@ -43,10 +45,10 @@ public:
        /// 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.
index 6df50cdce9ea7794568ede61e96e356829ee5e0d..5056fedd4df0c111d61fc76a2f75f62e0155912e 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 5b27f38ca7279bf1c925f9aa0fff13743400e0f4..2410f4d60ad48eebd63a8c8ae090e8e4b5eaa752 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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;
@@ -31,13 +32,13 @@ 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
@@ -45,7 +46,7 @@ public:
 
        /// 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,
@@ -58,8 +59,8 @@ public:
         * @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,
@@ -72,37 +73,37 @@ public:
                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);
@@ -125,16 +126,16 @@ private:
                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_;
 };
index 02b94bfa11d7061a5c4515c3975843e8ac661053..4f99d1d44d003407f2ad536c21c74c90f6ef9af1 100644 (file)
@@ -1,11 +1,19 @@
 /**
  * \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"
index c8fd3e2e7a50444092ab707bfbfd40bf6911b2d3..3a0726f95731dc20128d5d4cd1d40fee649b9267 100644 (file)
@@ -1,20 +1,27 @@
+// -*- 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;
@@ -24,14 +31,14 @@ class QLPopupMenu;
 /// 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:
@@ -41,7 +48,7 @@ public slots:
 private:
        /// return true if the given submenu is disabled
        bool disabled(Menu * menu);
+
        /// our owning menubar
        Menubar::Pimpl * owner_;
 
index 6d6a53b4612290a7854e444a94b2787e7b21825a..535ce1bf3d3c9ff363ed0461a2feb71aeb3c8ebd 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 1f971c434451dd084dded408d087323800b93c62..20bc00f4339a948d97394fba293b72b3091beebf 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 43cf6b3f3f13e7a3dbdac56e5aa651e1ad586d22..8f72a76ee25fab8b4331f3007cdeffc489b612f7 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index b670c5ae509ffdc1f8295d8716b7e845b9acbbba..e5483990c62a02ba05ca744a1e488681667a6f5c 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index 82f0fb070ec1a819bb6e9d013b417e5c8896d720..042da02ce99c32d8ba1c7453835ee6b35edb2305 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index da3f6d058377e1f554503afa63798298b2288d3e..76355de577761da13766da1461f689c2f4c9bbcd 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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
@@ -21,7 +23,7 @@
 #include <qstring.h>
 
 class QKeyEvent;
+
 /**
  * Qt-specific key press.
  *
@@ -44,7 +46,7 @@ public:
 
        /// Is this a modifier key only?
        virtual bool isModifier() const;
-       
+
        /// return the LyX symbolic name
        virtual string getSymbolName() const;
 
@@ -60,7 +62,7 @@ public:
 private:
        /// the Qt sym value
        int key_;
-       /// the event string value 
+       /// the event string value
        QString text_;
 };
 
index 89e85de6d49fc73cba2a061cae65b566449b9974..b0b2346848dce6c6e5f1f6a4c963648140550f7c 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 9a0c43f66a233fabbd23e767c8002f8ec4b668bc..0856de37650c3fd89bfbbb959133495e84d52ed3 100644 (file)
@@ -1,23 +1,23 @@
 // -*- 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
@@ -29,39 +29,39 @@ public:
 
        /// 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
index 699939b3772e4037224e5a0110549cb9f63fd8d8..26f4e75a47d9f632a27e6d0177ca82322370ea51 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index e8b988dbdf3d955110eec0ddfa6a7f0ab6ca864e..72e1753ec0dddb808dcaadd5a547a740ddd7167a 100644 (file)
@@ -1,19 +1,23 @@
+// -*- 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;
@@ -42,7 +46,7 @@ public slots:
 
        /// about to show a symbol panel
        void showingPanel(int);
+
 protected:
        //needed ? virtual void closeEvent(QCloseEvent * e);
 
@@ -52,7 +56,7 @@ private:
 
        /// add a symbol panel
        void addPanel(int num);
+
        /// owning form
        QMath * form_;
 };
index dfa93c779324fbb663e771da413002f6937938d8..70631991b77915b2d5084ddc77ad988a142831ce 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index e36e2d594d773cc1504f4971fabff319742ffe37..6684d7c4139b9e35f5e388985be6717caf3e2466 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 6e82a80facb0b276de84ae8dbfbb43543bf0e24b..626fa0e39b65419f5fbe79dd51ab3e9a0ead9779 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index 3e2dc0775106429da7029c01e7a561d262e54d1c..abe7111b91815c7e13ffffc670e1b39a838fe39b 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index d859e21bcfd6747fc14f3579f9bc98e697d97c01..49850a40b0815f4987536890c0451702b39ded65 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 2c5d5cd996f4f9c68dc33c70a4ac686949cc30d7..30e789b60d790360752764a16c8812b1f2a17313 100644 (file)
@@ -1,18 +1,24 @@
 // -*- 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;
@@ -33,7 +39,7 @@ private:
        virtual void update_contents();
        /// build the dialog
        virtual void build_dialog();
-       
+
        std::vector<string> units_;
 };
 
index 7e59952b5216ec26a2070b66de3a0b00c882d883..3778ad23b420cd7fc94404e4c040f7ade675b06d 100644 (file)
@@ -1,13 +1,23 @@
 /**
  * \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>
@@ -28,10 +38,10 @@ QParagraphDialog::QParagraphDialog(QParagraph * form)
                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));
 }
@@ -53,7 +63,7 @@ void QParagraphDialog::enableAbove(int)
        bool const enable = spacingAbove->currentItem()==6;
        valueAbove->setEnabled(enable);
        unitAbove->setEnabled(enable);
-       
+
 }
 
 void QParagraphDialog::enableBelow(int)
index e972b8d269fb69a581adcf50bcc41757f9bc7fad..cb8924d98845664670b920e5db2443c8a0618752 100644 (file)
@@ -1,22 +1,25 @@
 // -*- 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
 {
@@ -28,7 +31,7 @@ protected:
        void closeEvent (QCloseEvent * e);
 private:
        QParagraph * form_;
-       
+
 protected slots:
        void change_adaptor();
        void enableAbove(int);
index e9d15963a68f9ac463d67acea4d58c579ea7075a..66af4aff4241da1d94089c66916d919a099b26a9 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index b0f57be281be6f3e4c3ac28a0880425e99845211..30257b757dac8ccc699ed61b30a654ced6e70d7a 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index d2fb4965aa6a84a7c042d7ac2dbe297f35eae8a7..e1eda7b5965187be3f2a3637d4074da28f635821 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index a44a6dbb2a8ab8135d34bf9c6d9ad2cf85408e79..0e6e078dfc3db1da74a417b6ce52b92b31d3950c 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index 2bb4f578f6620ca28e85110fde6654261a7b187f..4a1b030a56f8bc9265d23c6b48c5b7d5dbce14bd 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
@@ -14,6 +16,7 @@
 #endif
 
 #include "LyXView.h"
+#include "PrinterParams.h"
 #include "ControlPrint.h"
 #include "support/lstrings.h"
 #include "gettext.h"
index be9de9ecf0b67eef9a3d2e547b6d287f4fef1fbd..cb8e5149cfd2a863f0d67211677d754cfe4a33cd 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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
@@ -19,7 +21,6 @@
 
 class ControlPrint;
 class QPrintDialog;
-class Dialogs;
 
 ///
 class QPrint
index ecce8ac3fb67a6a5da122aca9fcef6c0ec6f24fc..ff47599ad6ac90292f1e7b1256c46005e87c31da 100644 (file)
@@ -1,14 +1,21 @@
 /**
  * \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"
@@ -34,7 +41,7 @@ QPrintDialog::QPrintDialog(QPrint * f)
                form_, SLOT(slotClose()));
 }
 
+
 void QPrintDialog::change_adaptor()
 {
        form_->changed();
index 46dd720a06806d9575251302c2b33d4ebfacef08..595badac739e3bcf68bba19ea7497971bcb25301 100644 (file)
@@ -1,20 +1,23 @@
+// -*- 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;
 
@@ -34,7 +37,6 @@ protected slots:
 
 private:
        QPrint * form_;
-
 };
 
 #endif // QPRINTDIALOG_H
index e287509ccb4fcdd61de10e10d0483468d31e2b3b..52028535eb77c766f5d5e17ed5cb64a7d41c4985 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index ff40a27664176f859d2c8db6d15957025fb25eb0..093feab24b0355319e7c58dd5228ff08f68c9e5a 100644 (file)
@@ -1,19 +1,24 @@
+// -*- 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;
index c8f69a1f9affa98715da9974232a82cae07158f6..c3ecea3b4ef5ae597a3c11054c4b735cd7776420 100644 (file)
@@ -1,14 +1,20 @@
 /**
  * \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"
 
index 314879f1a630fc23e3ccdf7a2d28f9ac4299a533..0a1571c4f150977f30d08b2ecd69ac468ce4c438 100644 (file)
@@ -1,16 +1,21 @@
+// -*- 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"
 
index 75d96855bfec0a17dcf8403db8ff8dff5672a80e..34a0d4ed963eef11b545e230c89b6da99edc18b5 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 0ad702c8d4868fd5a82d8cae0315d54811cb9406..5674d2258d68e683882b67b798e6cf5e89208dc7 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index ff97c056c07cd917f1d1d48538ab1b09152f0532..5586610bd6db6acae776a9f158a145536f8345be 100644 (file)
@@ -1,15 +1,22 @@
 /**
  * \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>
index 691a41ae71ed49aa3917cf1b17c2092c80ac7b1d..1bbe6ae19b79649b023a9e1d2e128e31982f309e 100644 (file)
@@ -1,19 +1,25 @@
+// -*- 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;
 
@@ -39,7 +45,6 @@ private:
        void remember(string const & find, QComboBox & combo);
 
        QSearch * form_;
-
 };
 
 #endif // QSEARCHDIALOG_H
index 1798cbfb233960c9c4b5981aa1c8a4228226453c..e099ddc5743251c2a9bd103dd3a32a7c9bb5aeac 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
index c35676bf963750b859470a25188faa4c7a445714..c0418bf2f29a5cc10a0371056dff6854e35751d8 100644 (file)
@@ -1,15 +1,21 @@
 // -*- 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;
index 7b4157525717644b13ce3ebbc766fbc8b6fa5a61..1afcf2454439d73c2522090429a56d6d1a348ec0 100644 (file)
@@ -1,11 +1,19 @@
 /**
  * \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"
 
index 1dd3311c4448a9ad3490c65f9be5724ef4c7a91e..df603ae215d2eea4d6c66482ae642b6d3f9019d5 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index 40cd60ddca508beb789ab9f33834b4c92abe7343..29d19cd0d8528a5fec7f6859d53a5e7be4bb9b9a 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index edbfec7394c61abda94f98b3210ad3fe7738133c..ba3466d888306dbadf91c598e6359182504e7991 100644 (file)
@@ -1,18 +1,23 @@
 // -*- 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;
index 2b576402620295fd0680c537fefe07244c21722f..0e134b7d94f63b5f76bee2eddd1bc18887554f8a 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
@@ -26,7 +32,43 @@ QSpellcheckerDialog::QSpellcheckerDialog(QSpellchecker * form)
 }
 
 
-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);
@@ -37,7 +79,7 @@ void QSpellcheckerDialog:: suggestionChanged(const QString & str)
 }
 
 
-void QSpellcheckerDialog:: replaceChanged(const QString & str)
+void QSpellcheckerDialog::replaceChanged(const QString & str)
 {
        if (suggestionsLB->currentText() == str)
                return;
index f53e42823e31e0ae67aa15d31b3a7c99dd7e81a0..08ffeae40604ddd99a6ae3586aa89f1c3aaee059 100644 (file)
@@ -1,19 +1,25 @@
+// -*- 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
 
@@ -21,25 +27,12 @@ public:
        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 &);
 
index 6a72656e3f2cfccd0cbf4eade5652b0defdd330e..5de46e3398294b982efa0616dbe92fde18020f60 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 10a68c22bc683fde3a07111937fc68a71772c13f..e4dbfa1ec5a3e7d66f4fcdeea82e97b81baca211 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 1b2b818bd4c3d42a38040a20b8da3f099df78cc5..4e9f0e27cbfce80ce7194409fcf080d9ddf76662 100644 (file)
@@ -1,13 +1,20 @@
 /**
  * \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"
index eac2ee98428970359085a496c78e3ec52eda4ac9..0cf12397e634cc303ea180751f27579420aad29a 100644 (file)
@@ -1,15 +1,22 @@
+// -*- 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;
index 5c2e006f733a71f3e544a41f3b133ad4edf1a2f1..776a4be3ebe3c817ae3f265a4aef4a676e305788 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 26e5cc8ecb534feaf9de0aa44093f730cba24239..cadb749a7ba9e27df6d860a90101773b83286436 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index c8264eb7a4650015d794c031b162780117e1dab9..bf6261c97b29b778a9c6f577f08e7703d586c87b 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index 8d17518f0ea34064e1e6552638435b4b9606f533..cd83bb7d1c3bc9f0e74f9f23b2f0bedecd0bcb3f 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index feaa237db4762b187c28aa9ce1b66717efc8d709..4dd9a6ddfbeecf447d7e8407c3c9575b4a50bb60 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index f47e5fb775f7ee8443b8ff9a4a644ae95a7dd3c8..6a29a8b6d00ee1d59ac070d57919e92fe8d3bff0 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 2063d0a927e8b856010fa1ba39bdfb8fc0a71d18..b90e9c0b8891fdbf076f4e02227927e57003856f 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index d2d89331eb821663facf510ea1d7115405087a0b..1bc413de5dea14bd1bba837c20bfb3da5ca3253f 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index 7cb9c9e23d57173c1e8d1506f9136427f86e1ae9..bba3d3f1b690bc479704e36ebdd138e0ed0d2d66 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
@@ -19,6 +21,7 @@
 #include "support/lstrings.h"
 #include "debug.h"
 
+#include "ControlToc.h"
 #include "QToc.h"
 #include "QTocDialog.h"
 #include "Qt2BC.h"
index 520a0759d0b1f204c7df5251fffea84b59e0d6f1..15e707cdfc944f30492e06021489835c7f5593c0 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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;
index 8b03ecea53b30c44fa4d398c750676eaef1b0565..9db0e95276a5c0f52bae05362a786df6df80677d 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
index 72187d203685289a13242200c3eae30857a9762e..8f5626203308909acb0957363bc0046a98c08d40 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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;
index cc5d1b4573d1b5066fbb3e3ace50ded784fce6ff..ad6a1c275bad63ba720e28e892da1478513cad15 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 260ffd5de8fbfd7efc8570d4692286eac791167b..eb4bb341a54ee52f55c836969b733b9ba6d123d5 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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;
index 178c7e2fff0f571bbe69ab95b50a91a8f7b74029..0e9334f6485b85deb7b5168e972552dadf1ed4f0 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
 
index 518dea9cc7d41657088b11f78b0454b5d6db5061..f97c5e481e49334407693ef28524e4fea4cf5393 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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;
@@ -21,7 +28,7 @@ public:
        ~QURLDialog();
 
        virtual void show();
+
 public slots:
        void changed_adaptor();
 
index da9273e43e88833c17d346aa690df20721153b07..a7cad7ca10f1a03ca10999ec45312799c553b8c5 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index fe59245fc10ae17cb6553cbec02aa88eae6646ef..070a1063020fd91ffb0573aca2c19e48ff1ce77f 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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
index 3a2c206536a37e583612d44928f3119562e788b2..7f7bd8ac3790e701013c983cd4ee40908a2678a4 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index 408e18a678457b9a60e34134be31c90c795e5a48..405d1ae3a5dbb6cfa8f0f9f735b8875835ab8f91 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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"
 
index cb1aef11ec6fcb77471980595d0bf6aed48a626b..6f23701f10ed8bd1da85ca52df3a44cdc46727d2 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index f991d358dc6fb16ffa896c4a81b1681d1eddbc7a..900b5f7c6b6249d016cfa4d916a8800c753e0711 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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)
@@ -34,9 +34,9 @@
  * 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);
@@ -48,9 +48,9 @@ public:
        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;
        ///
@@ -69,9 +69,9 @@ private:
        QScrollBar * scrollbar_;
        /// content
        QContentPane * content_;
+
        /// our painter
        QLPainter painter_;
 };
+
 #endif // QWORKAREA_H
index 4ef0bc8153ad5aab4009852c9e6448b2be9d09de..83adf1e452730941531677b5e9998598620b969c 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 91709c7b853fe18b473e568ecf4896b464865941..9051fcbddd3def239cd84b1ff78b547a120a6b0d 100644 (file)
@@ -1,12 +1,14 @@
 // -*- 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
index 7f2a95f250f5de92f5ba8989ee78d618b1017ad6..424aa764ae81bb0a0359e839d74d9f0125c74fdf 100644 (file)
@@ -1,13 +1,11 @@
-/* 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>
index 3bea0caaefa954a6c4fc882ef4cc4c878bf56719..e771848b7d6f88312f2bbad8c86296c7e1f0d753 100644 (file)
@@ -1,27 +1,22 @@
 // -*- 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>
index 868ac1a42d90443a2b9a702cc9e66d028c6f2cdd..ae3d4efea92785b28df99c5545dd2b49016ad980 100644 (file)
@@ -1,8 +1,12 @@
 // -*- 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
index e825c76b9b83d8210b63ef08d473f2fca1eca7de..90b4e0f70472236fde07ced027e9448084f590e7 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 8b07c4cb3fd0658d89c544790ff44a7bff013254..69909fd61719242127e22c1c3e27c7d6edae4654 100644 (file)
@@ -1,11 +1,13 @@
 // -*- 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
  *
@@ -36,7 +36,7 @@ public:
        QtView(unsigned int w, unsigned int h);
 
        ~QtView();
+
        /**
         * show - display the top-level window
         * @param x x position
@@ -44,34 +44,34 @@ public:
         * @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
@@ -83,9 +83,9 @@ private:
 
        /// idle timer
        QTimer idle_timer_;
+
        /// command buffer
        QCommandBuffer * commandbuffer_;
 };
+
 #endif // QTVIEW_H
index 36843602e5a0bd72c71171b53594eea39d3e8138..f7a226b753f204a2a00497b4b3676ea4a958759b 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 7cf2477419588dfcdbc79d9a6aa7845fd0c29089..ad660ef2c9d19942fcd6b190e93ada15f00f0d87 100644 (file)
@@ -1,24 +1,24 @@
 // -*- 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
 
@@ -42,6 +42,7 @@ public:
 protected:
        /// slot
        virtual void timerEvent(QTimerEvent *);
+
 private:
        /// the owning timer
        Timeout * owner_;
index 94040ba69b1d3573623a27a863157b04b14f1bc2..6e5fe7c9555177ee05c72548dc98278abc3a1123 100644 (file)
@@ -1,9 +1,12 @@
 /**
  * \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()) {
@@ -52,14 +55,14 @@ QPixmap getIconPixmap(int action)
                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());
        }
@@ -67,7 +70,7 @@ QPixmap getIconPixmap(int action)
        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());
@@ -75,16 +78,16 @@ QPixmap getIconPixmap(int action)
 
 } // 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));
@@ -100,14 +103,14 @@ void Toolbar::Pimpl::update()
 {
        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());
@@ -129,15 +132,15 @@ void Toolbar::Pimpl::button_selected(QToolButton * button)
 
        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) {
@@ -149,17 +152,17 @@ void Toolbar::Pimpl::changed_layout(string const & sel)
        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;
@@ -177,17 +180,17 @@ void Toolbar::Pimpl::setLayout(string const & layout)
 
 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) {
@@ -223,7 +226,7 @@ void Toolbar::Pimpl::add(int action)
        if (!toolbars_.size()) {
                toolbars_.push_back(new QToolBar(owner_));
        }
+
        switch (action) {
        case ToolbarDefaults::SEPARATOR:
                toolbars_.back()->addSeparator();
@@ -237,13 +240,13 @@ void Toolbar::Pimpl::add(int action)
                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());
index 6205ab6a67eaea472fe8170b9a05d043589f0cf5..59111055f64281aed5b0435532b47d4ced66425b 100644 (file)
@@ -1,45 +1,44 @@
 // -*- 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);
 
@@ -59,8 +58,8 @@ private:
        void changed_layout(string const & sel);
 
        void button_selected(QToolButton * button);
-       QtView * owner_; 
+
+       QtView * owner_;
 
        boost::scoped_ptr<ToolbarProxy> proxy_;
 
@@ -71,10 +70,10 @@ private:
        typedef std::map<QToolButton *, int> ButtonMap;
 
        ButtonMap map_;
+
 };
 
+
 // moc is mind-numbingly stupid
 class ToolbarProxy : public QObject {
        Q_OBJECT
@@ -82,9 +81,9 @@ class ToolbarProxy : public QObject {
 public:
        ToolbarProxy(Toolbar::Pimpl & owner)
                : owner_(owner) { };
+
 public slots:
+
        void layout_selected(const QString & str) {
                owner_.changed_layout(str.latin1());
        }
@@ -99,5 +98,5 @@ public slots:
 private:
        Toolbar::Pimpl & owner_;
 };
+
 #endif
index 5b4e9d6b86b412a03fff9bb0dd50af28a9332370..f6aa6fa575d1bdf57cd2a07db2860dc9bc3fcd44 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index c655dcf3430e2c990ee7a30b2ca558b5f95bd780..4c413129a9902e6c065ef74f596e4c4af8ec8c0f 100644 (file)
@@ -1,11 +1,19 @@
 /**
  * \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"
 
 /**
index cb4d9024e8be122835048f51dc74ce2d1a6a2d48..1f18fd09e10e07c1afbf97c257ba4ac42c72cc82 100644 (file)
@@ -1,14 +1,21 @@
+// -*- 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"
 
index 5136c2c33c834eea5cd00ec92e0e45fe50f9c18f..202ed6b686d1675b43e67829e4d32ca650c2c0eb 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \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"
index 5fa1b5ee7ed23ec48cc71453cfffe8711ee2a8ca..d5cf47d2bc2604c4c449d32925222a1fd77eef07 100644 (file)
@@ -1,22 +1,25 @@
+// -*- 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;
@@ -38,17 +41,17 @@ signals:
 
 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_;
 };
 
diff --git a/src/frontends/qt2/io_callback.C b/src/frontends/qt2/io_callback.C
new file mode 100644 (file)
index 0000000..8ac3fc2
--- /dev/null
@@ -0,0 +1,32 @@
+/**
+ * \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();
+}
index 101b6d7b19def836f3ceb90efe8939177880da71..5c3a81b26d632f4720c9b7983bbf24230a8585c2 100644 (file)
@@ -1,24 +1,28 @@
+// -*- 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
index fb4866af8f211edc501c9701b188f58bf89b57fa..9b3ca31849edc31f5142105b8e6b2c4b2a4cb6f5 100644 (file)
@@ -1,12 +1,19 @@
 /**
  * \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"
index d9b8ad32d77c36c9c832434c269d8cd436960408..d9e7220b7168e51d51800092960d6e5384599a38 100644 (file)
@@ -1,15 +1,20 @@
+// -*- 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>
 
index f6438ed86d47a43fb1186111125fa4526bdc30b5..f50d06d8bd98ec2bb81963f6748b233096415f6c 100644 (file)
@@ -1,14 +1,20 @@
 /**
  * \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"
@@ -56,8 +62,8 @@ extern BufferList bufferlist;
 namespace {
        /// good ol' "easy to use" Qt again
        float getDPI() { return 95; }
-};
+}
+
 // FIXME: wrong place !
 LyXServer * lyxserver;
 
@@ -154,12 +160,12 @@ bool lyx_gui::font_available(LyXFont const & font)
        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);
index b34843476d4507bcf74a8b23ba19fdebffddb1d6..f72ca550aa65579936d9c6beded8a76108fb1d5f 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 7222fbefac85909fc533a3f894a9c67bf8fa1c26..31f5030a23b1eb19144814e6e7a0c40cef4715f3 100644 (file)
@@ -1,29 +1,28 @@
 // -*- 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.
@@ -39,7 +38,7 @@ public:
 
        /// do we have anything matching?
        bool available(LyXFont const & f);
+
        /// get the QFont for this LyXFont
        QFont const & get(LyXFont const & f);
 
@@ -58,14 +57,14 @@ private:
                /// 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
index f115d424b331e9e4b823d6829107b98649e96409..ff28fd424f0423e6c09102898bf9d0366739fd5c 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \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>
index 49dc32a778295911ad8e8a50396d8b5614bbcc84..6ba705f0d2e95e713e93d87532e3c54d6069c9b3 100644 (file)
@@ -1,20 +1,24 @@
+// -*- 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.
  */
@@ -32,13 +36,13 @@ bool q_is_modifier(int qkey)
                        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.
@@ -296,7 +300,7 @@ int string_to_qkey(string const & str)
        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;
@@ -305,11 +309,11 @@ int string_to_qkey(string const & str)
        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
  *
index 78fe7d1143fa8abca33fdf1df593d1e7bf761496..5f28ad5b073fe68f692168485305b180c7da4d3d 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
index 6e3cc4845366ba35c3ca007e776f0bea009e2bd0..dc6562800ea6b1f68a792ab59c467c3c0453d6af 100644 (file)
@@ -1,10 +1,12 @@
 // -*- 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.
  */
@@ -34,10 +36,10 @@ public:
         * 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
@@ -50,24 +52,24 @@ public:
        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_;