]> git.lyx.org Git - features.git/commitdiff
cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Tue, 11 Sep 2007 18:33:42 +0000 (18:33 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 11 Sep 2007 18:33:42 +0000 (18:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20217 a592a061-630c-0410-9148-cb99ea01b6c8

77 files changed:
src/frontends/controllers/Dialog.h
src/frontends/qt4/DockView.h
src/frontends/qt4/GuiBibitem.cpp
src/frontends/qt4/GuiBibitem.h
src/frontends/qt4/GuiBibtex.cpp
src/frontends/qt4/GuiBibtex.h
src/frontends/qt4/GuiBox.cpp
src/frontends/qt4/GuiBox.h
src/frontends/qt4/GuiBranch.cpp
src/frontends/qt4/GuiBranch.h
src/frontends/qt4/GuiChanges.cpp
src/frontends/qt4/GuiChanges.h
src/frontends/qt4/GuiCharacter.cpp
src/frontends/qt4/GuiCharacter.h
src/frontends/qt4/GuiCitation.cpp
src/frontends/qt4/GuiCitation.h
src/frontends/qt4/GuiDelimiter.cpp
src/frontends/qt4/GuiDelimiter.h
src/frontends/qt4/GuiDialog.cpp
src/frontends/qt4/GuiDialog.h
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiDocument.h
src/frontends/qt4/GuiERT.cpp
src/frontends/qt4/GuiERT.h
src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiErrorList.h
src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiExternal.h
src/frontends/qt4/GuiFloat.cpp
src/frontends/qt4/GuiFloat.h
src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/GuiGraphics.h
src/frontends/qt4/GuiInclude.cpp
src/frontends/qt4/GuiInclude.h
src/frontends/qt4/GuiIndex.cpp
src/frontends/qt4/GuiIndex.h
src/frontends/qt4/GuiListings.cpp
src/frontends/qt4/GuiListings.h
src/frontends/qt4/GuiLog.cpp
src/frontends/qt4/GuiLog.h
src/frontends/qt4/GuiMathMatrix.cpp
src/frontends/qt4/GuiMathMatrix.h
src/frontends/qt4/GuiNomencl.cpp
src/frontends/qt4/GuiNomencl.h
src/frontends/qt4/GuiNote.cpp
src/frontends/qt4/GuiNote.h
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiParagraph.h
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h
src/frontends/qt4/GuiPrint.cpp
src/frontends/qt4/GuiPrint.h
src/frontends/qt4/GuiRef.cpp
src/frontends/qt4/GuiRef.h
src/frontends/qt4/GuiSearch.cpp
src/frontends/qt4/GuiSearch.h
src/frontends/qt4/GuiSendto.cpp
src/frontends/qt4/GuiSendto.h
src/frontends/qt4/GuiShowFile.cpp
src/frontends/qt4/GuiShowFile.h
src/frontends/qt4/GuiSpellchecker.cpp
src/frontends/qt4/GuiSpellchecker.h
src/frontends/qt4/GuiTabular.cpp
src/frontends/qt4/GuiTabular.h
src/frontends/qt4/GuiTabularCreate.cpp
src/frontends/qt4/GuiTabularCreate.h
src/frontends/qt4/GuiTexinfo.cpp
src/frontends/qt4/GuiTexinfo.h
src/frontends/qt4/GuiThesaurus.cpp
src/frontends/qt4/GuiThesaurus.h
src/frontends/qt4/GuiURL.cpp
src/frontends/qt4/GuiURL.h
src/frontends/qt4/GuiVSpace.cpp
src/frontends/qt4/GuiVSpace.h
src/frontends/qt4/GuiWrap.cpp
src/frontends/qt4/GuiWrap.h
src/frontends/qt4/qt_helpers.h

index 03095cf2f268feaa8ff1f9217e3493d8cb8b9a78..fb2bef474ef53bb618064d60dad53c5bc053cc3b 100644 (file)
@@ -98,7 +98,7 @@ public:
         *  to a particular dialog.
         */
        //@{
-       virtual Controller & controller() const = 0;
+       virtual Controller & controller() = 0;
        //@}
 
        /** \c Button controller part
index e5c8773cefff5d5205afd7a12cbc2440865e22a3..261c4b532d48c64c398bbd921e3a5e5a9f02dc5f 100644 (file)
@@ -65,7 +65,7 @@ public:
        }
        bool isClosing() const { return false; }
        void partialUpdateView(int /*id*/) {}
-       Controller & controller() const { return *controller_; }
+       Controller & controller() { return *controller_; }
        std::string name() const { return name_; }
        //@}
 private:
index 812c2299f7b4c9ad924581a5911bfc73ed4ec715..1ee6a8168124b6571a04e12695152a56f7e903b0 100644 (file)
@@ -46,7 +46,7 @@ GuiBibitemDialog::GuiBibitemDialog(LyXView & lv)
 }
 
 
-ControlCommand & GuiBibitemDialog::controller() const
+ControlCommand & GuiBibitemDialog::controller()
 {
        return static_cast<ControlCommand &>(GuiDialog::controller());
 }
@@ -65,7 +65,7 @@ void GuiBibitemDialog::closeEvent(QCloseEvent *e)
 }
 
 
-void GuiBibitemDialog::update_contents()
+void GuiBibitemDialog::updateContents()
 {
        keyED->setText(toqstr(controller().params()["key"]));
        labelED->setText(toqstr(controller().params()["label"]));
index c46c0d9533f0886965ecf52edd03c28ceac50a18..671021a130515bf3759268534065ab0e56199a35 100644 (file)
@@ -33,7 +33,7 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlCommand & controller() const;
+       ControlCommand & controller();
 
 private:
        ///
@@ -41,7 +41,7 @@ private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index a39de142a4e965ea94ee33f96bac144b056436fc..4b5fd27721e373eb025683d306dd87e17497f1ec 100644 (file)
@@ -111,7 +111,7 @@ GuiBibtexDialog::GuiBibtexDialog(LyXView & lv)
 }
 
 
-ControlBibtex & GuiBibtexDialog::controller() const
+ControlBibtex & GuiBibtexDialog::controller()
 {
        return static_cast<ControlBibtex &>(GuiDialog::controller());
 }
@@ -233,7 +233,7 @@ void GuiBibtexDialog::deletePressed()
 
 void GuiBibtexDialog::databaseChanged()
 {
-       deletePB->setEnabled(!readOnly() && databaseLW->currentRow() != -1);
+       deletePB->setEnabled(!controller().isBufferReadonly() && databaseLW->currentRow() != -1);
 }
 
 
@@ -250,7 +250,7 @@ void GuiBibtexDialog::closeEvent(QCloseEvent *e)
 }
 
 
-void GuiBibtexDialog::update_contents()
+void GuiBibtexDialog::updateContents()
 {
        bool bibtopic = controller().usingBibtopic();
 
index 77fef6a21f939e3161d835ea3ff6843e507eda4d..bccbb25c9013aac05f0f61dd91a35dd6bc66b7c2 100644 (file)
@@ -55,13 +55,13 @@ private:
 
 private:
        /// parent controller
-       ControlBibtex & controller() const;
+       ControlBibtex & controller();
        ///
        virtual bool isValid();
        /// Apply changes
        virtual void applyView();
        /// update
-       virtual void update_contents();
+       virtual void updateContents();
 
        ///
        GuiBibtexAddDialog * add_;
index 2c70cbdc97813703443c5c78c46af5a60c5f7631..0e6b55c3dd26d7ae17db0f6784ca4932fd434c89 100644 (file)
@@ -112,7 +112,7 @@ GuiBoxDialog::GuiBoxDialog(LyXView & lv)
 }
 
 
-ControlBox & GuiBoxDialog::controller() const
+ControlBox & GuiBoxDialog::controller()
 {
        return static_cast<ControlBox &>(GuiDialog::controller());
 }
@@ -172,7 +172,7 @@ void GuiBoxDialog::restoreClicked()
 }
 
 
-void GuiBoxDialog::update_contents()
+void GuiBoxDialog::updateContents()
 {
        string type(controller().params().type);
        for (unsigned int i = 0; i < gui_names_.size(); ++i) {
index badaf7eb5dea5c133c6811ccc1f4e4ba78572b3f..938721a285d744fe5c320898fcd372414f600624 100644 (file)
@@ -39,7 +39,7 @@ private:
        void closeEvent(QCloseEvent * e);
 
        /// parent controller
-       ControlBox & controller() const;
+       ControlBox & controller();
        /// add and remove special lengths
        void setSpecial(bool ibox);
        /// only show valid inner box items
@@ -48,7 +48,7 @@ private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 
        ///
        std::vector<std::string> ids_;
index b687f82a0e617d434ee87ddef8bd20f042e9b0c0..1a85b35fff4e12b58f4a3646d99c04ea569be3b5 100644 (file)
@@ -43,7 +43,7 @@ GuiBranchDialog::GuiBranchDialog(LyXView & lv)
 }
 
 
-ControlBranch & GuiBranchDialog::controller() const
+ControlBranch & GuiBranchDialog::controller()
 {
        return static_cast<ControlBranch &>(GuiDialog::controller());
 }
@@ -62,7 +62,7 @@ void GuiBranchDialog::change_adaptor()
 }
 
 
-void GuiBranchDialog::update_contents()
+void GuiBranchDialog::updateContents()
 {
        typedef BranchList::const_iterator const_iterator;
 
index eb8512132fcacaf1b5dee591ee109d3b273aa5ff..b0a78638c69f1c7ec767c1fb2abacfaa43f40d26 100644 (file)
@@ -33,11 +33,11 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlBranch & controller() const;
+       ControlBranch & controller();
        ///  Apply changes
        void applyView();
        /// Update dialog before showing it
-       void update_contents();
+       void updateContents();
 };
 
 
index be9edb85da60584c0ba40b4b3491df28daafb07b..e615c14a0f13470dbc71c0550dc97bb9673112a8 100644 (file)
@@ -46,7 +46,7 @@ GuiChangesDialog::GuiChangesDialog(LyXView & lv)
 }
 
 
-ControlChanges & GuiChangesDialog::controller() const
+ControlChanges & GuiChangesDialog::controller()
 {
        return static_cast<ControlChanges &>(GuiDialog::controller());
 }
@@ -59,7 +59,7 @@ void GuiChangesDialog::closeEvent(QCloseEvent *e)
 }
 
 
-void GuiChangesDialog::update_contents()
+void GuiChangesDialog::updateContents()
 {
        docstring text;
        docstring author = controller().getChangeAuthor();
index 5fcee96d19e6432da717cf3aa645fadac0ebc758..ed895f0dfc2f3b4d7c4c0ed3274b0ca9f8d784ac 100644 (file)
@@ -33,8 +33,8 @@ protected Q_SLOTS:
 
 private:
        void closeEvent(QCloseEvent * e);
-       ControlChanges & controller() const;
-       void update_contents();
+       ControlChanges & controller();
+       void updateContents();
 };
 
 } // namespace frontend
index 83da18bb24282ae60375915978cf1fde09667d9d..14c2b17f4b6aec15cb12c724f871f9be3efb43ad 100644 (file)
@@ -106,7 +106,7 @@ GuiCharacterDialog::GuiCharacterDialog(LyXView & lv)
 }
 
 
-ControlCharacter & GuiCharacterDialog::controller() const
+ControlCharacter & GuiCharacterDialog::controller()
 {
        return static_cast<ControlCharacter &>(GuiDialog::controller());
 }
@@ -156,7 +156,7 @@ static int findPos2nd(vector<std::pair<A,B> > const & vec, B const & val)
 }
 
 
-void GuiCharacterDialog::update_contents()
+void GuiCharacterDialog::updateContents()
 {
        ControlCharacter const & ctrl = controller();
 
index 512a3e331e1d9751761b504b34043068021bf7cf..b9e7eedc021dd4ce204ccdf22b4b89d0844b48ac 100644 (file)
@@ -35,11 +35,11 @@ protected Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlCharacter & controller() const;
+       ControlCharacter & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 
        std::vector<FamilyPair> family;
        std::vector<SeriesPair> series;
index 4aaf7034cf428d144e2cfa53a70b0cce76ae418e..4f2e5cc62587e64157664267141e59347203e96d 100644 (file)
@@ -102,7 +102,7 @@ GuiCitationDialog::GuiCitationDialog(LyXView & lv)
 }
 
 
-ControlCitation & GuiCitationDialog::controller() const
+ControlCitation & GuiCitationDialog::controller()
 {
        return static_cast<ControlCitation &>(GuiDialog::controller());
 }
index 339da17822e67b422f3698b56ba2f49efcfaebce..95a0158dce6905526e18b75bac6c7be8eff2ab78 100644 (file)
@@ -53,7 +53,7 @@ public Q_SLOTS:
 
 private:
        ///
-       ControlCitation & controller() const;
+       ControlCitation & controller();
        ///
        void closeEvent(QCloseEvent * e);
        /// prepares a call to GuiCitation::searchKeys when we
index da0fbd5badf3103fa7964f6c18f025f8bc590e58..230c1783b76134cc9236a5c43c90d195d7cae69b 100644 (file)
@@ -110,13 +110,13 @@ GuiDelimiterDialog::GuiDelimiterDialog(LyXView & lv)
 }
 
 
-ControlMath & GuiDelimiterDialog::controller() const
+ControlMath & GuiDelimiterDialog::controller()
 {
        return static_cast<ControlMath &>(GuiDialog::controller()); 
 }
 
 
-char_type GuiDelimiterDialog::doMatch(char_type const symbol) const
+char_type GuiDelimiterDialog::doMatch(char_type const symbol)
 {
        string const & str = controller().texName(symbol);
        string match;
index e3724500b1fa311bed4b54da79a69978ac6b1058..1edf6248e227e08a6e5e7673a891382bc3b56cbd 100644 (file)
@@ -39,11 +39,11 @@ public Q_SLOTS:
 
 private:
        ///
-       char_type doMatch(char_type const symbol) const;
+       char_type doMatch(char_type const symbol);
        ///
        void updateTeXCode(int size);
        /// parent controller
-       ControlMath & controller() const;
+       ControlMath & controller();
 
        /// TeX code that will be inserted.
        QString tex_code_;
index 095928db532a00f8d7e5e9d41a256fa3ab744a03..941568ccf98a1716a98f9a46ebd023f0305464a9 100644 (file)
@@ -114,12 +114,6 @@ bool GuiDialog::isVisibleView() const
 }
 
 
-bool GuiDialog::readOnly() const
-{
-       return controller().isBufferReadonly();
-}
-
-
 void GuiDialog::showView()
 {
        QSize const hint = sizeHint();
@@ -160,7 +154,7 @@ void GuiDialog::updateView()
 
        // protect the BC from unwarranted state transitions
        updating_ = true;
-       update_contents();
+       updateContents();
        updating_ = false;
 
        setUpdatesEnabled(true);
index 7eafe75c1ab44a79c86b086cfca57bb591c1253d..1628efd16a5239585dc1a777821f6b80d606aa10 100644 (file)
@@ -50,7 +50,6 @@ public Q_SLOTS:
        void slotClose();
 
 public:
-
        /** Check whether we may apply our data.
         *
         *  The buttons are disabled if not and (re-)enabled if yes.
@@ -68,8 +67,6 @@ public:
 
        void setViewTitle(docstring const & title);
 
-       ///
-       bool readOnly() const;
 
        /// the dialog has changed contents
        virtual void changed();
@@ -77,7 +74,7 @@ public:
        /// default: do nothing
        virtual void applyView() {}
        /// default: do nothing
-       virtual void update_contents() {}
+       virtual void updateContents() {}
 
 protected:
        /// Hide the dialog.
@@ -126,7 +123,7 @@ public:
         *  Methods to access the various components making up a dialog.
         */
        //@{
-       virtual Controller & controller() const { return *controller_; }
+       virtual Controller & controller() { return *controller_; }
        //@}
 
        /** Defaults to nothing. Can be used by the Controller, however, to
index 6d051e323c7803006a5f07fcea7e0df6eb9e966f..b586395f54ea34198dae90177bbe16bebe4aaddf 100644 (file)
@@ -612,7 +612,7 @@ GuiDocumentDialog::GuiDocumentDialog(LyXView & lv)
 }
 
 
-ControlDocument & GuiDocumentDialog::controller() const
+ControlDocument & GuiDocumentDialog::controller()
 {
        return static_cast<ControlDocument &>(GuiDialog::controller());
 }
@@ -849,7 +849,7 @@ void GuiDocumentDialog::classChanged()
        params.setJustBaseClass(tc);
        if (lyxrc.auto_reset_options)
                params.useClassDefaults();
-       update_contents();
+       updateContents();
 }
 
 
@@ -1407,7 +1407,7 @@ void GuiDocumentDialog::applyView()
 }
 
 
-void GuiDocumentDialog::update_contents()
+void GuiDocumentDialog::updateContents()
 {
        updateParams(controller().params());
 }
@@ -1428,7 +1428,7 @@ void GuiDocumentDialog::useClassDefaults()
        params.setJustBaseClass(latexModule->classCO->currentIndex());
 
        params.useClassDefaults();
-       update_contents();
+       updateContents();
 }
 
 
index dff7bdccd99ce00bb80656a63e33fc37f428528b..f94ad62130cbc0432a32f421c9544e6d2ce63f05 100644 (file)
@@ -114,12 +114,12 @@ private:
        std::vector<std::string> lang_;
 
        /// parent controller
-       ControlDocument & controller() const;
+       ControlDocument & controller();
 private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
        /// save as default template
        void saveDocDefault();
        /// reset to default params
index ed3798411b84760900bb656657d73a4beca847e8..5082997d7cbfac66836f8c79077e311e7486caa8 100644 (file)
@@ -40,7 +40,7 @@ GuiERTDialog::GuiERTDialog(LyXView & lv)
 }
 
 
-ControlERT & GuiERTDialog::controller() const
+ControlERT & GuiERTDialog::controller()
 {
        return static_cast<ControlERT &>(GuiDialog::controller());
 }
@@ -68,7 +68,7 @@ void GuiERTDialog::applyView()
 }
 
 
-void GuiERTDialog::update_contents()
+void GuiERTDialog::updateContents()
 {
        switch (controller().status()) {
                case InsetERT::Open: openRB->setChecked(true); break;
index 1d1e53df659d792893ae3005aa71afa42db96088..f714f1c29e5c83be99a4ce7a6161a3a3443b6822 100644 (file)
@@ -32,11 +32,11 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlERT & controller() const;
+       ControlERT & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index ac8ea3df6530daab054e469d90da2bfe8b647da2..245987e4da15bf9887a4747ef0b7eb2ee5d76170 100644 (file)
@@ -43,7 +43,7 @@ GuiErrorListDialog::GuiErrorListDialog(LyXView & lv)
 }
 
 
-ControlErrorList & GuiErrorListDialog::controller() const
+ControlErrorList & GuiErrorListDialog::controller()
 {
        return static_cast<ControlErrorList &>(GuiDialog::controller());
 }
@@ -78,7 +78,7 @@ void GuiErrorListDialog::select(QListWidgetItem * wi)
 }
 
 
-void GuiErrorListDialog::update_contents()
+void GuiErrorListDialog::updateContents()
 {
        setViewTitle(from_utf8(controller().name()));
        errorsLW->clear();
index 4687debf714711b04bb8d8fc26ab1fc86eef4cda..e0a7eb3f9403a22f72463219e2ea9e5f187dc47d 100644 (file)
@@ -35,11 +35,11 @@ private:
        void closeEvent(QCloseEvent *);
        void showEvent(QShowEvent *);
        /// parent controller
-       ControlErrorList & controller() const;
+       ControlErrorList & controller();
        /// select an entry
        void select(QListWidgetItem *);
        /// update contents
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index b5c01e2cd1fb22c677b0f9feaed9be00edc44fed..3dee6355242273df203bdb7c6ad6dccf5d3d22b6 100644 (file)
@@ -184,7 +184,7 @@ GuiExternalDialog::GuiExternalDialog(LyXView & lv)
 }
 
 
-ControlExternal & GuiExternalDialog::controller() const
+ControlExternal & GuiExternalDialog::controller()
 {
        return static_cast<ControlExternal &>(GuiDialog::controller());
 }
@@ -359,7 +359,7 @@ void setDisplay(QCheckBox & displayCB, QComboBox & showCO, QLineEdit & scaleED,
        showCO.setEnabled(!no_display && !read_only);
        displayCB.setChecked(!no_display);
        scaleED.setEnabled(!no_display && !read_only);
-       scaleED.setText(toqstr(convert<string>(scale)));
+       scaleED.setText(QString::number(scale));
 }
 
 
@@ -390,7 +390,7 @@ void getDisplay(external::DisplayType & display,
        if (!displayCB.isChecked())
                display = external::NoDisplay;
 
-       scale = convert<int>(fromqstr(scaleED.text()));
+       scale = scaleED.text().toInt();
 }
 
 
@@ -429,7 +429,7 @@ void setSize(QLineEdit & widthED, QComboBox & widthUnitCO,
                widthED.setText(toqstr(scale));
                widthUnitCO.setCurrentIndex(0);
        } else {
-               widthED.setText(toqstr(convert<string>(data.width.value())));
+               widthED.setText(QString::number(data.width.value()));
                // Because 'Scale' is position 0...
                // Note also that width cannot be zero here, so
                // we don't need to worry about the default unit.
@@ -493,10 +493,10 @@ void setCrop(QCheckBox & clipCB,
 {
        clipCB.setChecked(data.clip);
        graphics::BoundingBox const & bbox = data.bbox;
-       xlED.setText(toqstr(convert<string>(bbox.xl)));
-       ybED.setText(toqstr(convert<string>(bbox.yb)));
-       xrED.setText(toqstr(convert<string>(bbox.xr)));
-       ytED.setText(toqstr(convert<string>(bbox.yt)));
+       xlED.setText(QString::number(bbox.xl));
+       ybED.setText(QString::number(bbox.yb));
+       xrED.setText(QString::number(bbox.xr));
+       ytED.setText(QString::number(bbox.yt));
 }
 
 
@@ -511,10 +511,10 @@ void getCrop(external::ClipData & data,
        if (!bb_changed)
                return;
 
-       data.bbox.xl = convert<int>(fromqstr(xlED.text()));
-       data.bbox.yb = convert<int>(fromqstr(ybED.text()));
-       data.bbox.xr = convert<int>(fromqstr(xrED.text()));
-       data.bbox.yt = convert<int>(fromqstr(ytED.text()));
+       data.bbox.xl = xlED.text().toInt();
+       data.bbox.yb = ybED.text().toInt();
+       data.bbox.xr = xrED.text().toInt();
+       data.bbox.yt = ytED.text().toInt();
 }
 
 
@@ -522,7 +522,7 @@ void getExtra(external::ExtraData & data,
              GuiExternalDialog::MapType const & extra)
 {
        typedef GuiExternalDialog::MapType MapType;
-       MapType::const_iterator it  = extra.begin();
+       MapType::const_iterator it = extra.begin();
        MapType::const_iterator const end = extra.end();
        for (; it != end; ++it)
                data.set(it->first, trim(fromqstr(it->second)));
@@ -532,7 +532,7 @@ void getExtra(external::ExtraData & data,
 
 
 
-void GuiExternalDialog::update_contents()
+void GuiExternalDialog::updateContents()
 {
        tab->setCurrentIndex(0);
        InsetExternalParams const & params = controller().params();
@@ -549,7 +549,7 @@ void GuiExternalDialog::update_contents()
 
        setDisplay(*displayCB, *showCO,
                   *displayscaleED,
-                  params.display, params.lyxscale, readOnly());
+                  params.display, params.lyxscale, controller().isBufferReadonly());
 
        setRotation(*angleED, *originCO, params.rotationdata);
 
index 4864b45096dc3cd0d637a180627d033ef60dcb88..0d736e648706e98df5eeda6cbc2ae972d536cbf9 100644 (file)
@@ -46,11 +46,11 @@ public:
        //
        bool activateAspectratio() const;
        /// parent controller
-       ControlExternal & controller() const;
+       ControlExternal & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
        /// Helper function called when the template is changed.
        void updateTemplate();
        /// get bounding box from file
index cc1eff1ec13ce2ca7e4e46ac4282507da10b1136..87d1ca7a67a399c3bada73ce6a8dd064120d7259 100644 (file)
@@ -54,7 +54,7 @@ GuiFloatDialog::GuiFloatDialog(LyXView & lv)
 }
 
 
-ControlFloat & GuiFloatDialog::controller() const
+ControlFloat & GuiFloatDialog::controller()
 {
        return static_cast<ControlFloat &>(GuiDialog::controller());
 }
@@ -73,7 +73,7 @@ void GuiFloatDialog::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiFloatDialog::update_contents()
+void GuiFloatDialog::updateContents()
 {
        floatFP->set(controller().params());
 }
index 645ca5bb88e8627c756d9d9e7c0ee6ec8c0e51c3..881245d0ed6e1b93822735bddb8f9776359816a2 100644 (file)
@@ -32,11 +32,11 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlFloat & controller() const;
+       ControlFloat & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index cc58105a845c0b1c7ff9ca440ec038984100ad6a..4ce719a1a3b6d4e26061c759a1db26df0c978a99 100644 (file)
@@ -211,7 +211,7 @@ GuiGraphicsDialog::GuiGraphicsDialog(LyXView & lv)
 }
 
 
-ControlGraphics & GuiGraphicsDialog::controller() const
+ControlGraphics & GuiGraphicsDialog::controller()
 {
        return static_cast<ControlGraphics &>(GuiDialog::controller());
 }
@@ -381,7 +381,7 @@ static int getItemNo(const vector<string> & v, string const & s)
 }
 
 
-void GuiGraphicsDialog::update_contents()
+void GuiGraphicsDialog::updateContents()
 {
        // clear and fill in the comboboxes
        vector<string> const bb_units = frontend::getBBUnits();
index e70e23c134dc1c8d9e8443e45f5b3de30c65e7eb..3e9908b06d242dc0139c1ec31f51b494d8cf4afb 100644 (file)
@@ -44,12 +44,12 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlGraphics & controller() const;
+       ControlGraphics & controller();
        bool isValid();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
        /// get bounding box from file
        void getBB();
 
index a6c3e155391899166121eb6c56fce27307e6377b..42ca019b67eca61d2329b03cd38d694a83a15b72 100644 (file)
@@ -78,7 +78,7 @@ GuiIncludeDialog::GuiIncludeDialog(LyXView & lv)
 }
 
 
-ControlInclude & GuiIncludeDialog::controller() const
+ControlInclude & GuiIncludeDialog::controller()
 {
        return static_cast<ControlInclude &>(GuiDialog::controller());
 }
@@ -186,7 +186,7 @@ void GuiIncludeDialog::browseClicked()
 }
 
 
-void GuiIncludeDialog::update_contents()
+void GuiIncludeDialog::updateContents()
 {
        InsetCommandParams const & params = controller().params();
 
index 035da82d105c8a7f20963a6e427e6d20e24ad1b0..09abe6791bf2736b7b5e126e7482151454a7ced7 100644 (file)
@@ -40,7 +40,7 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlInclude & controller() const;
+       ControlInclude & controller();
        ///
        void updateLists();
        /// validate listings parameters and return an error message, if any
@@ -51,7 +51,7 @@ private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
        /// edit the child document, .lyx file will be opened in lyx
        /// other formats will be edited by external applications.
        void edit();
index 70059ca659a3f506596d640303b901c7db80a1cf..4982b693dcd0ab07bd26bf5c1c233dffd2bc9161 100644 (file)
@@ -75,7 +75,7 @@ GuiIndexDialogBase::GuiIndexDialogBase(LyXView & lv,
 }
 
 
-ControlCommand & GuiIndexDialogBase::controller() const
+ControlCommand & GuiIndexDialogBase::controller()
 {
        return static_cast<ControlCommand &>(GuiDialog::controller());
 }
@@ -100,7 +100,7 @@ void GuiIndexDialogBase::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiIndexDialogBase::update_contents()
+void GuiIndexDialogBase::updateContents()
 {
        docstring const contents = controller().params()["name"];
        keywordED->setText(toqstr(contents));
index e6c8445f5a2ea0a764fb7acaf7b706da2ae7d3a5..3db4df32de4b6c242e9c8ba017bb8c61343e7708 100644 (file)
@@ -36,13 +36,13 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlCommand & controller() const;
+       ControlCommand & controller();
        ///
        bool isValid();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 
        ///
        QString label_;
index 2ec3b29bc4aa7ac1031b7867b2f91edf063d5972..3fd431839215446ef1f7c2472c1286126adb4939 100644 (file)
@@ -240,12 +240,12 @@ GuiListingsDialog::GuiListingsDialog(LyXView & lv)
        listingsTB->setPlainText(
                qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
 
-       update_contents();
+       updateContents();
 
 }
 
 
-ControlListings & GuiListingsDialog::controller() const
+ControlListings & GuiListingsDialog::controller()
 {
        return static_cast<ControlListings &>(GuiDialog::controller());
 }
@@ -457,7 +457,7 @@ static string plainParam(std::string const & par)
 }
 
 
-void GuiListingsDialog::update_contents()
+void GuiListingsDialog::updateContents()
 {
        // set default values
        listingsTB->setPlainText(
index 6ffee237a396b11a870ceaf2efd47bd8f73f0d32..4d6b1d5b7563ce448bfb37f284a159e27ea5b5ba 100644 (file)
@@ -46,13 +46,13 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlListings & controller() const;
+       ControlListings & controller();
        /// return false if validate_listings_params returns error
        bool isValid();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index c665f77d675d25ae105400a751181e6356f83e32..290015ff16bc12d82973428e17f2cc833a8cd6a9 100644 (file)
@@ -117,7 +117,7 @@ GuiLogDialog::GuiLogDialog(LyXView & lv)
 }
 
 
-ControlLog & GuiLogDialog::controller() const
+ControlLog & GuiLogDialog::controller()
 {
        return static_cast<ControlLog &>(GuiDialog::controller());
 }
@@ -132,11 +132,11 @@ void GuiLogDialog::closeEvent(QCloseEvent * e)
 
 void GuiLogDialog::updateClicked()
 {
-       update_contents();
+       updateContents();
 }
 
 
-void GuiLogDialog::update_contents()
+void GuiLogDialog::updateContents()
 {
        setViewTitle(controller().title());
 
index ad6fe49e1b7db6e3e30a6396c90703a4fc959643..07940d94ff1f6382e3950244552e4c053a1d9c6b 100644 (file)
@@ -31,11 +31,11 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlLog & controller() const;
+       ControlLog & controller();
        /// Apply changes
        void applyView() {}
        /// update
-       void update_contents();
+       void updateContents();
 
        /// log syntax highlighter
        LogHighlighter * highlighter;
index 939acbbe19d5018df17997a1a683f0996233f05f..e52500375c1a466cac62241c9f981fd926164175 100644 (file)
@@ -65,7 +65,7 @@ GuiMathMatrixDialog::GuiMathMatrixDialog(LyXView & lv)
 }
 
 
-ControlMath & GuiMathMatrixDialog::controller() const
+ControlMath & GuiMathMatrixDialog::controller()
 {
        return static_cast<ControlMath &>(GuiDialog::controller());
 }
index 7eae605d0b36bdf59204c0fc22ddc175b95a41b9..e7d5aeb11efddf95cb6d81d32a707a44c3297f43 100644 (file)
@@ -38,7 +38,7 @@ public Q_SLOTS:
        void change_adaptor();
 
        /// parent controller
-       ControlMath & controller() const;
+       ControlMath & controller();
 };
 
 } // namespace frontend
index 11acc63959c87f7633f4ee164b41deab76d13912..61f57ef161225642d3feb07468cc3c179c9f72e8 100644 (file)
@@ -53,7 +53,7 @@ GuiNomenclDialog::GuiNomenclDialog(LyXView & lv)
 }
 
 
-ControlCommand & GuiNomenclDialog::controller() const
+ControlCommand & GuiNomenclDialog::controller()
 {
        return static_cast<ControlCommand &>(GuiDialog::controller());
 }
@@ -78,7 +78,7 @@ void GuiNomenclDialog::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiNomenclDialog::update_contents()
+void GuiNomenclDialog::updateContents()
 {
        prefixED->setText(toqstr(controller().params()["prefix"]));
        symbolED->setText(toqstr(controller().params()["symbol"]));
index 5c0405553eec1bc70ae38b8eaf3a5f6c68adb4e0..f42f1f2b7f1003440d88c5b9abf1a8254eb7ea69 100644 (file)
@@ -36,13 +36,13 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlCommand & controller() const;
+       ControlCommand & controller();
        ///
        bool isValid();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index c10ce960d0e9afb4058a257f81c896053b322563..350fc925c548845d84abfe37eff85f9915ebc9f2 100644 (file)
@@ -42,7 +42,7 @@ GuiNoteDialog::GuiNoteDialog(LyXView & lv)
 }
 
 
-ControlNote & GuiNoteDialog::controller() const
+ControlNote & GuiNoteDialog::controller()
 {
        return static_cast<ControlNote &>(GuiDialog::controller());
 }
@@ -61,7 +61,7 @@ void GuiNoteDialog::change_adaptor()
 }
 
 
-void GuiNoteDialog::update_contents()
+void GuiNoteDialog::updateContents()
 {
        QRadioButton * rb = 0;
 
index e1f6e57f5fedf9a035ff66806191d4a94a27e0a3..50a2d3318bc6bf8651a2dd5782a6f1145090f710 100644 (file)
@@ -29,11 +29,11 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlNote & controller() const;
+       ControlNote & controller();
        /// Apply changes
        void applyView();
        /// Update dialog before showing it
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 618436fd60806fe38e62dd0fb50191090b1ea86c..0606fca896aa97c5798646cfa4f548495882fa43 100644 (file)
@@ -92,7 +92,7 @@ GuiParagraphDialog::GuiParagraphDialog(LyXView & lv)
 }
 
 
-ControlParagraph & GuiParagraphDialog::controller() const
+ControlParagraph & GuiParagraphDialog::controller()
 {
        return static_cast<ControlParagraph &>(GuiDialog::controller());
 }
@@ -202,7 +202,7 @@ void GuiParagraphDialog::applyView()
 }
 
 
-void GuiParagraphDialog::update_contents()
+void GuiParagraphDialog::updateContents()
 {
        ParagraphParameters const & params = controller().params();
 
index 18f1180ce8cc40a08a96a936dbf9e8e125772af6..ff6cdccff857ae37a457ba3ec761b8d4fc383786 100644 (file)
@@ -50,11 +50,11 @@ private Q_SLOTS:
        ///
        void enableLinespacingValue(int);
        /// parent controller
-       ControlParagraph & controller() const;
+       ControlParagraph & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 709d82dcad0ec5f81622ed9f46ffc199324f9077..b30389ac1a22a0d47392f6b6c0d870aaef031fd5 100644 (file)
@@ -1959,7 +1959,7 @@ GuiPrefsDialog::GuiPrefsDialog(LyXView & lv)
 }
 
 
-ControlPrefs & GuiPrefsDialog::controller() const
+ControlPrefs & GuiPrefsDialog::controller()
 {
        return static_cast<ControlPrefs &>(GuiDialog::controller());
 }
@@ -2023,7 +2023,7 @@ void GuiPrefsDialog::applyView()
        apply(controller().rc());
 }
 
-void GuiPrefsDialog::update_contents()
+void GuiPrefsDialog::updateContents()
 {
        updateRc(controller().rc());
 }
index 72b8d22dfd1aa027d91dd3d9e1fc6274cbf08ac8..cc04b86bda07c44f8a4cb8a2e0c4d7a0908ba8de 100644 (file)
@@ -358,11 +358,11 @@ public:
        ///
        Movers & movers();
        /// parent controller
-       ControlPrefs & controller() const;
+       ControlPrefs & controller();
        /// Apply changes
        void applyView();
        /// update (do we need this?)
-       void update_contents();
+       void updateContents();
 
        std::vector<PrefModule *> modules_;
 };
index a495a24113c7065db8ab4e2e6b498a3f0c680c8d..49692890d4df1e115c86eca72b7fe9dab53e686c 100644 (file)
@@ -67,7 +67,7 @@ GuiPrintDialog::GuiPrintDialog(LyXView & lv)
 }
 
 
-ControlPrint & GuiPrintDialog::controller() const
+ControlPrint & GuiPrintDialog::controller()
 {
        return static_cast<ControlPrint &>(GuiDialog::controller());
 }
@@ -117,7 +117,7 @@ void GuiPrintDialog::pagerangeChanged()
 }
 
 
-void GuiPrintDialog::update_contents()
+void GuiPrintDialog::updateContents()
 {
        PrinterParams & pp = controller().params();
 
index 52abe819605b4acf2f1965f114ecf650366ef7d6..431498896499727c72da2bc1410f3efd02284cc7 100644 (file)
@@ -35,13 +35,13 @@ private Q_SLOTS:
        void printerChanged();
        void pagerangeChanged();
        /// parent controller
-       ControlPrint & controller() const;
+       ControlPrint & controller();
 
 private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 74e01fd60c3f39bfb47cf435c4148a51b6b94d04..cdb6e59c9440da780fd3add1b48427648fd03c20 100644 (file)
@@ -88,7 +88,7 @@ GuiRefDialog::GuiRefDialog(LyXView & lv)
 }
 
 
-ControlRef & GuiRefDialog::controller() const
+ControlRef & GuiRefDialog::controller()
 {
        return static_cast<ControlRef &>(GuiDialog::controller());
 }
@@ -107,7 +107,7 @@ void GuiRefDialog::gotoClicked()
 
 void GuiRefDialog::selectionChanged()
 {
-       if (readOnly())
+       if (controller().isBufferReadonly())
                return;
 
        QList<QListWidgetItem *> selections = refsLW->selectedItems();
@@ -121,7 +121,7 @@ void GuiRefDialog::selectionChanged()
 
 void GuiRefDialog::refHighlighted(QListWidgetItem * sel)
 {
-       if (readOnly())
+       if (controller().isBufferReadonly())
                return;
 
 /*     int const cur_item = refsLW->currentRow();
@@ -144,7 +144,7 @@ void GuiRefDialog::refHighlighted(QListWidgetItem * sel)
 
 void GuiRefDialog::refSelected(QListWidgetItem * sel)
 {
-       if (readOnly())
+       if (controller().isBufferReadonly())
                return;
 
 /*     int const cur_item = refsLW->currentRow();
@@ -187,7 +187,7 @@ void GuiRefDialog::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiRefDialog::update_contents()
+void GuiRefDialog::updateContents()
 {
        InsetCommandParams const & params = controller().params();
 
@@ -196,14 +196,14 @@ void GuiRefDialog::update_contents()
        referenceED->setText(toqstr(params["reference"]));
 
        nameED->setText(toqstr(params["name"]));
-       nameED->setReadOnly(!nameAllowed() && !readOnly());
+       nameED->setReadOnly(!nameAllowed() && !controller().isBufferReadonly());
 
        // restore type settings for new insets
        if (params["reference"].empty())
                typeCO->setCurrentIndex(orig_type);
        else
                typeCO->setCurrentIndex(InsetRef::getType(params.getCmdName()));
-       typeCO->setEnabled(typeAllowed() && !readOnly());
+       typeCO->setEnabled(typeAllowed() && !controller().isBufferReadonly());
        if (!typeAllowed())
                typeCO->setCurrentIndex(0);
 
index 50947fc16b84fa6b03229911b73c6cf391cfb30f..6c0faae500494effa2ca7df7186812e1cbceb4f8 100644 (file)
@@ -44,13 +44,13 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlRef & controller() const;
+       ControlRef & controller();
        ///
        bool isValid();
        /// apply changes
        void applyView();
        /// update dialog
-       void update_contents();
+       void updateContents();
 
        /// is name allowed for this ?
        bool nameAllowed();
index 938a55aa5b83e8a1add8420b5dc45b66d691a98f..437253fe735561bffd98e3055e34f8f9b567ae97 100644 (file)
@@ -63,7 +63,7 @@ GuiSearchDialog::GuiSearchDialog(LyXView & lv)
 }
 
 
-ControlSearch & GuiSearchDialog::controller() const
+ControlSearch & GuiSearchDialog::controller()
 {
        return static_cast<ControlSearch &>(GuiDialog::controller());
 }
@@ -91,8 +91,8 @@ void GuiSearchDialog::findChanged()
                replaceallPB->setEnabled(false);
        } else {
                findPB->setEnabled(true);
-               replacePB->setEnabled(!readOnly());
-               replaceallPB->setEnabled(!readOnly());
+               replacePB->setEnabled(!controller().isBufferReadonly());
+               replaceallPB->setEnabled(!controller().isBufferReadonly());
        }
 }
 
index 3e5c8d147fd6dcc6c4a46a9242172370f2967ddd..9ae3842ac1d9fef1abe5f9b92e9a2ae654f31779 100644 (file)
@@ -38,7 +38,7 @@ private:
        void showView();
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlSearch & controller() const;
+       ControlSearch & controller();
        ///
        void find(docstring const & str, bool casesens,
          bool words, bool backwards);
index 8d775237b061fcfd209891c9afeeccef2e041592..b89245b77a999a4428c516f967d20c05f5b83140 100644 (file)
@@ -55,7 +55,7 @@ GuiSendtoDialog::GuiSendtoDialog(LyXView & lv)
 }
 
 
-ControlSendto & GuiSendtoDialog::controller() const
+ControlSendto & GuiSendtoDialog::controller()
 {
        return static_cast<ControlSendto &>(GuiDialog::controller());
 }
@@ -74,7 +74,7 @@ void GuiSendtoDialog::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiSendtoDialog::update_contents()
+void GuiSendtoDialog::updateContents()
 {
        all_formats_ = controller().allFormats();
 
index 92aaf0a97f040fa17579702f61c2986e6760c60d..d69ca02f287f8896f7642413f9a894cb38c15992 100644 (file)
@@ -41,13 +41,13 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlSendto & controller() const;
+       ControlSendto & controller();
        ///
        bool isValid();
        /// Apply from dialog
        void applyView();
        /// Update the dialog
-       void update_contents();
+       void updateContents();
 
        ///
        std::vector<Format const *> all_formats_;
index 821fdb67fc5df3b6d8c29dbf557321cd104af68e..000325f8f377fd29117382d1dc5cf6412d657eb4 100644 (file)
@@ -37,7 +37,7 @@ GuiShowFileDialog::GuiShowFileDialog(LyXView & lv)
 }
 
 
-ControlShowFile & GuiShowFileDialog::controller() const
+ControlShowFile & GuiShowFileDialog::controller()
 {
        return static_cast<ControlShowFile &>(GuiDialog::controller());
 }
@@ -50,7 +50,7 @@ void GuiShowFileDialog::closeEvent(QCloseEvent * e)
 }
 
 
-void GuiShowFileDialog::update_contents()
+void GuiShowFileDialog::updateContents()
 {
        setWindowTitle(toqstr(controller().getFileName()));
 
index bc7f4e6b3b5b4e686778695f10a619445bbdc259..44e9a781eec54d218106eb3caa0a30bb05e347b8 100644 (file)
@@ -30,9 +30,9 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlShowFile & controller() const;
+       ControlShowFile & controller();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 027b397ed4d09e4951ea48c8fd7194a48bf4d3af..2f8d7cb3d9882ff04aa37c780ac3b0fa9c7cc630 100644 (file)
@@ -62,7 +62,7 @@ GuiSpellcheckerDialog::GuiSpellcheckerDialog(LyXView & lv)
 }
 
 
-ControlSpellchecker & GuiSpellcheckerDialog::controller() const
+ControlSpellchecker & GuiSpellcheckerDialog::controller()
 {
        return static_cast<ControlSpellchecker &>(GuiDialog::controller());
 }
@@ -131,7 +131,7 @@ void GuiSpellcheckerDialog::reject()
 }
 
 
-void GuiSpellcheckerDialog::update_contents()
+void GuiSpellcheckerDialog::updateContents()
 {
        if (isVisibleView() || controller().exitEarly())
                controller().check();
index 668821c5e701d8f9506eca627fcc17378f91126f..1a9ff470a8feee17be234b7f3c60d7c7a9054e81 100644 (file)
@@ -46,14 +46,14 @@ private:
        /// update from controller
        void partialUpdate(int id);
        /// parent controller
-       ControlSpellchecker & controller() const;
+       ControlSpellchecker & controller();
        ////
        void accept();
        void add();
        void ignore();
        void replace();
        ///
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 68df6cd1998bed8f62a65b45155311aa398c1d15..0d6066406897f819979f5adc6469b63665ee4998 100644 (file)
@@ -148,7 +148,7 @@ GuiTabularDialog::GuiTabularDialog(LyXView & lv)
 }
 
 
-ControlTabular & GuiTabularDialog::controller() const
+ControlTabular & GuiTabularDialog::controller()
 {
        return static_cast<ControlTabular &>(GuiDialog::controller());
 }
@@ -600,7 +600,7 @@ void GuiTabularDialog::update_borders()
 }
 
 
-void GuiTabularDialog::update_contents()
+void GuiTabularDialog::updateContents()
 {
        controller().initialiseParams(string());
 
index 41893feda34be95944da80c43c5bae241b45f63c..2e643f9097c0f01ccb0d31ef7b532100e681db54 100644 (file)
@@ -71,13 +71,13 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlTabular & controller() const;
+       ControlTabular & controller();
        ///
        bool isValid() { return true; }
        /// update borders
        void update_borders();
        /// update
-       void update_contents();
+       void updateContents();
        /// save some values before closing the gui
        void closeGUI();
 };
index 045807be3db2886e2dd2371e2a11a50a0a06330b..a4394388ab87bfecd03644974410beea09d71045 100644 (file)
@@ -47,7 +47,7 @@ GuiTabularCreateDialog::GuiTabularCreateDialog(LyXView & lv)
 }
 
 
-ControlTabularCreate & GuiTabularCreateDialog::controller() const
+ControlTabularCreate & GuiTabularCreateDialog::controller()
 {
        return static_cast<ControlTabularCreate &>(GuiDialog::controller());
 }
index 8387b43befd76fba90b36f490fd9e96889ac55fd..e620f804a3d1740c3837949cc2b6a59f0ae6e764 100644 (file)
@@ -31,7 +31,7 @@ private Q_SLOTS:
        void rowsChanged(int);
 
        /// parent controller
-       ControlTabularCreate & controller() const;
+       ControlTabularCreate & controller();
 
 private:
        /// Apply changes
index 95220c01561a626a36c458e84089c1aa7dcabed4..26a0d85d06dd2632cb9087d60bbf2ae0948326ba 100644 (file)
@@ -60,7 +60,7 @@ GuiTexinfoDialog::GuiTexinfoDialog(LyXView & lv)
 }
 
 
-ControlTexinfo & GuiTexinfoDialog::controller() const
+ControlTexinfo & GuiTexinfoDialog::controller()
 {
        return static_cast<ControlTexinfo &>(GuiDialog::controller());
 }
index 34de13dab065757755d49a7131d6aea09d1a6d35..bd3ea34e3e51e584ed43a368152fcb651445228d 100644 (file)
@@ -42,7 +42,7 @@ private:
        ///
        void closeEvent(QCloseEvent * e);
        ///
-       ControlTexinfo & controller() const;
+       ControlTexinfo & controller();
        ///
        void updateStyles(ControlTexinfo::texFileSuffix);
        ///
index fd80b5f1f60ce2e9a2876ee1cd0159835b43b62c..8db29843a8f68056bd2a1f8140d02ebed92520c1 100644 (file)
@@ -64,7 +64,7 @@ GuiThesaurusDialog::GuiThesaurusDialog(LyXView & lv)
 }
 
 
-ControlThesaurus & GuiThesaurusDialog::controller() const
+ControlThesaurus & GuiThesaurusDialog::controller()
 {
        return static_cast<ControlThesaurus &>(GuiDialog::controller());
 }
@@ -91,7 +91,7 @@ void GuiThesaurusDialog::entryChanged()
 void GuiThesaurusDialog::selectionChanged()
 {
        int const col = meaningsTV->currentColumn();
-       if (col<0 || readOnly())
+       if (col < 0 || controller().isBufferReadonly())
                return;
 
        replaceED->setText(meaningsTV->currentItem()->text(col));
@@ -138,7 +138,7 @@ void GuiThesaurusDialog::updateLists()
 }
 
 
-void GuiThesaurusDialog::update_contents()
+void GuiThesaurusDialog::updateContents()
 {
        entryED->setText(toqstr(controller().text()));
        replaceED->setText("");
index e21bab5a2abd38676e85824af62d942850c8f1ba..297e20daf28d4a1b28ea5a22f33b5c3d7a87f484 100644 (file)
@@ -39,9 +39,9 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlThesaurus & controller() const;
+       ControlThesaurus & controller();
        /// update
-       void update_contents();
+       void updateContents();
        ///
        void updateLists();
 };
index a9b6e5025e36bb2bb19ce509f5a4cef92dcd25ca..2662ecaf09beccfc25038c0cc257c2bb853c0f87 100644 (file)
@@ -51,7 +51,7 @@ GuiURLDialog::GuiURLDialog(LyXView & lv)
 }
 
 
-ControlCommand & GuiURLDialog::controller() const
+ControlCommand & GuiURLDialog::controller()
 {
        return static_cast<ControlCommand &>(GuiDialog::controller());
 }
@@ -71,7 +71,7 @@ void GuiURLDialog::closeEvent(QCloseEvent * e)
 
 
 
-void GuiURLDialog::update_contents()
+void GuiURLDialog::updateContents()
 {
        InsetCommandParams const & params = controller().params();
 
index c9159dbfac91b5529ad9924d430dfd874e572dd9..bb64e77594baf0bf5b3914ef4f220de615148488 100644 (file)
@@ -32,13 +32,13 @@ public Q_SLOTS:
 private:
        void closeEvent(QCloseEvent *);
        /// parent controller
-       ControlCommand & controller() const;
+       ControlCommand & controller();
        ///
        bool isValid();
        /// apply dialog
        void applyView();
        /// update dialog
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 13068b0d0dc666015ad247af7622078543575176..e3332c95a82d2004d5807c011220a4498aadec66 100644 (file)
@@ -87,7 +87,7 @@ GuiVSpaceDialog::GuiVSpaceDialog(LyXView & lv)
 }
 
 
-ControlVSpace & GuiVSpaceDialog::controller() const
+ControlVSpace & GuiVSpaceDialog::controller()
 {
        return static_cast<ControlVSpace &>(GuiDialog::controller());
 }
@@ -181,7 +181,7 @@ void GuiVSpaceDialog::applyView()
 }
 
 
-void GuiVSpaceDialog::update_contents()
+void GuiVSpaceDialog::updateContents()
 {
        setWidgetsFromVSpace(controller().params(),
                spacingCO, valueLE, unitCO, keepCB);
index 12c2978b82b1c47bd0bc57fee3b4b8085ee9302d..fff6041a72239040d9d0c0a2e821948a73e6d5d6 100644 (file)
@@ -35,11 +35,11 @@ private Q_SLOTS:
 
 private:
        /// parent controller
-       ControlVSpace & controller() const;
+       ControlVSpace & controller();
        /// Apply from dialog
        void applyView();
        /// Update the dialog
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 997fdf181e734be3fc5d7cc1a1e8337c27d64adb..21122c3b3489deb7f89c5cf970b3510e05ea5c60 100644 (file)
@@ -62,7 +62,7 @@ GuiWrapDialog::GuiWrapDialog(LyXView & lv)
 }
 
 
-ControlWrap & GuiWrapDialog::controller() const
+ControlWrap & GuiWrapDialog::controller()
 {
        return static_cast<ControlWrap &>(GuiDialog::controller());
 }
@@ -118,7 +118,7 @@ static string const numtostr(double val)
 }
 
 
-void GuiWrapDialog::update_contents()
+void GuiWrapDialog::updateContents()
 {
        InsetWrapParams & params = controller().params();
 
index b06b686b746880d40e230d27d93e004f96a3eb1d..9fa79f2e5b1467b15b1b349268ece8d53ab6babf 100644 (file)
@@ -32,11 +32,11 @@ private Q_SLOTS:
 private:
        void closeEvent(QCloseEvent * e);
        /// parent controller
-       ControlWrap & controller() const;
+       ControlWrap & controller();
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
 };
 
 } // namespace frontend
index 575bdf01463bb1fdd5c2d420ba3fbcad47a4ab2b..d6ee69ee2ab2bca5ddc2c99ba8ca18e1de0a3a66 100644 (file)
@@ -51,7 +51,7 @@ void lengthAutoToWidgets(QLineEdit * input, LengthCombo * combo,
 //FIXME setAutoTextCB should really take an argument, as indicated, that
 //determines what text is to be written for "auto". But making
 //that work involves more extensive revisions than we now want
-//to make, since "auto" also appears in update_contents() (see
+//to make, since "auto" also appears in updateContents() (see
 //GuiGraphics.cpp).
 //The right way to do this, I think, would be to define a class
 //checkedLengthSet (and a partnering labeledLengthSete) that encapsulated