OSDN Git Service

first commit
[dokopop/dokopop.git] / DCHookTest / PopupConfig.h
1 //---------------------------------------------------------------------------
2 #ifndef PopupConfigH
3 #define PopupConfigH
4 //---------------------------------------------------------------------------
5 #include <Classes.hpp>
6 #include <Controls.hpp>
7 #include <StdCtrls.hpp>
8 #include <Forms.hpp>
9 #include <ComCtrls.hpp>
10 #include <ActnList.hpp>
11 #include <Menus.hpp>
12 //---------------------------------------------------------------------------
13
14 enum eCaptureMode {
15         CM_TEXT = 1,    // \95\8e\9a\92\8a\8fo
16         CM_IMAGE = 2,   // OCR
17 };
18
19 class TPopupConfigDlg : public TForm
20 {
21 __published:    // IDE \8aÇ\97\9d\82Ì\83R\83\93\83|\81[\83l\83\93\83g
22         TCheckBox *cbGroupOpen;
23         TLabel *lb1;
24         TLabel *lbGroupName;
25         TCheckBox *cbCtrlClose;
26         TButton *btnOK;
27         TButton *btnCancel;
28         TLabel *lb2;
29         TComboBox *edGroupName;
30         TCheckBox *cbBanner;
31         TMemo *Memo1;
32         TLabel *Label1;
33         TComboBox *cbPopupKey;
34         TLabel *Label2;
35         TComboBox *cbToggleKey;
36         TCheckBox *cbIgnoreJ;
37         TLabel *lbAMODIPath;
38         TEdit *edAMODIPath;
39         TButton *btnBrowse;
40         TLabel *lbScaling;
41         TTrackBar *tbScaling;
42         TLabel *lbScaleNormal;
43         TLabel *lbScaleMax;
44         TButton *btnHelp;
45         TActionList *ActionList1;
46         TAction *actHelp;
47         TLabel *lbDebug;
48         TPopupMenu *pmDebugMenu;
49         TMenuItem *miShowAMODI;
50         TComboBox *cbCaptureMode;
51         TCheckBox *cbUse64;
52         TCheckBox *cbDPISetting;
53         void __fastcall cbGroupOpenClick(TObject *Sender);
54         void __fastcall FormShow(TObject *Sender);
55         void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
56         void __fastcall btnHelpClick(TObject *Sender);
57         void __fastcall actHelpExecute(TObject *Sender);
58         void __fastcall lbDebugDblClick(TObject *Sender);
59         void __fastcall miShowAMODIClick(TObject *Sender);
60         void __fastcall cbCaptureModeChange(TObject *Sender);
61         void __fastcall cbDPISettingClick(TObject *Sender);
62 private:        // \83\86\81[\83U\81[\90é\8c¾
63         bool MODIAvail;
64 public:         // \83\86\81[\83U\81[\90é\8c¾
65         __fastcall TPopupConfigDlg(TComponent* Owner);
66         void SetPopupKey( int keycomb );
67         int GetPopupKey( );
68         void SetToggleKey( int keycomb );
69         int GetToggleKey( );
70         void SetDPIDetect(bool dpi_detect);
71         bool GetDPIDetect();
72         void SetScaler(int scale);
73         int GetScaler();
74         void SetMODIAvail(bool avail) { MODIAvail = avail; }
75         void SetCaptureMode(int mode);
76         int GetCaptureMode();
77 };
78 //---------------------------------------------------------------------------
79 extern PACKAGE TPopupConfigDlg *PopupConfigDlg;
80 //---------------------------------------------------------------------------
81 #endif
82