Almetare  1.15
Alle meine Taschenrechner - Eine C++-Bibliothek zur Entwicklung von Taschenrechnern
fx3600p_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 //******************************************************************************
11 //******************************************************************************
12 // Wann Wer Was
13 // ---------- -------- ---------------------------------------------------------
14 // 12.06.2004 fse Deklarationen von showAnyThinkSequence() und
15 // showEquThinkSequence() entfernt
16 // 15.11.2003 fse butType(): Aufruf butTypeBase() mit neuem Parameter
17 // getWFlags()
18 // 01.03.2003 fse erzeugt
19 //******************************************************************************
20 
21 #ifndef FX3600PMAINDLG_H
22 #define FX3600PMAINDLG_H
23 
24 #include <qtimer.h>
25 #include "fx3600p_main_base_dlg.h"
26 #include "calc_dlg_base.h"
27 #include "calc_fx3600p.h"
28 
29 using namespace std;
30 
31 //******************************************************************************
32 
35 
37 {
38  Q_OBJECT
39 
43  QTimer mTimOff;
44  QTimer mTimBlink;
45  bool mIsModeMode;
46  bool mIsHardOff;
47  QColor mColLgtbrown;
48  QColor mColDrkbrown;
49  QColor mColLgtblue;
50  QColor mColDrkblue;
51  QColor mColOrngInv;
52  QColor mColOrngLbl;
53  QColor mColBeige;
54  QColor mColOrngAc;
55  QSound* mOnSoundP;
56  QSound* mOffSoundP;
57 
58  void rowColToPix(int row, int col, int& x, int& y, int& w, int& h);
59  void setLcd(string str);
60  void getSourceCoords(char c, bool isPointSucc, bool isExp, bool isMode, int& x, int& y, int& w, int& h);
61  void switchOff();
62  void keyPressEvent(QKeyEvent* evP);
63  void keyReleaseEvent(QKeyEvent* evP);
64  void resetAllModes();
65  string replaceSpaceByCr(string& src);
66  bool isPrgRunning() { return mCompP->isPrgRunning(); }
67  void setLabelColors();
68  void adjustSimpleSkin();
69  void adjustDebugSkin();
70  void setDisplayFields(bool isDoPerhapsNot = 0);
71  void makeShortCutTab();
72  void butEngBoth(Util::Direction dir);
73  void preExtractSym(string sym);
74  void adjustRealisticSkin();
75  void clearLcdButOn();
76 
77 protected:
78  void resizeEvent(QResizeEvent*) { resizeAllWidgets(this); }
79  void enterEvent(QEvent*) { showHint(); }
80 
81 public slots:
82  void timeoutOff();
83  void timeoutBlink();
84 
85 public:
86  Fx3600pMainDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags f = 0);
87  ~Fx3600pMainDlg();
88 
89  void butPon ();
90  void butPrg ();
91  void butAc ();
92  void butDigit ();
93  void butAbc ();
94  void butExp ();
95  void butAction ();
96  void butEng ();
97  void butAnyMode ();
98  void butBra ();
99  void butSign ();
100  void butSum ();
101  void butType () { butTypeBase(this, getWFlags()); }
102  void playPress () { playPressBase (); }
103  void playRelease() { playReleaseBase(); }
104 };
105 
106 //******************************************************************************
107 
108 #endif // !FX3600PMAINDLG_H
Definition: fx3600p_main_base_dlg.h:22
Eigene Dialogklasse des fx-3600P.
Definition: fx3600p_main_dlg.h:36
QTimer mTimBlink
0,4-Sek.-Timer fuers Blinken von "P1 P2"
Definition: fx3600p_main_dlg.h:44
bool mIsModeMode
gibt an, ob Mode-Taste gedrueckt
Definition: fx3600p_main_dlg.h:45
Die Klasse implementiert den Calculator des Casio fx-3600P.
Definition: calc_fx3600p.h:138
QColor mColDrkbrown
dunkleres Braun f. Mode-Labels
Definition: fx3600p_main_dlg.h:48
QColor mColOrngAc
Textfarbe "C" und "AC".
Definition: fx3600p_main_dlg.h:54
QColor mColOrngInv
Orange fuer INV-Button.
Definition: fx3600p_main_dlg.h:51
QColor mColOrngLbl
Orange fuer Button-Label.
Definition: fx3600p_main_dlg.h:52
QColor mColBeige
Beige fuer die kleinen Buttons.
Definition: fx3600p_main_dlg.h:53
Implementierung der Basisfunktionalitaet des Taschenrechner-Dialogs aller Taschenrechner (Modul base)...
Die Klasse implementiert die Anzeige des Casio fx-3600P.
Definition: calc_fx3600p.h:106
QColor mColLgtbrown
Farbe um das Display herum.
Definition: fx3600p_main_dlg.h:47
CalculatorFx3600p mCalc
Inkorporierter Konsolenrechner.
Definition: fx3600p_main_dlg.h:40
DisplayFx3600p * mDsplP
Zeiger auf das Display des Rechners.
Definition: fx3600p_main_dlg.h:42
QColor mColDrkblue
dunkleres Blau fuer Typbezeichnung
Definition: fx3600p_main_dlg.h:50
QSound * mOnSoundP
Geraeusch beim Einschalten.
Definition: fx3600p_main_dlg.h:55
Die Klasse implementiert den Computer des Casio fx-3600P.
Definition: calc_fx3600p.h:42
ComputerFx3600p * mCompP
Zeiger auf den Computer des Rechners.
Definition: fx3600p_main_dlg.h:41
In dieser Klasse ist die Basisfunktionalitaet des Taschenrechner-Dialogs aller Taschenrechner impleme...
Definition: calc_dlg_base.h:69
Klassen fuer den Casio fx-3600P (Modul special).
QColor mColLgtblue
helleres Blau fuer LR- und SD-Label
Definition: fx3600p_main_dlg.h:49
QTimer mTimOff
6-Minuten-Timer fuer automatisches Abschalten
Definition: fx3600p_main_dlg.h:43
bool mIsHardOff
der Rechner wurde mit dem Ausschalter abgeschaltet
Definition: fx3600p_main_dlg.h:46
QSound * mOffSoundP
Geraeusch beim Ausschalten.
Definition: fx3600p_main_dlg.h:56