/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/BcdCalU.h
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/BcdCalU.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 8 months ago) by torben
File MIME type: text/plain
File size: 4334 byte(s)
Added tpsystools component
1 // ***** BEGIN LICENSE BLOCK *****
2 // * Version: MPL 1.1
3 // *
4 // * The contents of this file are subject to the Mozilla Public License Version
5 // * 1.1 (the "License"); you may not use this file except in compliance with
6 // * the License. You may obtain a copy of the License at
7 // * http://www.mozilla.org/MPL/
8 // *
9 // * Software distributed under the License is distributed on an "AS IS" basis,
10 // * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 // * for the specific language governing rights and limitations under the
12 // * License.
13 // *
14 // * The Original Code is TurboPower SysTools
15 // *
16 // * The Initial Developer of the Original Code is
17 // * TurboPower Software
18 // *
19 // * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 // * the Initial Developer. All Rights Reserved.
21 // *
22 // * Contributor(s):
23 // *
24 // * ***** END LICENSE BLOCK *****
25 //---------------------------------------------------------------------------
26 #ifndef BcdCalUH
27 #define BcdCalUH
28 //---------------------------------------------------------------------------
29 #include <vcl\Classes.hpp>
30 #include <vcl\Controls.hpp>
31 #include <vcl\StdCtrls.hpp>
32 #include <vcl\Forms.hpp>
33 #include <vcl\ExtCtrls.hpp>
34 #include <vcl\clipbrd.hpp>
35 #include <vcl\SysUtils.hpp>
36
37 #include "math.h"
38 #include "StBcd.hpp"
39 #include "StStrL.hpp"
40 #include <Buttons.hpp>
41 #include <Menus.hpp>
42
43 //---------------------------------------------------------------------------
44 typedef Set <char, 0, 255> BCDCharSet;
45 typedef Set <char, 0, 255> BCDOperSet;
46
47 //---------------------------------------------------------------------------
48 class PACKAGE TBCDCalcDlg : public TForm
49 {
50 __published: // IDE-managed Components
51 TBevel *Bevel1;
52 TBitBtn *ZeroBtn;
53 TBitBtn *DecKey;
54 TBitBtn *ThreeKey;
55 TBitBtn *OneKey;
56 TBitBtn *TwoKey;
57 TBitBtn *SixKey;
58 TBitBtn *FourKey;
59 TBitBtn *FiveKey;
60 TBitBtn *NineKey;
61 TBitBtn *SevenKey;
62 TBitBtn *EightKey;
63 TBitBtn *SqrtBtn;
64 TBitBtn *LnBtn;
65 TBitBtn *ExpBtn;
66 TBitBtn *XtoYBtn;
67 TBitBtn *AddBtn;
68 TBitBtn *SubBtn;
69 TBitBtn *MulBtn;
70 TBitBtn *DivBtn;
71 TBitBtn *PlusMinusBtn;
72 TBitBtn *ClearBtn;
73 TBitBtn *EqualBtn;
74 TBitBtn *ClearEntryBtn;
75 TGroupBox *gb1;
76 TEdit *BCDString;
77 TBitBtn *BSBtn;
78 TMemo *Memo1;
79 TPopupMenu *PopupMenu1;
80 TMenuItem *Copy1;
81 TMenuItem *Paste1;
82 void __fastcall FormCreate(TObject *Sender);
83 void __fastcall FormKeyPress(TObject *Sender, char &Key);
84 void __fastcall ClearBtnClick(TObject *Sender);
85 void __fastcall ClearEntryBtnClick(TObject *Sender);
86 void __fastcall SevenKeyClick(TObject *Sender);
87 void __fastcall EightKeyClick(TObject *Sender);
88 void __fastcall NineKeyClick(TObject *Sender);
89 void __fastcall FourKeyClick(TObject *Sender);
90 void __fastcall FiveKeyClick(TObject *Sender);
91 void __fastcall SixKeyClick(TObject *Sender);
92 void __fastcall OneKeyClick(TObject *Sender);
93 void __fastcall TwoKeyClick(TObject *Sender);
94 void __fastcall ThreeKeyClick(TObject *Sender);
95 void __fastcall ZeroBtnClick(TObject *Sender);
96 void __fastcall DecKeyClick(TObject *Sender);
97 void __fastcall PlusMinusBtnClick(TObject *Sender);
98 void __fastcall AddBtnClick(TObject *Sender);
99 void __fastcall SubBtnClick(TObject *Sender);
100 void __fastcall MulBtnClick(TObject *Sender);
101 void __fastcall DivBtnClick(TObject *Sender);
102 void __fastcall SqrtBtnClick(TObject *Sender);
103 void __fastcall ExpBtnClick(TObject *Sender);
104 void __fastcall LnBtnClick(TObject *Sender);
105 void __fastcall XtoYBtnClick(TObject *Sender);
106 void __fastcall EqualBtnClick(TObject *Sender);
107 void __fastcall Copy1Click(TObject *Sender);
108 void __fastcall Paste1Click(TObject *Sender);
109 void __fastcall BSBtnClick(TObject *Sender);
110 void __fastcall FormShow(TObject *Sender);
111 private: // User declarations
112 public: // User declarations
113 __fastcall TBCDCalcDlg(TComponent* Owner);
114
115 BCDCharSet BCDChar;
116 BCDOperSet BCDOper;
117 char PendOp;
118 int DFHold;
119 String XBuffer;
120 bool ClearOnNext;
121 };
122 //---------------------------------------------------------------------------
123 extern PACKAGE TBCDCalcDlg *BCDCalcDlg;
124 //---------------------------------------------------------------------------
125 #endif

  ViewVC Help
Powered by ViewVC 1.1.20