Almetare  1.15
Alle meine Taschenrechner - Eine C++-Bibliothek zur Entwicklung von Taschenrechnern
fx3600p_prg_dlg.h
gehe zur Dokumentation dieser Datei
1 //******************************************************************************
2 // Copyright (c) 2002-2005 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 // 28.01.2005 fse Fx3600pPrgDlg(): neue Signatur
15 // 22.12.2004 fse getNextSym() in Klasse Util ausgelagert
16 // 16.11.2003 fse neue Klassenvariable mApplIconPixmap
17 // 15.03.2003 fse erzeugt
18 //******************************************************************************
19 
20 #ifndef FX3600PPRGDLG_H
21 #define FX3600PPRGDLG_H
22 
23 #include <string>
24 #include <qmultilineedit.h>
25 #include "calc_fx3600p.h"
26 #include "fx3600p_prg_base_dlg.h"
27 #include "fx3600p_symbols_dlg.h"
28 
29 using namespace std;
30 
31 //******************************************************************************
32 
35 // fse, 16.11.03: neue Klassenvariable mApplIconPixmap
36 // fse, 28.01.05: im Konstruktor wird CalculatorFx3600p* uebergeben statt
37 // ComputerFx3600p*, neue Membervariable mAccPath
38 
40 {
41  Q_OBJECT
42 
44  string mP1;
45  string mP2;
46  string mP1Org;
47  string mP2Org;
49  QPixmap& mApplIconPixmap;
50  string mAccPath;
51 
52  string loadPrg(const string& prg);
53  void savePrg(const string& prg);
54  bool isParamSym(string sym);
55  bool isAllSymbolsOk(string prg);
56  string stripLines(string prg) const;
57 
58 public:
60  QPixmap& applIconPixmap,
61  string p1,
62  string p2,
63  QWidget* parent = 0,
64  const char* name = 0,
65  bool modal = FALSE,
66  WFlags f = 0);
67  ~Fx3600pPrgDlg();
68  void accept();
69  void butLoad1() { mMleP1P->setText(loadPrg(mP1).c_str()); }
70  void butSave1() { savePrg( mMleP1P->text().latin1()); }
71  void butLoad2() { mMleP2P->setText(loadPrg(mP2).c_str()); }
72  void butSave2() { savePrg( mMleP2P->text().latin1()); }
73  void butSymbols();
74  string getP1() { return mP1; }
75  string getP2() { return mP2; }
76  string getP1Org() { return mP1Org; }
77  string getP2Org() { return mP2Org; }
78 };
79 
80 //******************************************************************************
81 
82 #endif // !FX3600PPRGDLG_H
string mP1
Programmspeicher P1.
Definition: fx3600p_prg_dlg.h:44
Klasse des Programm-Editors des fx-3600P.
Definition: fx3600p_prg_dlg.h:39
Die Klasse implementiert den Calculator des Casio fx-3600P.
Definition: calc_fx3600p.h:138
QPixmap & mApplIconPixmap
Pixmap mit dem Application-Icon (links oben im Dialog)
Definition: fx3600p_prg_dlg.h:49
Dialogklasse des Symboldialogs des Casio fx-3600P (Modul special).
string mP1Org
Programmspeicher P1, Original mit Kommentaren.
Definition: fx3600p_prg_dlg.h:46
Eigene Dialogklasse des Symboldialogs des fx-3600P.
Definition: fx3600p_symbols_dlg.h:34
string mP2
Programmspeicher P2.
Definition: fx3600p_prg_dlg.h:45
string mAccPath
Pfad zum Accessory-Ordner.
Definition: fx3600p_prg_dlg.h:50
string mP2Org
Programmspeicher P2, Original mit Kommentaren.
Definition: fx3600p_prg_dlg.h:47
Definition: fx3600p_prg_base_dlg.h:21
Die Klasse implementiert den Computer des Casio fx-3600P.
Definition: calc_fx3600p.h:42
Fx3600pSymbolsDlg * mSymDlgP
Zeiger auf Symboldialog.
Definition: fx3600p_prg_dlg.h:48
Klassen fuer den Casio fx-3600P (Modul special).
ComputerFx3600p * mCompP
Zeiger auf Computer.
Definition: fx3600p_prg_dlg.h:43