]> git.lyx.org Git - features.git/commitdiff
Dialog::bufferFilepath -> Dialog::bufferFilePath
authorPavel Sanda <sanda@lyx.org>
Wed, 21 Apr 2010 01:19:30 +0000 (01:19 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 21 Apr 2010 01:19:30 +0000 (01:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34241 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Dialog.cpp
src/frontends/qt4/Dialog.h
src/frontends/qt4/GuiBibtex.cpp
src/frontends/qt4/GuiCompare.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/GuiPrint.cpp

index abc6007deb06393d2c09cb2aebb8de422d9029b0..6280ea1b6840c6b7acdcf41c740fc964fcce6be5 100644 (file)
@@ -91,7 +91,7 @@ bool Dialog::isBufferReadonly() const
 }
 
 
-QString Dialog::bufferFilepath() const
+QString Dialog::bufferFilePath() const
 {
        return toqstr(buffer().filePath());
 }
index 34232d29a2b77d0d6615745d0417e7dcbd8a5db3..10d1af5a8ff6cc7affa235336cfac3bbe3b97deb 100644 (file)
@@ -235,7 +235,7 @@ public:
        //@{
        bool isBufferAvailable() const;
        bool isBufferReadonly() const;
-       QString bufferFilepath() const;
+       QString bufferFilePath() const;
        //@}
 
        /// The type of the current buffer.
index 09aa18cc5ba237734822b87c1efbc88cd010ec80..7109bea2b185433b8eb85c2ed300df861b28a8a5 100644 (file)
@@ -435,7 +435,7 @@ QString GuiBibtex::browseBib(QString const & in_name) const
        QString const label1 = qt_("Documents|#o#O");
        QString const dir1 = toqstr(lyxrc.document_path);
        QStringList const filter(qt_("BibTeX Databases (*.bib)"));
-       return browseRelFile(in_name, bufferFilepath(),
+       return browseRelFile(in_name, bufferFilePath(),
                qt_("Select a BibTeX database to add"), filter, false, label1, dir1);
 }
 
@@ -445,7 +445,7 @@ QString GuiBibtex::browseBst(QString const & in_name) const
        QString const label1 = qt_("Documents|#o#O");
        QString const dir1 = toqstr(lyxrc.document_path);
        QStringList const filter(qt_("BibTeX Styles (*.bst)"));
-       return browseRelFile(in_name, bufferFilepath(),
+       return browseRelFile(in_name, bufferFilePath(),
                qt_("Select a BibTeX style"), filter, false, label1, dir1);
 }
 
index 09139597469be938ccc75fe36574e6d08d32897f..79a6832f0d60ffb8b007a2209caa5dd8e56d3e53 100644 (file)
@@ -159,7 +159,7 @@ QString GuiCompare::browse(QString const & in_name) const
        
        QString filename;
        if (lyxview().documentBufferView()) {
-               QString path = bufferFilepath();
+               QString path = bufferFilePath();
                filename = browseRelFile(in_name, path, title, filters, false, 
                        qt_("Documents|#o#O"), toqstr(lyxrc.document_path));
        } else {
@@ -274,7 +274,7 @@ Buffer const * GuiCompare::bufferFromFileName(string const & file) const
        if (FileName::isAbsolute(file))
                fname.set(file);
        else if (lyxview().documentBufferView())
-               fname = support::makeAbsPath(file, fromqstr(bufferFilepath()));
+               fname = support::makeAbsPath(file, fromqstr(bufferFilePath()));
 
        if (fname.empty()
                        || (!fname.exists() && !theBufferList().getBuffer(fname))) {
index 21a3e8f5c2ea930be00395569374939dd2ed4d46..8b5134a6ea595fc5edcdc47069944d06db0e5c39 100644 (file)
@@ -1639,7 +1639,7 @@ void GuiDocument::browseLayout()
        QString const label1 = qt_("Layouts|#o#O");
        QString const dir1 = toqstr(lyxrc.document_path);
        QStringList const filter(qt_("LyX Layout (*.layout)"));
-       QString file = browseRelFile(QString(), bufferFilepath(),
+       QString file = browseRelFile(QString(), bufferFilePath(),
                qt_("Local layout file"), filter, false,
                label1, dir1);
 
@@ -1647,7 +1647,7 @@ void GuiDocument::browseLayout()
                return;
 
        FileName layoutFile = support::makeAbsPath(fromqstr(file),
-               fromqstr(bufferFilepath()));
+               fromqstr(bufferFilePath()));
        
        int const ret = Alert::prompt(_("Local layout file"),
                _("The layout file you have selected is a local layout\n"
index 8f3402f20908b8decec5c2f4a92627e9eb994a3d..59916545006902939115291da44e1d4b76492738 100644 (file)
@@ -296,7 +296,7 @@ void GuiExternal::getbbClicked()
        if (filename.empty())
                return;
 
-       FileName const abs_file(support::makeAbsPath(filename, fromqstr(bufferFilepath())));
+       FileName const abs_file(support::makeAbsPath(filename, fromqstr(bufferFilePath())));
 
        // try to get it from the file, if possible
        string bb = readBB_from_PSFile(abs_file);
@@ -460,7 +460,7 @@ static void getCrop(external::ClipData & data,
 void GuiExternal::updateContents()
 {
        string const name =
-               params_.filename.outputFileName(fromqstr(bufferFilepath()));
+               params_.filename.outputFileName(fromqstr(bufferFilePath()));
        fileED->setText(toqstr(name));
 
        int index = 0;
@@ -570,7 +570,7 @@ void GuiExternal::updateTemplate()
 
 void GuiExternal::applyView()
 {
-       params_.filename.set(fromqstr(fileED->text()), fromqstr(bufferFilepath()));
+       params_.filename.set(fromqstr(fileED->text()), fromqstr(bufferFilePath()));
        params_.settemplate(getTemplate(externalCO->currentIndex()).lyxName);
 
        params_.draft = draftCB->isChecked();
@@ -633,7 +633,7 @@ QString GuiExternal::browse(QString const & input,
                                     QString const & template_name) const
 {
        QString const title = qt_("Select external file");
-       QString const bufpath = bufferFilepath();
+       QString const bufpath = bufferFilePath();
        QStringList const filter = templateFilters(template_name);
 
        QString const label1 = qt_("Documents|#o#O");
index d9fa54a5340075558545777fed7c4cb1fd4674f4..de5c01ff9be369c6d68e89a41ff30358c5b4b289 100644 (file)
@@ -495,9 +495,9 @@ void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
        // set the right default unit
        Length::UNIT const defaultUnit = Length::defaultUnit();
 
-       //lyxerr << bufferFilepath();
+       //lyxerr << bufferFilePath();
        string const name =
-               igp.filename.outputFileName(fromqstr(bufferFilepath()));
+               igp.filename.outputFileName(fromqstr(bufferFilePath()));
        filename->setText(toqstr(name));
 
        // set the bounding box values
@@ -647,7 +647,7 @@ void GuiGraphics::applyView()
 {
        InsetGraphicsParams & igp = params_;
 
-       igp.filename.set(fromqstr(filename->text()), fromqstr(bufferFilepath()));
+       igp.filename.set(fromqstr(filename->text()), fromqstr(bufferFilePath()));
 
        // the bb section
        igp.bb.erase();
@@ -794,7 +794,7 @@ QString GuiGraphics::browse(QString const & in_name) const
        if (!clip.isDirectory())
                clipdir = addName(package().system_support().absFileName(), "clipart");
 
-       return browseRelFile(in_name, bufferFilepath(),
+       return browseRelFile(in_name, bufferFilePath(),
                title, fileFilters(QString()), false, 
                qt_("Clipart|#C#c"), toqstr(clipdir),
                qt_("Documents|#o#O"), toqstr(lyxrc.document_path));
@@ -803,7 +803,7 @@ QString GuiGraphics::browse(QString const & in_name) const
 
 string GuiGraphics::readBoundingBox(string const & file)
 {
-       FileName const abs_file = support::makeAbsPath(file, fromqstr(bufferFilepath()));
+       FileName const abs_file = support::makeAbsPath(file, fromqstr(bufferFilePath()));
 
        // try to get it from the file, if possible. Zipped files are
        // unzipped in the readBB_from_PSFile-Function
@@ -832,7 +832,7 @@ string GuiGraphics::readBoundingBox(string const & file)
 bool GuiGraphics::isFileNameValid(string const & fname) const
 {
        // It may be that the filename is relative.
-       return support::makeAbsPath(fname, fromqstr(bufferFilepath())).isReadableFile();
+       return support::makeAbsPath(fname, fromqstr(bufferFilePath())).isReadableFile();
 }
 
 
index 32b3c8f5641e420439f3ace26888b1a4eefbcdb0..120d1d2c980853a27a2f08299a970cdc464b2729 100644 (file)
@@ -84,7 +84,7 @@ void GuiPrint::change_adaptor()
 void GuiPrint::browseClicked()
 {
        QString file =
-               browseRelFile(QString(), bufferFilepath(), qt_("Print to file"),
+               browseRelFile(QString(), bufferFilePath(), qt_("Print to file"),
                             QStringList(qt_("PostScript files (*.ps)")), true);
        if (!file.isEmpty()) {
                fileED->setText(file);