Almetare  1.15
Alle meine Taschenrechner - Eine C++-Bibliothek zur Entwicklung von Taschenrechnern
ti30_main_dlg.h
gehe zur Dokumentation dieser Datei
1 //******************************************************************************
2 // Copyright (c) 2002-2004 by Friedemann Seebass, Germany.
3 // Dieses Programm ist freie Software. Siehe GNU GPL Notiz in Datei main.cpp.
4 // This program is free software. See the GNU GPL notice in file main.cpp.
5 // Projekt: Almetare - Alle meine Taschenrechner
6 //******************************************************************************
12 //******************************************************************************
13 // Wann Wer Was
14 // ---------- -------- ---------------------------------------------------------
15 // 15.11.2003 fse butType(): Aufruf butTypeBase() mit neuem Parameter
16 // getWFlags()
17 // 08.10.2001 fse erzeugt
18 //******************************************************************************
19 
20 #ifndef TI30MAINDLG_H
21 #define TI30MAINDLG_H
22 
23 #include <string>
24 #include <qtimer.h>
25 #include <qtoolbutton.h>
26 #include "ti30_main_base_dlg.h"
27 #include "calc_dlg_base.h"
28 #include "calc_ti30.h"
29 
30 using namespace std;
31 
32 //******************************************************************************
33 
35 
37 {
38  Q_OBJECT
39 
43  QTimer mTim45s, mTim150ms, mTim8min, mTimThinking;
44  string mIdleStr;
45  string mThinkStr;
46 
47  void makeShortCutTab();
48  void adjustSimpleSkin();
49  void adjustDebugSkin() {}
50  void setDisplayFields(bool isDoPerhapsNot = 0);
51  void setLed(string str);
52  void getSourceCoords(char c, bool isPointSucc, int& row, int& col);
53  void showAnyThinkSequence(string sym, string lastSym);
54  void showEquThinkSequence(string lastSym);
55  void switchOff();
56  void keyPressEvent(QKeyEvent* evP);
57  void keyReleaseEvent(QKeyEvent* evP);
58 
59 protected:
60  void resizeEvent(QResizeEvent*) { resizeAllWidgets(this); }
61  void enterEvent(QEvent*) { showHint(); }
62 
63 public slots:
64  void timeout8min();
65  void timeout45s();
66  void timeout150ms();
67  void timeoutThinking();
68 
69 public:
70  Ti30mainDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags f = 0 );
71  ~Ti30mainDlg() {}
72 
73  void butDigit ();
74  void butEe ();
75  void butAction();
76  void butOff ();
77  void butOn ();
78  void butDrg ();
79  void butInv ();
80  void butSign () { butSignBase(); updateDisplayAfterDigit(); }
81  void butType () { butTypeBase(this, getWFlags()); mCalcTypeP->setDown(false); }
82  void playPress () { playPressBase (); }
83  void playRelease() { playReleaseBase(); }
84 };
85 
86 //******************************************************************************
87 
88 #endif // !TI30MAINDLG_H
ComputerTi30 * mCompP
Zeiger auf den Computer.
Definition: ti30_main_dlg.h:41
string mIdleStr
String zur Darstellung der laufenden Punkte.
Definition: ti30_main_dlg.h:44
Die Klasse implementiert den Calculator des TI-30.
Definition: calc_ti30.h:74
QTimer mTimThinking
diverse Timer
Definition: ti30_main_dlg.h:43
Die Klasse implementiert die Anzeige des TI-30.
Definition: calc_ti30.h:41
Implementierung der Basisfunktionalitaet des Taschenrechner-Dialogs aller Taschenrechner (Modul base)...
Definition: ti30_main_base_dlg.h:22
DisplayTi30 * mDsplP
Zeiger auf das Display.
Definition: ti30_main_dlg.h:42
Eigene Dialogklasse des TI-30.
Definition: ti30_main_dlg.h:36
string mThinkStr
String zur Darstellung des "Nachdenkens".
Definition: ti30_main_dlg.h:45
Die Klasse implementiert den Computer des TI-30.
Definition: calc_ti30.h:56
Klassen fuer den TI-30 (Modul special).
void playRelease()
Slot-Funktion "Taste losgelassen".
Definition: ti30_main_dlg.h:83
In dieser Klasse ist die Basisfunktionalitaet des Taschenrechner-Dialogs aller Taschenrechner impleme...
Definition: calc_dlg_base.h:69
void playPress()
Slot-Funktion "Taste gedrueckt".
Definition: ti30_main_dlg.h:82
CalculatorTi30 mCalc
der integrierte Konsolen-Calculator
Definition: ti30_main_dlg.h:40