]> git.lyx.org Git - lyx.git/commitdiff
compile fixes
authorJohn Levon <levon@movementarian.org>
Wed, 5 Dec 2001 18:32:49 +0000 (18:32 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 5 Dec 2001 18:32:49 +0000 (18:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3155 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QIndex.C
src/frontends/qt2/QParagraph.C
src/frontends/qt2/QParagraphDialog.C
src/frontends/qt2/QParagraphDialog.h
src/frontends/qt2/QTocDialog.C

index b1ffba3e38f61a4581928c847d660b24e573e855..a423678676e49d93df7623b72dac061d1a6e6e63 100644 (file)
@@ -1,3 +1,11 @@
+2001-12-05  John Levon  <moz@compsoc.man.ac.uk>
+
+       * QParagraph.C:
+       * QParagraphDialog.h:
+       * QParagraphDialog.C: use new vspace API
+
+       * QTocDialog.C: silence warnings
 2001-12-05  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * qttableview.C: change "while(" to "while (" 
index d91dff2a8f6981af7bd7f8c291c6d6cc69d78671..d99e60407f3382c208a32068016938dff30b1e26 100644 (file)
@@ -37,13 +37,13 @@ void QIndex::build_dialog()
  
 void QIndex::update_contents()
 {
-       dialog_->keywordED->setText(controller().getContents().c_str());
+       dialog_->keywordED->setText(controller().params().getContents().c_str());
 }
 
  
 void QIndex::apply()
 {
-       controller().setContents(dialog_->keywordED->text().latin1());
+       controller().params().setContents(dialog_->keywordED->text().latin1());
 }
 
 
index 025c63a503b35aa201071876540e6f43c3745f06..d31983a8827e4fe895a0095d3033bfecbf7294b0 100644 (file)
@@ -69,16 +69,16 @@ void QParagraph::update(bool switched)
        if (params->spaceTop().kind() == VSpace::LENGTH) {
                LyXGlueLength above = params->spaceTop().length();
                lyxerr[Debug::GUI] << "Reading above space : \"" << params->spaceTop().length().asString() << "\"" << endl;
-               dialog_->setAboveLength(above.value(), above.plusValue(), above.minusValue(),
-                       above.unit(), above.plusUnit(), above.minusUnit());
+               dialog_->setAboveLength(above.len().value(), above.plus().value(), above.minus().value(),
+                       above.len().unit(), above.plus().unit(), above.minus().unit());
        } else
                dialog_->setAboveLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
 
        if (params->spaceBottom().kind() == VSpace::LENGTH) {
                LyXGlueLength below = params->spaceBottom().length();
                lyxerr[Debug::GUI] << "Reading below space : \"" << params->spaceBottom().length().asString() << "\"" << endl;
-               dialog_->setBelowLength(below.value(), below.plusValue(), below.minusValue(),
-                       below.unit(), below.plusUnit(), below.minusUnit());
+               dialog_->setBelowLength(below.len().value(), below.plus().value(), below.minus().value(),
+                       below.len().unit(), below.plus().unit(), below.minus().unit());
        } else
                dialog_->setBelowLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE);
 
index a63a6234bfc8bb2473a570cc49ce9bc671645d72..c13e9d05e9092b6632d53e807529533f6bb0c863 100644 (file)
@@ -218,12 +218,12 @@ void QParagraphDialog::setExtra(float widthval, LyXLength::UNIT units, const str
 LyXGlueLength QParagraphDialog::getAboveLength() const
 {
        LyXGlueLength len(
-               spacingAboveValue->text().toFloat(),
-               getLyXLength( spacingAboveValueUnit->currentItem() ),
-               spacingAbovePlus->text().toFloat(),
-               getLyXLength( spacingAbovePlusUnit->currentItem() ),
-               spacingAboveMinus->text().toFloat(),
-               getLyXLength( spacingAboveMinusUnit->currentItem() )
+               LyXLength(spacingAboveValue->text().toFloat(),
+               getLyXLength(spacingAboveValueUnit->currentItem())),
+               LyXLength(spacingAbovePlus->text().toFloat(),
+               getLyXLength(spacingAbovePlusUnit->currentItem())),
+               LyXLength(spacingAboveMinus->text().toFloat(),
+               getLyXLength(spacingAboveMinusUnit->currentItem()))
                );
        return len;
 }
@@ -232,12 +232,12 @@ LyXGlueLength QParagraphDialog::getAboveLength() const
 LyXGlueLength QParagraphDialog::getBelowLength() const
 {
        LyXGlueLength len(
-               spacingBelowValue->text().toFloat(),
-               getLyXLength( spacingBelowValueUnit->currentItem() ),
-               spacingBelowPlus->text().toFloat(),
-               getLyXLength( spacingBelowPlusUnit->currentItem() ),
-               spacingBelowMinus->text().toFloat(),
-               getLyXLength( spacingBelowMinusUnit->currentItem() )
+               LyXLength(spacingBelowValue->text().toFloat(),
+               getLyXLength(spacingBelowValueUnit->currentItem())),
+               LyXLength(spacingBelowPlus->text().toFloat(),
+               getLyXLength(spacingBelowPlusUnit->currentItem())),
+               LyXLength(spacingBelowMinus->text().toFloat(),
+               getLyXLength(spacingBelowMinusUnit->currentItem()))
                );
        return len;
 }
index 96e21c355243b7fc305022971a019c069cd8041c..a448ea8a17ab844f5654f9498e4a9993f24cd23e 100644 (file)
@@ -16,6 +16,7 @@
 #include "vspace.h"
 #include "paragraph.h"
 #include "layout.h"
+#include "lyxgluelength.h"
 
 
 class QParagraph;
@@ -32,9 +33,9 @@ public:
        void setAlign(int);
        void setChecks(bool, bool, bool, bool, bool);
        void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
-       void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
-       void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
-       void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, Paragraph::PEXTRA_TYPE);
+       void setAboveLength(float, float, float, LyXLength::UNIT, LyXLength::UNIT, LyXLength::UNIT);
+       void setBelowLength(float, float, float, LyXLength::UNIT, LyXLength::UNIT, LyXLength::UNIT);
+       void setExtra(float, LyXLength::UNIT, const string, int, bool, bool, Paragraph::PEXTRA_TYPE);
        LyXGlueLength getAboveLength() const;
        LyXGlueLength getBelowLength() const;
        LyXLength getExtraWidth() const;
index ef8fe35fb2384b7c8aba8c11bb31ce1bdcf8a9aa..f434c95135bf5c16954cfc5ee7c34b6a5ea6e322 100644 (file)
@@ -54,13 +54,13 @@ void QTocDialog::close_adaptor()
 }
 
 
-void QTocDialog::depth_adaptor(int depth)
+void QTocDialog::depth_adaptor(int /*depth*/)
 {
        //form_->set_depth(depth);
 }
 
 
-void QTocDialog::select_adaptor(QListViewItem * item)
+void QTocDialog::select_adaptor(QListViewItem * /*item*/)
 {
        //form_->select(item->text(0));
 }