kalgebra
consolehtml.cpp
Go to the documentation of this file.
65 m_css +=QString("\thtml { background-color: %1; }\n").arg(p.color(QPalette::Active, QPalette::Base).name());
66 m_css +="\t.error { border-style: solid; border-width: 1px; border-color: #ff3b21; background-color: #ffe9c4; padding:7px;}\n";
67 m_css +="\t.last { border-style: solid; border-width: 1px; border-color: #2020ff; background-color: #e0e0ff; padding:7px;}\n";
139 m_htmlLog += i18n("<ul class='error'>Error: <b>%1</b><li>%2</li></ul>", Qt::escape(input), a.errors().join("</li>\n<li>"));
185 m_htmlLog += i18n("<ul class='error'>Error: Could not load %1. <br /> %2</ul>", path.pathOrUrl(), a.errors().join("<br/>"));
245 code += "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n\t<title> :) </title>\n";
276 KAction *act=new KAction(KIcon("edit-paste"), i18n("Paste \"%1\" to input", selectedText()), &popup);
void clear()
int scrollBarMaximum(Qt::Orientation orientation) const
virtual QString id() const =0
QString name() const
bool hasSelection() const
const QColor & color(ColorGroup group, ColorRole role) const
void linkClicked(const QUrl &url)
bool addOperation(const Analitza::Expression &e, const QString &input)
Adds the operation defined by the expression e.
Definition: consolehtml.cpp:97
QString selectedText() const
void clear()
void setContent(const QByteArray &data, const QString &mimeType, const QUrl &baseUrl)
void setRenderHint(QPainter::RenderHint hint, bool enabled)
void setLinkDelegationPolicy(LinkDelegationPolicy policy)
QString tempPath()
QClipboard * clipboard()
void setAutoRemove(bool b)
bool isEmpty() const
QWebFrame * mainFrame() const
void setScrollBarValue(Qt::Orientation orientation, int value)
virtual bool matchesExpression(const Analitza::Expression &exp, const Analitza::ExpressionType &functype) const =0
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual void contextMenuEvent(QContextMenuEvent *ev)
Definition: consolehtml.cpp:271
virtual void close()
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
QString fileName() const
QUrl url() const
virtual QString caption() const =0
Definition: consolehtml.h:28
QString escape(const QString &plain)
virtual void triggerOption(const Analitza::Expression &exp)=0
QWebPage * page() const
void setText(const QString &text, Mode mode)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool open()
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString queryItemValue(const QString &key) const
Simplifies the expression, tries to simplify when sees a variable not defined.
Definition: consolehtml.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.