#include "buffer.h"
#include "gettext.h"
#include "support/filetools.h"
+#include "support/lyxlib.h"
#include "lyxfunc.h"
#include "LyXView.h"
+using std::endl;
+using std::pair;
LyXVC::LyXVC()
{
}
lyxerr[Debug::LYXVC] << "LyXVC: registrer" << endl;
- pair<bool, string> tmp = askForText(_("LyX VC: Initial description"),
- _("(no initial description)"));
+ pair<bool, string> tmp =
+ askForText(_("LyX VC: Initial description"),
+ _("(no initial description)"));
if (!tmp.first || tmp.second.empty()) {
// should we insist on checking tmp.second.empty()?
lyxerr[Debug::LYXVC] << "LyXVC: user cancelled" << endl;
void LyXVC::toggleReadOnly()
{
- switch (vcs->stat()) {
+ switch (vcs->status()) {
case VCS::UNLOCKED:
lyxerr[Debug::LYXVC] << "LyXVC: toggle to locked" << endl;
checkOut();
fl_raise_form(browser->LaTeXLog);
} else {
fl_show_form(browser->LaTeXLog,
- FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
+ FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT,
_("VC History"));
if (ow < 0) {
ow = browser->LaTeXLog->w;
void LyXVC::showLog()
{
- string tmpf = tmpnam(0);
+ string tmpf = lyx::tempName();
vcs->getLog(tmpf);
viewLog(tmpf);
- unlink(tmpf.c_str());
+ lyx::unlink(tmpf);
}