mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Constify some functions and correct a typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8e95585bbd
commit
defc7ebac5
@ -226,7 +226,7 @@ void LyXVC::toggleReadOnly()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool LyXVC::inUse()
|
bool LyXVC::inUse() const
|
||||||
{
|
{
|
||||||
if (vcs)
|
if (vcs)
|
||||||
return true;
|
return true;
|
||||||
@ -268,25 +268,25 @@ string const LyXVC::getLogFile() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool LyXVC::checkOutEnabled()
|
bool LyXVC::checkOutEnabled() const
|
||||||
{
|
{
|
||||||
return vcs && vcs->checkOutEnabled();
|
return vcs && vcs->checkOutEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool LyXVC::checkInEnabled()
|
bool LyXVC::checkInEnabled() const
|
||||||
{
|
{
|
||||||
return vcs && vcs->checkInEnabled();
|
return vcs && vcs->checkInEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool LyXVC::lockingToggleEnabled()
|
bool LyXVC::lockingToggleEnabled() const
|
||||||
{
|
{
|
||||||
return vcs && vcs->lockingToggleEnabled();
|
return vcs && vcs->lockingToggleEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool LyXVC::undoLastEnabled()
|
bool LyXVC::undoLastEnabled() const
|
||||||
{
|
{
|
||||||
return vcs && vcs->undoLastEnabled();
|
return vcs && vcs->undoLastEnabled();
|
||||||
}
|
}
|
||||||
|
14
src/LyXVC.h
14
src/LyXVC.h
@ -70,25 +70,25 @@ public:
|
|||||||
/// Unlock and commit changes. Returns log.
|
/// Unlock and commit changes. Returns log.
|
||||||
std::string checkIn();
|
std::string checkIn();
|
||||||
/// Does the current VC supports this operation?
|
/// Does the current VC supports this operation?
|
||||||
bool checkInEnabled();
|
bool checkInEnabled() const;
|
||||||
|
|
||||||
/// Lock/update and prepare to edit document. Returns log.
|
/// Lock/update and prepare to edit document. Returns log.
|
||||||
std::string checkOut();
|
std::string checkOut();
|
||||||
/// Does the current VC supports this operation?
|
/// Does the current VC supports this operation?
|
||||||
bool checkOutEnabled();
|
bool checkOutEnabled() const;
|
||||||
|
|
||||||
/// Synchronize the whole archive with repository
|
/// Synchronize the whole archive with repository
|
||||||
std::string repoUpdate();
|
std::string repoUpdate();
|
||||||
/// Does the current VC supports this operation?
|
/// Does the current VC supports this operation?
|
||||||
bool repoUpdateEnabled();
|
bool repoUpdateEnabled() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle locking property of the edited file,
|
* Toggle locking property of the edited file,
|
||||||
* i.e. whether the file uses locking mechanism.
|
* i.e. whether the file uses locking mechanism.
|
||||||
*/
|
*/
|
||||||
std::string lockingToggle();
|
std::string lockingToggle();
|
||||||
/// Does the current VC supports this operation?
|
/// Does the current VC support this operation?
|
||||||
bool lockingToggleEnabled();
|
bool lockingToggleEnabled() const;
|
||||||
|
|
||||||
/// Revert to last version
|
/// Revert to last version
|
||||||
void revert();
|
void revert();
|
||||||
@ -96,7 +96,7 @@ public:
|
|||||||
/// Undo last check-in.
|
/// Undo last check-in.
|
||||||
void undoLast();
|
void undoLast();
|
||||||
/// Does the current VC supports this operation?
|
/// Does the current VC supports this operation?
|
||||||
bool undoLastEnabled();
|
bool undoLastEnabled() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a log file and return the filename.
|
* Generate a log file and return the filename.
|
||||||
@ -109,7 +109,7 @@ public:
|
|||||||
void toggleReadOnly();
|
void toggleReadOnly();
|
||||||
|
|
||||||
/// Is the document under administration by VCS?
|
/// Is the document under administration by VCS?
|
||||||
bool inUse();
|
bool inUse() const;
|
||||||
|
|
||||||
/// Returns the version number.
|
/// Returns the version number.
|
||||||
//std::string const & version() const;
|
//std::string const & version() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user