#include "GuiApplication.h"
#include "qt_helpers.h"
-#include "gettext.h"
#include "Lexer.h"
-#include <QCloseEvent>
+#include "support/docstring.h"
+#include "support/gettext.h"
+
#include <QTextBrowser>
#include <QSyntaxHighlighter>
#include <QClipboard>
#include <fstream>
#include <sstream>
-using std::istringstream;
-using std::ostream;
-using std::string;
-
+using namespace std;
+using namespace lyx::support;
namespace lyx {
namespace frontend {
-using support::FileName;
-
/////////////////////////////////////////////////////////////////////
//
// LogHighlighter
//
/////////////////////////////////////////////////////////////////////
-GuiLog::GuiLog(LyXView & lv)
- : GuiDialog(lv, "log"), type_(LatexLog)
+GuiLog::GuiLog(GuiView & lv)
+ : 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()));
bool GuiLog::initialiseParams(string const & data)
{
istringstream is(data);
- Lexer lex(0,0);
+ Lexer lex;
lex.setStream(is);
string logtype, logfile;
}
-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;
}
-Dialog * createGuiLog(LyXView & lv) { return new GuiLog(lv); }
+Dialog * createGuiLog(GuiView & lv) { return new GuiLog(lv); }
} // namespace frontend