return areas;
}
+
void GuiView::setCursorShapes(Qt::CursorShape shape)
{
QVector<GuiWorkArea*> areas = d.guiWorkAreas();
}
}
+
void GuiView::restoreCursorShapes()
{
QVector<GuiWorkArea*> areas = d.guiWorkAreas();
}
}
+
void GuiView::saveCursorShapes()
{
d.orig_cursors_.clear();
}
}
+
void GuiView::indicateProcessing()
{
if (d.indicates_processing_) {
d.indicates_processing_ = !d.indicates_processing_;
}
+
void GuiView::processingThreadStarted()
{
saveCursorShapes();
d.processing_cursor_timer_.start();
}
+
void GuiView::processingThreadFinished()
{
#if (QT_VERSION >= 0x040400)
: bformat(_("Error " + msg + " format: %1$s"), from_utf8(format));
}
+
docstring GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
{
bool (Buffer::* mem_func)(std::string const &, bool, bool) const = &Buffer::doExport;
return runAndDestroy(bind(mem_func, buffer, _1, true, _2), orig, buffer, format, "export");
}
+
docstring GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
{
bool (Buffer::* mem_func)(std::string const &, bool, bool) const = &Buffer::doExport;
return runAndDestroy(bind(mem_func, buffer, _1, false, _2), orig, buffer, format, "export");
}
+
docstring GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
{
bool(Buffer::* mem_func)(std::string const &, bool) const = &Buffer::preview;
// not used, but the linker needs them
-docstring GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
+docstring GuiView::GuiViewPrivate::compileAndDestroy(
+ Buffer const *, Buffer *, string const &)
{
return docstring();
}
-docstring GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
+
+docstring GuiView::GuiViewPrivate::exportAndDestroy(
+ Buffer const *, Buffer *, string const &)
{
return docstring();
}
-docstring GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, Buffer * buffer, string const & format)
+
+docstring GuiView::GuiViewPrivate::previewAndDestroy(
+ Buffer const *, Buffer *, string const &)
{
return docstring();
}
bool (Buffer::*syncFunc)(string const &, bool, bool) const,
bool (Buffer::*previewFunc)(string const &, bool) const)
{
- if (!used_buffer) {
+ if (!used_buffer)
return false;
- }
+
gv_->processingThreadStarted();
string format = argument;
- if (format.empty()) {
+ if (format.empty())
format = used_buffer->getDefaultOutputFormat();
- }
+
#if EXPORT_in_THREAD && (QT_VERSION >= 0x040400)
if (!msg.empty()) {
progress_->clearMessages();