#include "support/gettext.h"
#include "Lexer.h"
-#include <QCloseEvent>
#include <QTextBrowser>
#include <QSyntaxHighlighter>
#include <QClipboard>
#include <sstream>
using namespace std;
+using namespace lyx::support;
namespace lyx {
namespace frontend {
-using support::FileName;
-
/////////////////////////////////////////////////////////////////////
//
// LogHighlighter
/////////////////////////////////////////////////////////////////////
GuiLog::GuiLog(GuiView & lv)
- : GuiDialog(lv, "log"), type_(LatexLog)
+ : GuiDialog(lv, "log", qt_("LaTeX Log")), type_(LatexLog)
{
setupUi(this);
}
-void GuiLog::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiLog::updateContents()
{
- setViewTitle(title());
+ setTitle(toqstr(title()));
- std::ostringstream ss;
+ ostringstream ss;
getContents(ss);
logTB->setPlainText(toqstr(ss.str()));
}
-void GuiLog::getContents(std::ostream & ss) const
+void GuiLog::getContents(ostream & ss) const
{
- std::ifstream in(logfile_.toFilesystemEncoding().c_str());
+ ifstream in(logfile_.toFilesystemEncoding().c_str());
bool success = false;