]> git.lyx.org Git - lyx.git/commitdiff
clean up dos style line ending.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 17:25:02 +0000 (17:25 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 17:25:02 +0000 (17:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13442 a592a061-630c-0410-9148-cb99ea01b6c8

14 files changed:
src/frontends/qt4/QBranches.C
src/frontends/qt4/QBranches.h
src/frontends/qt4/QDocumentDialog.C
src/frontends/qt4/QLMenubar.C
src/frontends/qt4/QLPainter.C
src/frontends/qt4/QLPainter.h
src/frontends/qt4/QLPopupMenu.C
src/frontends/qt4/QLPopupMenu.h
src/frontends/qt4/QWorkArea.C
src/frontends/qt4/QWorkArea.h
src/frontends/qt4/lcolorcache.C
src/frontends/qt4/panelstack.C
src/frontends/qt4/qscreen.C
src/frontends/qt4/qscreen.h

index fda24cf64ff74d1859219772f49064f8b9d3842b..cfeac11bbf0947e08b62b9baa6ac0f6ca6d917cc 100644 (file)
@@ -80,7 +80,7 @@ void QBranches::update()
                // restore selected branch
                if (bname == sel_branch)
                        branchesLV->setSelected(newItem, true);
-       }\r
+       }
        emit changed();
 }
 
@@ -154,7 +154,7 @@ void QBranches::on_colorPB_clicked()
        if (selItem != 0)
                sel_branch = selItem->text(0);
        if (!sel_branch.isEmpty()) {
-               QColor initial("lightskyblue");\r
+               QColor initial("lightskyblue");
                string current_branch = fromqstr(sel_branch);
                Branch * branch =
                        branchlist_.find(current_branch);
index a9a3128d2bac4944479ff501f612a1303b3ea864..cfe070893ac41ad6d095fbf27d2f8f2654ca3a96 100644 (file)
@@ -39,9 +39,9 @@ public:
        
        void update(BufferParams const & params);
        void apply(BufferParams & params) const;
-\r
-signals:\r
-       void changed();\r
+
+signals:
+       void changed();
 
 protected:
        void toggleBranch(Q3ListViewItem * selItem);
index afe1fc622d1d380251fb576ebbd2b0a27cd95c38..770a5c8d7ec44e259c9c4e7f70e00427f5a7fc08 100644 (file)
@@ -354,7 +354,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
 
        
        branchesModule = new QBranches;
-       connect(branchesModule, SIGNAL(changed()), this, SLOT(change_adaptor()));\r
+       connect(branchesModule, SIGNAL(changed()), this, SLOT(change_adaptor()));
        
 
        preambleModule = new UiWidget<Ui::PreambleUi>;
index 5c4cac89152f698b6cd6726c311d2f121b4199a2..64e2f1f30eb7bbff8e4716176dabd429edd074ef 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "MenuBackend.h"
 
-#include "debug.h"\r
+#include "debug.h"
 
 #include <QMenuBar>
 #include <QCursor>
index 3c0b334e6af359c6892296b6fadc4fe82fd60746..8c19e0766c6d787693d8d51bbadceeb91d5598ce 100644 (file)
@@ -255,9 +255,9 @@ void QLPainter::drawPixmap(int x, int y, QPixmap const & pixmap)
        QPainter qp(qwa_->paintDevice());
        qp.drawPixmap(x, y, pixmap);
 }
-\r
-void QLPainter::drawImage(int x, int y, QImage const & image)\r
-{\r
-       QPainter qp(qwa_->paintDevice());\r
-       qp.drawImage(x, y, image);\r
-}\r
+
+void QLPainter::drawImage(int x, int y, QImage const & image)
+{
+       QPainter qp(qwa_->paintDevice());
+       qp.drawImage(x, y, image);
+}
index 6a9f7a0dc894c7cc85f09971839f341a0763c4a8..707fb77468770c047837a67cd4bbe5783eaa9916 100644 (file)
@@ -21,8 +21,8 @@ class LyXFont;
 class QPaintDevice;
 class QPainter;
 class QString;
-class QPixmap;\r
-class QImage;\r
+class QPixmap;
+class QImage;
 class QWorkArea;
 
 /**
@@ -34,16 +34,16 @@ public:
 
        ~QLPainter();
 
-       /// begin painting\r
-       /**\r
-       Not used in the the Qt4 frontend.\r
+       /// begin painting
+       /**
+       Not used in the the Qt4 frontend.
        */
        virtual void start() {}
 
        /// end painting
-       /**\r
-       Not used in the the Qt4 frontend.\r
-       */\r
+       /**
+       Not used in the the Qt4 frontend.
+       */
        virtual void end() {}
 
        /// return the width of the work area in pixels
@@ -129,9 +129,9 @@ public:
        /// draw a pixmap from the image cache
        virtual void drawPixmap(int x, int y, QPixmap const & pixmap);
 
-       /// draw a pixmap from the image cache\r
-       virtual void drawImage(int x, int y, QImage const & image);\r
-\r
+       /// draw a pixmap from the image cache
+       virtual void drawImage(int x, int y, QImage const & image);
+
 private:
        /// draw small caps text
        void smallCapsText(int x, int y,
index da42cbf5180edd1d4c817d5f98caadb4d6314ce4..dd0826a4bd94008ae3fb9be3fe84e431e930b0d9 100644 (file)
@@ -70,7 +70,7 @@ void QLPopupMenu::update()
        lyxerr[Debug::GUI] << "\tTriggered menu: " << name_ << endl;
 
        clear();
-\r
+
        if (name_.empty())
                return;
 
index cf8b2193448b1617634f95c20f763ca81a82d47e..faa64d171a3a5854d0dbd35bc42e60a688cf2fb7 100644 (file)
@@ -58,10 +58,10 @@ private:
 
        /// Top Level Menu
        Menu topLevelMenu_;
-\r
-       /// Mac specific menu hack\r
-       /// \todo Fix it\r
-       void specialMacXmenuHack();\r
+
+       /// Mac specific menu hack
+       /// \todo Fix it
+       void specialMacXmenuHack();
 };
 
 } // namespace frontend
index 998ca295b5e1289af36825b23f3abd4490690627..cd0934fb7128481ca0b9f8dd6bcebda0340cb6d7 100644 (file)
@@ -493,10 +493,10 @@ void QWorkArea::resizeEvent(QResizeEvent * resizeEvent)
        verticalScrollBar()->setPageStep(viewport()->height());
 
        screen_device_ = QPixmap(viewport()->width(), viewport()->height());
-       paint_device_ = QImage(viewport()->width(), viewport()->height(), QImage::Format_RGB32);\r
+       paint_device_ = QImage(viewport()->width(), viewport()->height(), QImage::Format_RGB32);
 
        this->workAreaResize();
-\r
+
        /*
        lyxerr[Debug::GUI] << BOOST_CURRENT_FUNCTION
                << "\n QWidget width\t" << this->QWidget::width()
@@ -505,21 +505,21 @@ void QWorkArea::resizeEvent(QResizeEvent * resizeEvent)
                << "\n viewport height\t" << viewport()->height()
                << "\n QResizeEvent rect left\t" << rect().left()
                << "\n QResizeEvent rect right\t" << rect().right()
-               << endl;\r
+               << endl;
                */
 }
 
-void QWorkArea::update(int x, int y, int w, int h)\r
-{\r
-       //screen_device_.fromImage(paint_device_);\r
-       QPainter q(&screen_device_);\r
-       q.drawImage(x, y, paint_device_.copy(x, y, w, h));\r
-       \r
-       viewport()->update(x, y, w, h);\r
-}\r
-\r
+void QWorkArea::update(int x, int y, int w, int h)
+{
+       //screen_device_.fromImage(paint_device_);
+       QPainter q(&screen_device_);
+       q.drawImage(x, y, paint_device_.copy(x, y, w, h));
+       
+       viewport()->update(x, y, w, h);
+}
+
 void QWorkArea::paintEvent(QPaintEvent * e)
-{\r
+{
        /*
        lyxerr[Debug::GUI] << BOOST_CURRENT_FUNCTION
                << "\n QWidget width\t" << this->width()
@@ -532,23 +532,23 @@ void QWorkArea::paintEvent(QPaintEvent * e)
                << "\n QPaintEvent y\t" << e->rect().y()
                << "\n QPaintEvent w\t" << e->rect().width()
                << "\n QPaintEvent h\t" << e->rect().height()
-               << endl;\r
+               << endl;
        */
        QPainter q(viewport());
        q.drawPixmap(e->rect(), screen_device_, e->rect());
 }
-\r
-QPixmap QWorkArea::copyScreen(int x, int y, int w, int h) const\r
-{\r
-       return screen_device_.copy(x, y, w, h);\r
-}\r
-\r
-void QWorkArea::drawScreen(int x, int y, QPixmap pixmap)\r
-{\r
-       QPainter q(&screen_device_);\r
-       q.drawPixmap(x, y, pixmap);\r
-       viewport()->update(x, y, pixmap.width(), pixmap.height());\r
-}\r
+
+QPixmap QWorkArea::copyScreen(int x, int y, int w, int h) const
+{
+       return screen_device_.copy(x, y, w, h);
+}
+
+void QWorkArea::drawScreen(int x, int y, QPixmap pixmap)
+{
+       QPainter q(&screen_device_);
+       q.drawPixmap(x, y, pixmap);
+       viewport()->update(x, y, pixmap.width(), pixmap.height());
+}
 
 
 ///////////////////////////////////////////////////////////////
index a419ceb43d04dfa4b788d74de5b4ef23438a6faf..bdfb50bd43d8f33d5a2b4cbadcd835c338b4c8ce 100644 (file)
@@ -26,9 +26,9 @@
 #include "QLPainter.h"
 #include "LyXView.h"
 
-#include "funcrequest.h"\r
-#include "frontends/Timeout.h"\r
-\r
+#include "funcrequest.h"
+#include "frontends/Timeout.h"
+
 #include <QAbstractScrollArea>
 #include <QMouseEvent>
 #include <QWheelEvent>
@@ -36,8 +36,8 @@
 #include <QKeyEvent>
 #include <QPaintEvent>
 #include <QTimer>
-#include <QImage>\r
-#include <QPixmap>\r
+#include <QImage>
+#include <QPixmap>
 
 #include <queue>
 
@@ -132,19 +132,19 @@ public:
 
        /// return the backing pixmap
        QPaintDevice * paintDevice() { return &paint_device_; }
-\r
+
        /// update the passed area.
-       void update(int x, int y, int w, int h);\r
+       void update(int x, int y, int w, int h);
 
-       /// return a screen copy of the defined area.\r
+       /// return a screen copy of the defined area.
        QPixmap copyScreen(int x, int y, int w, int h) const;
 
-       /// Draw a pixmap onto the backing pixmap.\r
-       /**\r
-       QPixmap is implicitely shared so no need to pass by reference.\r
-       */\r
-       void drawScreen(int x, int y, QPixmap pixmap);\r
-\r
+       /// Draw a pixmap onto the backing pixmap.
+       /**
+       QPixmap is implicitely shared so no need to pass by reference.
+       */
+       void drawScreen(int x, int y, QPixmap pixmap);
+
 protected:
 
        /// repaint part of the widget
@@ -171,16 +171,16 @@ protected:
 #endif
 
 public slots:
-\r
-       /// Timeout event Slot for keyboard bufferring.\r
+
+       /// Timeout event Slot for keyboard bufferring.
        /// \todo This is not used currently in the code, remove?
-       void keyeventTimeout();\r
-\r
-       /// Adjust the LyX buffer view with the position of the scrollbar.\r
-       /**\r
-       * The action argument is not used in the the code, it is there\r
-       * only for the connection to the vertical srollbar signal which \r
-       * emits an 'int' action.\r
+       void keyeventTimeout();
+
+       /// Adjust the LyX buffer view with the position of the scrollbar.
+       /**
+       * The action argument is not used in the the code, it is there
+       * only for the connection to the vertical srollbar signal which 
+       * emits an 'int' action.
        */
        void adjustViewWithScrollBar(int action = 0);
 
@@ -188,8 +188,8 @@ private:
 
        /// Buffer view width.
        int workWidth_;
-\r
-       /// Buffer view height.\r
+
+       /// Buffer view height.
        int workHeight_;
 
        /// Our painter.
@@ -198,19 +198,19 @@ private:
        /// The slot connected to SyntheticMouseEvent::timeout.
        void generateSyntheticMouseEvent();
 
-       ///\r
+       ///
        SyntheticMouseEvent synthetic_mouse_event_;
 
        /// Our client side painting device.
        QImage paint_device_;
 
-       /// Our server side painting device.\r
-       QPixmap screen_device_;\r
-\r
-       /// \todo remove\r
+       /// Our server side painting device.
+       QPixmap screen_device_;
+
+       /// \todo remove
        QTimer step_timer_;
-\r
-       /// \todo remove\r
+
+       /// \todo remove
        std::queue<boost::shared_ptr<QKeyEvent> > keyeventQueue_;
 
        double_click dc_event_;
index 53faf808ec2cf8f420b3e0441b0039d216ba92c3..9f7dfa1767ab498dddd5d8cc66adc17c6bf0c832 100644 (file)
 
 #include "LColor.h"
 
-LColorCache lcolorcache;\r
-\r
-const QColor grey40(0x66, 0x66, 0x66);\r
-const QColor grey60(0x99, 0x99, 0x99);\r
-const QColor grey80(0xcc, 0xcc, 0xcc);\r
-const QColor grey90(0xe5, 0xe5, 0xe5);\r
+LColorCache lcolorcache;
+
+const QColor grey40(0x66, 0x66, 0x66);
+const QColor grey60(0x99, 0x99, 0x99);
+const QColor grey80(0xcc, 0xcc, 0xcc);
+const QColor grey90(0xe5, 0xe5, 0xe5);
 
 
 LColorCache::LColorCache()
index e8f414ffb043546f593a06b696a1ae9b6f8e3298..3a853d0d3da27fc92413f7d6fad44a79c21afa41 100644 (file)
@@ -37,7 +37,7 @@ PanelStack::PanelStack(QWidget * parent)
 
        list_->setColumnCount(1);
        list_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
-       stack_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));\r
+       stack_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
 
        list_->setSortingEnabled(false);
 //     list_->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
@@ -80,8 +80,8 @@ void PanelStack::addCategory(string const & n, string const & parent)
                //it->second->addChild(item);
        }
 
-       panel_map_[n] = item;\r
-\r
+       panel_map_[n] = item;
+
        list_->setFixedWidth(list_->sizeHint().width());
 /*
        item->setFlags(false);
index 48a9a8a291ed8ac9b87b19dcc3cb92d7cd903426..5a9724f258e00feed6b834951394ceea7124843d 100644 (file)
@@ -9,18 +9,18 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#include <config.h>\r
+#include <config.h>
 
-#include "QWorkArea.h"\r
-#include "qscreen.h"\r
-\r
-#include <QColor>\r
-#include <QPainter>\r
+#include "QWorkArea.h"
+#include "qscreen.h"
+
+#include <QColor>
+#include <QPainter>
 #include <QApplication>
 
-#include "debug.h"\r
-#include "lcolorcache.h"\r
-\r
+#include "debug.h"
+#include "lcolorcache.h"
+
 
 namespace {
 
@@ -45,7 +45,7 @@ WorkArea & QScreen::workarea() const
 
 void QScreen::expose(int x, int y, int w, int h)
 {
-       lyxerr[Debug::GUI] << "expose " << w << 'x' << h\r
+       lyxerr[Debug::GUI] << "expose " << w << 'x' << h
                << '+' << x << '+' << y << std::endl;
 
        owner_.update(x, y, w, h);
@@ -85,14 +85,14 @@ void QScreen::showCursor(int x, int y, int h, Cursor_Shape shape)
        // 1 the rectangle of the original screen.
        // 2 the vertical line of the cursor.
        // 3 the horizontal line of the L-shaped cursor (if necessary).
-\r
+
        QColor const & required_color = lcolorcache.get(LColor::cursor);
        bool const cursor_color_changed = required_color != cursor_color_;
        if (cursor_color_changed)
-               cursor_color_ = required_color;\r
-\r
-       vcursor_ = QPixmap(cursor_w_, cursor_h_);\r
-       vcursor_ .fill(cursor_color_);\r
+               cursor_color_ = required_color;
+
+       vcursor_ = QPixmap(cursor_w_, cursor_h_);
+       vcursor_ .fill(cursor_color_);
 
        switch (shape) {
        case BAR_SHAPE:
@@ -102,14 +102,14 @@ void QScreen::showCursor(int x, int y, int h, Cursor_Shape shape)
                if (cursor_w_ != hcursor_.width() ||
                    cursor_color_changed) {
                        if (cursor_w_ != hcursor_.width())
-                               hcursor_ = QPixmap(cursor_w_, 1);\r
-                       hcursor_.fill(cursor_color_);\r
+                               hcursor_ = QPixmap(cursor_w_, 1);
+                       hcursor_.fill(cursor_color_);
                }
                break;
        }
 
-       // Save the old area (no cursor).\r
-       nocursor_ = owner_.copyScreen(cursor_x_, cursor_y_, cursor_w_, cursor_h_);\r
+       // Save the old area (no cursor).
+       nocursor_ = owner_.copyScreen(cursor_x_, cursor_y_, cursor_w_, cursor_h_);
 
        // Draw the new (vertical) cursor using the cached store.
        owner_.drawScreen(cursor_x_, cursor_y_, vcursor_);
index 4e6af549ba9da3ce6e3d63eb5af6914b797e860b..ae920f1ab0d135653bb6d9011ac6fbc8e0d65e16 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author John Levon\r
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS.
  */
 #ifndef QSCREEN_H
 #define QSCREEN_H
 
-\r
-#include "screen.h"\r
 
-#include <QPixmap>\r
-\r
-class QColor;\r
+#include "screen.h"
+
+#include <QPixmap>
+
+class QColor;
 
 class QWorkArea;
 class WorkArea;