• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • Analitza
  • ExpressionEdit
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Analitza::ExpressionEdit Class Reference
AnalitzaGUI

#include <expressionedit.h>

Inheritance diagram for Analitza::ExpressionEdit:
Inheritance graph
[legend]

Public Slots

void insertText (const QString &text)
 

Signals

void returnPressed ()
 
void signalHelper (QString)
 

Public Member Functions

 ExpressionEdit (QWidget *parent=0, AlgebraHighlighter::Mode ini=AlgebraHighlighter::Autodetect)
 
 ~ExpressionEdit ()
 
QString ans () const
 
bool autocomplete ()
 
Analitza::Expression expression () const
 
bool isCorrect () const
 
bool isMathML () const
 
AlgebraHighlighter::Mode mode ()
 
void setAnalitza (Analitza::Analyzer *in)
 
void setAns (const QString &ans)
 
void setAutocomplete (bool a)
 
void setCorrect (bool cor)
 
void setExamples (const QStringList &ex)
 
void setExpression (const Analitza::Expression &e)
 
void setMode (AlgebraHighlighter::Mode en)
 
void setText (const QString &str)
 
QString text () const
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *e)
 

Detailed Description

A widget for manipulate mathemathical expressions.

The expression edit widget is the one where we will input our expressions.

Definition at line 50 of file expressionedit.h.

Constructor & Destructor Documentation

Analitza::ExpressionEdit::ExpressionEdit ( QWidget *  parent = 0,
AlgebraHighlighter::Mode  ini = AlgebraHighlighter::Autodetect 
)
explicit

Constructor.

Creates a new ExpressionEdit.

Parameters
parentis the widget parent.
inispecifies what input format is going to expect the highlighting.
Analitza::ExpressionEdit::~ExpressionEdit ( )

Destructor.

Member Function Documentation

QString Analitza::ExpressionEdit::ans ( ) const
inline

Returns the string that will be entered when the first operator is pressed.

Definition at line 97 of file expressionedit.h.

bool Analitza::ExpressionEdit::autocomplete ( )

Returns whether autocompletion will be used.

void Analitza::ExpressionEdit::contextMenuEvent ( QContextMenuEvent *  e)
protected

Inherited from QTextEdit, just deals with the menu.

Analitza::Expression Analitza::ExpressionEdit::expression ( ) const

Returns the expression we have in the text.

void Analitza::ExpressionEdit::insertText ( const QString &  text)
slot

Inserts text text where the cursor is and selects it.

bool Analitza::ExpressionEdit::isCorrect ( ) const

Checks whether it has been set to correct.

bool Analitza::ExpressionEdit::isMathML ( ) const

Returns whether there is MathML on the widget.

AlgebraHighlighter::Mode Analitza::ExpressionEdit::mode ( )
inline

Returns the ExpressionEdit input mode.

Definition at line 64 of file expressionedit.h.

void Analitza::ExpressionEdit::returnPressed ( )
signal

Emits that a return has been pressed.

void Analitza::ExpressionEdit::setAnalitza ( Analitza::Analyzer *  in)

Sets an Analyzer in module associated to the ExpressionEdit.

It is used to autocomplete variables.

void Analitza::ExpressionEdit::setAns ( const QString &  ans)
inline

Sets the string ans that will be entered when an operator is pressed.

Definition at line 94 of file expressionedit.h.

void Analitza::ExpressionEdit::setAutocomplete ( bool  a)

Sets whether autocompletion will be used.

void Analitza::ExpressionEdit::setCorrect ( bool  cor)

Sets whether it is correct.

Changes the background color.

void Analitza::ExpressionEdit::setExamples ( const QStringList &  ex)
inline

Sets the examples to be shown in the context menu.

Definition at line 106 of file expressionedit.h.

void Analitza::ExpressionEdit::setExpression ( const Analitza::Expression &  e)

Sets an expression to the input box.

void Analitza::ExpressionEdit::setMode ( AlgebraHighlighter::Mode  en)

Sets the ExpressionEdit input mode.

void Analitza::ExpressionEdit::setText ( const QString &  str)
inline

Sets the expression string str we have.

Definition at line 85 of file expressionedit.h.

void Analitza::ExpressionEdit::signalHelper ( QString  )
signal

Deprecated.

QString Analitza::ExpressionEdit::text ( ) const
inline

Returns the expression string that we have.

Definition at line 82 of file expressionedit.h.


The documentation for this class was generated from the following file:
  • expressionedit.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal