rename VCS::stat() to CVS::status()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@737 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-05-17 16:42:35 +00:00
parent fa6aa115e7
commit cdaf9a5ad5
5 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,11 @@
2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyxvc.C (toggleReadOnly): use VCS::status() instead of stat()
* src/vc-backend.*: renamed stat() to status() and vcstat to
vcstatus. It happens that Tru64 Unix 5.0 has stat() as a macro and
compilation broke. The new name seems more relevant, anyway.
2000-05-17 Juergen Vigna <jug@sad.it>
* src/BufferView2.C (removeAutoInsets): fixed use of AutoDeleteInsets

View File

@ -2272,7 +2272,9 @@ void Buffer::makeLinuxDocFile(string const & fname, int column)
LyXLayout const & style =
textclasslist.Style(users->buffer()->params.textclass,
par->layout);
#ifdef WITH_WARNINGS
#warning please check if this call is really needed!!!
#endif
// par->AutoDeleteInsets();
// treat <toc> as a special case for compatibility with old code
@ -2873,7 +2875,9 @@ void Buffer::makeDocBookFile(string const & fname, int column)
LyXLayout const & style =
textclasslist.Style(users->buffer()->params.textclass,
par->layout);
#ifdef WITH_WARNINGS
#warning please check if this call is really needed!!!
#endif
// par->AutoDeleteInsets();
// environment tag closing

View File

@ -185,7 +185,7 @@ void LyXVC::undoLast()
void LyXVC::toggleReadOnly()
{
switch (vcs->stat()) {
switch (vcs->status()) {
case VCS::UNLOCKED:
lyxerr[Debug::LYXVC] << "LyXVC: toggle to locked" << endl;
checkOut();

View File

@ -106,7 +106,7 @@ void RCS::scanMaster()
// get locker here
if (contains(token, ";")) {
locker_ = "Unlocked";
vcstat = UNLOCKED;
vcstatus = UNLOCKED;
continue;
}
string tmpt, s1, s2;
@ -118,7 +118,7 @@ void RCS::scanMaster()
// s2 is user, and s1 is version
if (s1 == version_) {
locker_ = s2;
vcstat = LOCKED;
vcstatus = LOCKED;
break;
}
} while (!contains(tmpt, ";"));
@ -258,12 +258,12 @@ void CVS::scanMaster()
<< mod_date << "'" << endl;
if (file_date == mod_date) {
locker_ = "Unlocked";
vcstat = UNLOCKED;
vcstatus = UNLOCKED;
} else {
// Here we should also to some more checking
// to see if there are conflicts or not.
locker_ = "Locked";
vcstat = LOCKED;
vcstatus = LOCKED;
}
break;
}

View File

@ -47,7 +47,7 @@ public:
///
Buffer * owner() const { return owner_; }
///
VCStatus stat() const { return vcstat; }
VCStatus status() const { return vcstatus; }
protected:
///
static int doVCCommand(string const &, string const &);
@ -58,7 +58,7 @@ protected:
string master_;
/// The status of the VC controlled file.
VCStatus vcstat;
VCStatus vcstatus;
/** The version of the VC file. I am not sure if this can be a
string of if it must be a