root/trunk/contrib/dbcEditer/dbcedit.h @ 2

Revision 2, 3.3 kB (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1//---------------------------------------------------------------------------
2
3#ifndef dbceditH
4#define dbceditH
5//---------------------------------------------------------------------------
6#include <Classes.hpp>
7#include <Controls.hpp>
8#include <StdCtrls.hpp>
9#include <Forms.hpp>
10#include <ComCtrls.hpp>
11#include <ExtCtrls.hpp>
12#include <ToolWin.hpp>
13#include <Grids.hpp>
14#include <Dialogs.hpp>
15#include <Menus.hpp>
16#include <ImgList.hpp>
17#include "thOpenSource.h"
18
19union TypePtr
20{
21        long*                   l;
22        DWORD*                  dw;
23        WORD*                   w;
24        char*                   c;
25        void*                   p;
26        float*                  f;
27
28        TypePtr(void* in) :p(in)
29        {
30        }
31};
32
33#define TAG(x) (DWORD)(  (((DWORD)x&0x0000ff00)<<8)+(((DWORD)x&0x000000ff)<<24)+(((DWORD)x&0x00ff0000)>>8)+(((DWORD)x&0xff000000)>>24) )
34
35
36//---------------------------------------------------------------------------
37class TFrmMain : public TForm
38{
39__published:    // IDE-managed Components
40        TPanel *Panel1;
41        TCoolBar *CoolBar1;
42        TToolBar *ToolBar1;
43        TToolButton *btOpen;
44        TToolButton *btSave;
45        TStringGrid *sgEdit;
46        TOpenDialog *OpenDialog1;
47        TPopupMenu *PopupMenu1;
48        TMenuItem *N1;
49        TMenuItem *N2;
50        TMenuItem *btIntType;
51        TMenuItem *btFloatType;
52        TMenuItem *btTxtType;
53        TImageList *ImageList1;
54        TPanel *pnFileName;
55        TToolButton *ToolButton1;
56        TToolButton *ToolButton2;
57        TTimer *Timer1;
58        TLabel *lbOpState;
59        TMenuItem *N4;
60        TToolButton *ToolButton3;
61        TMenuItem *btRowSave;
62        TMenuItem *btColSave;
63        TMenuItem *btRowClear;
64        TMenuItem *btColClear;
65        TToolButton *ToolButton4;
66        TToolButton *ToolButton5;
67        void __fastcall btOpenClick(TObject *Sender);
68        void __fastcall btSaveClick(TObject *Sender);
69        void __fastcall btIntTypeClick(TObject *Sender);
70        void __fastcall btFloatTypeClick(TObject *Sender);
71        void __fastcall PopupMenu1Popup(TObject *Sender);
72        void __fastcall N1Click(TObject *Sender);
73        void __fastcall FormDestroy(TObject *Sender);
74        void __fastcall ToolButton1Click(TObject *Sender);
75        void __fastcall sgEditKeyDown(TObject *Sender, WORD &Key,
76          TShiftState Shift);
77        void __fastcall sgEditSelectCell(TObject *Sender, int ACol,
78          int ARow, bool &CanSelect);
79        void __fastcall Timer1Timer(TObject *Sender);
80        void __fastcall N4Click(TObject *Sender);
81        void __fastcall btTxtTypeClick(TObject *Sender);
82        void __fastcall ToolButton3Click(TObject *Sender);
83        void __fastcall btRowSaveClick(TObject *Sender);
84        void __fastcall btColSaveClick(TObject *Sender);
85        void __fastcall btRowClearClick(TObject *Sender);
86        void __fastcall btColClearClick(TObject *Sender);
87        void __fastcall ToolButton4Click(TObject *Sender);
88private:        // User declarations
89
90
91        thOpenFile  *thOpen;
92        bool Term; 
93
94public:         // User declarations
95        bool       OpenOk;
96       
97        AnsiString CurrentOpenFile;
98        __fastcall TFrmMain(TComponent* Owner);
99        void SaveToFile(const char * pszFileName);
100        void __fastcall OpenFileCol(AnsiString FileName,int ColIndex,int ColType);
101};
102//---------------------------------------------------------------------------
103extern PACKAGE TFrmMain *FrmMain;
104//---------------------------------------------------------------------------
105#endif
Note: See TracBrowser for help on using the browser.