#include </home/clem/local/src/opie/noncore/tools/calculator/calculatorimpl.h>
Inheritance diagram for CalculatorImpl:


Public Slots | |
| void | command_buttons (int) |
| void | enterNumber (int i) |
| void | std_buttons (int) |
| void | std_funcs (int) |
| void | do_convert (int) |
| void | function_button (int) |
Public Member Functions | |
| CalculatorImpl (QWidget *parent=0, const char *name=0, WFlags f=0) | |
Static Public Member Functions | |
| static QString | appName () |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
Private Member Functions | |
| void | clear () |
| void | reset_conv () |
| void | processStack (int op) |
| void | execOp (Operation i) |
| double | evalExpr (int op) |
| void | display_pixmap_faces (void) |
Private Attributes | |
| QValueStack< Op > | operationStack |
| int | state |
| double | acc |
| double | num |
| double | mem |
| int | numDecimals |
| bool | flPoint |
| int | numOpenBraces |
| QLabel * | memMark |
| QString | fake |
| int | current_mode |
| int | max_mode |
| int | conversion_mode_count |
| int | last_conversion |
| QPushButton * | func_buttons [func_button_count] |
| QButtonGroup | bgr_function |
| QButtonGroup | bgr_digits |
| QButtonGroup | bgr_std |
| QButtonGroup | bgr_command |
| QStringList | faces |
| QStringList | captions |
| double * | entry_list |
| double * | preoffset_list |
| double * | postoffset_list |
| QPixmap | xtopowerofy |
| QPixmap | ythrootofx |
| QPixmap | oneoverx |
Static Private Attributes | |
| static const int | pre_conv_modes_count = 1 |
| static const int | post_conv_modes_count = 0 |
| static const int | func_button_count = 12 |
| static const int | changeable_func_button_count = 10 |
|
||||||||||||||||
|
|
Definition at line 77 of file calculatorimpl.h. References QString::fromLatin1(). |
|
|
Definition at line 417 of file calculatorimpl.cpp. References acc, QValueList< T >::clear(), fake, FALSE, flPoint, QString::null, num, numDecimals, numOpenBraces, operationStack, reset_conv(), sStart, and state. Referenced by CalculatorImpl(), command_buttons(), and function_button(). |
|
|
Definition at line 694 of file calculatorimpl.cpp. References acc, clear(), fake, FALSE, flPoint, mem, memMark, QString::null, num, numDecimals, sError, sNewNumber, sStart, state, and TRUE. Referenced by CalculatorImpl(). |
|
|
Definition at line 403 of file calculatorimpl.cpp. References func_buttons, oneoverx_xpm, xtopowerofy_xpm, and ythrootofx_xpm. Referenced by CalculatorImpl(), and function_button(). |
|
|
Definition at line 340 of file calculatorimpl.cpp. References acc, changeable_func_button_count, current_mode, entry_list, func_button_count, last_conversion, max_mode, num, post_conv_modes_count, postoffset_list, pre_conv_modes_count, preoffset_list, sError, sNewNumber, and state. Referenced by CalculatorImpl(). |
|
|
Definition at line 626 of file calculatorimpl.cpp. References acc, QString::contains(), fake, QString::fill(), flPoint, QString::length(), QString::mid(), num, QString::number(), numDecimals, s, sError, sNewNumber, sStart, and state. Referenced by CalculatorImpl(), and eventFilter(). |
|
|
Definition at line 572 of file calculatorimpl.cpp. References acc, num, oAdd, oChSign, oCos, oDiv, oDivX, oLn, oLog, oMult, oPercent, oRoot, oSin, oSub, oTan, oXsquared, qCos(), qSin(), qTan(), sError, sStart, and state. Referenced by execOp(), and processStack(). |
|
||||||||||||
|
Definition at line 294 of file calculatorimpl.cpp. References current_mode, enterNumber(), execOp(), Key_0, Key_9, KeyPress, oCloseBrace, oOpenBrace, oPercent, pre_conv_modes_count, sError, state, and std_buttons(). |
|
|
Definition at line 466 of file calculatorimpl.cpp. References evalExpr(), FALSE, flPoint, num, numDecimals, numOpenBraces, oAdd, oChSign, oCloseBrace, oCos, odebug, oDiv, oDivX, oendl, oLn, oLog, oMult, oOpenBrace, operationStack, oPercent, oPoint, oRoot, oSin, oSub, oSum, oTan, oXsquared, QValueStack< T >::pop(), processStack(), QValueStack< T >::push(), sError, sNewNumber, state, QValueStack< T >::top(), and TRUE. Referenced by eventFilter(), std_buttons(), and std_funcs(). |
|
|
Definition at line 368 of file calculatorimpl.cpp. References bgr_function, captions, changeable_func_button_count, clear(), current_mode, display_pixmap_faces(), faces, FALSE, func_button_count, func_buttons, last_conversion, max_mode, post_conv_modes_count, pre_conv_modes_count, reset_conv(), sError, state, TRUE, and Opie::MM::x. Referenced by CalculatorImpl(). |
|
|
Definition at line 548 of file calculatorimpl.cpp. References acc, evalExpr(), FALSE, QValueList< T >::isEmpty(), num, Op::number, oAdd, Op::operation, operationStack, oPercent, oSub, oSum, percent(), QValueStack< T >::pop(), QValueStack< T >::top(), and TRUE. Referenced by execOp(). |
|
|
Definition at line 430 of file calculatorimpl.cpp. References changeable_func_button_count, func_buttons, last_conversion, and Opie::MM::x. Referenced by clear(), and function_button(). |
|
|
Definition at line 443 of file calculatorimpl.cpp. References execOp(), oSum, sError, and state. Referenced by CalculatorImpl(), and eventFilter(). |
|
|
Definition at line 450 of file calculatorimpl.cpp. References changeable_func_button_count, current_mode, execOp(), oCloseBrace, oOpenBrace, oSin, pre_conv_modes_count, sError, and state. Referenced by CalculatorImpl(). |
|
|
Definition at line 101 of file calculatorimpl.h. Referenced by clear(), command_buttons(), do_convert(), enterNumber(), evalExpr(), and processStack(). |
|
|
Definition at line 124 of file calculatorimpl.h. Referenced by CalculatorImpl(). |
|
|
Definition at line 124 of file calculatorimpl.h. Referenced by CalculatorImpl(). |
|
|
Definition at line 124 of file calculatorimpl.h. Referenced by CalculatorImpl(), and function_button(). |
|
|
Definition at line 124 of file calculatorimpl.h. Referenced by CalculatorImpl(). |
|
|
Definition at line 125 of file calculatorimpl.h. Referenced by CalculatorImpl(), and function_button(). |
|
|
Definition at line 121 of file calculatorimpl.h. Referenced by do_convert(), function_button(), reset_conv(), and std_funcs(). |
|
|
Definition at line 112 of file calculatorimpl.h. Referenced by CalculatorImpl(). |
|
|
Definition at line 112 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), eventFilter(), function_button(), and std_funcs(). |
|
|
Definition at line 128 of file calculatorimpl.h. Referenced by CalculatorImpl(), and do_convert(). |
|
|
Definition at line 125 of file calculatorimpl.h. Referenced by CalculatorImpl(), and function_button(). |
|
|
Definition at line 109 of file calculatorimpl.h. Referenced by clear(), command_buttons(), and enterNumber(). |
|
|
Definition at line 103 of file calculatorimpl.h. Referenced by clear(), command_buttons(), enterNumber(), and execOp(). |
|
|
Definition at line 119 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), and function_button(). |
|
|
Definition at line 122 of file calculatorimpl.h. Referenced by CalculatorImpl(), display_pixmap_faces(), function_button(), and reset_conv(). |
|
|
Definition at line 112 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), function_button(), and reset_conv(). |
|
|
Definition at line 112 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), and function_button(). |
|
|
Definition at line 101 of file calculatorimpl.h. Referenced by CalculatorImpl(), and command_buttons(). |
|
|
Definition at line 108 of file calculatorimpl.h. Referenced by CalculatorImpl(), and command_buttons(). |
|
|
Definition at line 101 of file calculatorimpl.h. Referenced by clear(), command_buttons(), do_convert(), enterNumber(), evalExpr(), execOp(), and processStack(). |
|
|
Definition at line 102 of file calculatorimpl.h. Referenced by clear(), command_buttons(), enterNumber(), and execOp(). |
|
|
Definition at line 104 of file calculatorimpl.h. |
|
|
Definition at line 134 of file calculatorimpl.h. |
|
|
Definition at line 98 of file calculatorimpl.h. Referenced by clear(), execOp(), and processStack(). |
|
|
Definition at line 116 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), and function_button(). |
|
|
Definition at line 130 of file calculatorimpl.h. Referenced by CalculatorImpl(), and do_convert(). |
|
|
Definition at line 115 of file calculatorimpl.h. Referenced by CalculatorImpl(), do_convert(), eventFilter(), function_button(), and std_funcs(). |
|
|
Definition at line 129 of file calculatorimpl.h. Referenced by CalculatorImpl(), and do_convert(). |
|
|
Definition at line 99 of file calculatorimpl.h. Referenced by clear(), command_buttons(), do_convert(), enterNumber(), evalExpr(), eventFilter(), execOp(), function_button(), std_buttons(), and std_funcs(). |
|
|
Definition at line 132 of file calculatorimpl.h. |
|
|
Definition at line 133 of file calculatorimpl.h. |
1.4.2