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

kalgebra

Public Types | Public Slots | Signals | Public Member Functions | List of all members
ConsoleHtml Class Reference

#include <consolehtml.h>

Inheritance diagram for ConsoleHtml:
Inheritance graph
[legend]

Public Types

enum  ConsoleMode { Evaluation, Calculation }
 

Public Slots

bool addOperation (const Analitza::Expression &e, const QString &input)
 
void clear ()
 
void copy () const
 
bool loadScript (const KUrl &path)
 
void openClickedUrl (const QUrl &url)
 
bool saveLog (const KUrl &path) const
 
bool saveScript (const KUrl &path) const
 

Signals

void changed ()
 
void paste (const QString &code)
 
void status (const QString &msg)
 

Public Member Functions

 ConsoleHtml (QWidget *parent=0)
 
virtual ~ConsoleHtml ()
 
void addOptionsObserver (InlineOptions *opt)
 
Analitza::Analyzer * analitza ()
 
virtual void contextMenuEvent (QContextMenuEvent *ev)
 
ConsoleMode mode () const
 
void setMode (ConsoleMode newMode)
 

Detailed Description

The Console widget is able to receive an operation, solve it and show the value.

It also is able to load scripts and save logs.

Author
Aleix Pol Gonzalez

Definition at line 45 of file consolehtml.h.

Member Enumeration Documentation

enum ConsoleHtml::ConsoleMode

This enumeration controles the way the console will calculate and show his results.

Enumerator
Evaluation 

Simplifies the expression, tries to simplify when sees a variable not defined.

Calculation 

Calculates everything, if it finds a not defined variable shows an error.

Definition at line 50 of file consolehtml.h.

Constructor & Destructor Documentation

ConsoleHtml::ConsoleHtml ( QWidget *  parent = 0)

Constructor.

Creates a console widget.

Definition at line 44 of file consolehtml.cpp.

ConsoleHtml::~ConsoleHtml ( )
virtual

Destructor.

Definition at line 55 of file consolehtml.cpp.

Member Function Documentation

bool ConsoleHtml::addOperation ( const Analitza::Expression &  e,
const QString &  input 
)
slot

Adds the operation defined by the expression e.

Definition at line 97 of file consolehtml.cpp.

void ConsoleHtml::addOptionsObserver ( InlineOptions *  opt)
inline

Definition at line 70 of file consolehtml.h.

Analitza::Analyzer* ConsoleHtml::analitza ( )
inline

Retrieves a pointer to the Analitza calculator associated.

Definition at line 62 of file consolehtml.h.

void ConsoleHtml::changed ( )
signal

Emits that something has changed.

void ConsoleHtml::clear ( )
slot

Flushes the contents.

Definition at line 286 of file consolehtml.cpp.

void ConsoleHtml::contextMenuEvent ( QContextMenuEvent *  ev)
virtual

Definition at line 271 of file consolehtml.cpp.

void ConsoleHtml::copy ( ) const
slot

Copies the selected text to the clipboard.

Definition at line 266 of file consolehtml.cpp.

bool ConsoleHtml::loadScript ( const KUrl &  path)
slot

Loads a script from path.

Definition at line 169 of file consolehtml.cpp.

ConsoleMode ConsoleHtml::mode ( ) const
inline

Retrieves the console mode.

Definition at line 68 of file consolehtml.h.

void ConsoleHtml::openClickedUrl ( const QUrl &  url)
slot

Definition at line 85 of file consolehtml.cpp.

void ConsoleHtml::paste ( const QString &  code)
signal

Emits the selected code to be pasted somewhere.

bool ConsoleHtml::saveLog ( const KUrl &  path) const
slot

Saves a log to path.

Definition at line 216 of file consolehtml.cpp.

bool ConsoleHtml::saveScript ( const KUrl &  path) const
slot

Save a script yo path.

Definition at line 194 of file consolehtml.cpp.

void ConsoleHtml::setMode ( ConsoleMode  newMode)
inline

Sets a newMode console mode.

Definition at line 65 of file consolehtml.h.

void ConsoleHtml::status ( const QString &  msg)
signal

Emits a notification that tells that the widget status.


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

KDE's Doxygen guidelines are available online.

kalgebra

Skip menu "kalgebra"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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