Main Page Alphabetical List Compound List File List Compound Members Related Pages

# MDITransfer.h

    00001 //---------------------------------------------------------------------------
    00002
    00003 #ifndef MDITransferH
    00004 #define MDITransferH
    00005 //---------------------------------------------------------------------------
    00006 //#include <QDialogs.hpp>
    00007 #include <Classes.hpp>
    00008 #include <Controls.hpp>
    00009 #include <StdCtrls.hpp>
    00010 #include <Forms.hpp>
    00011 #include <ComCtrls.hpp>
    00012 #include <ExtCtrls.hpp>
    00013 #include "transfer.h"
    00014 #include <Dialogs.hpp>
    00015 #include <Buttons.hpp>
    00016 #include "xmltags.h"
    00017 //---------------------------------------------------------------------------
    00018
    00019 /**********************************
    00020  */
    00021
    00028 class TTransferForm : public TForm
    00029 {
    00030 __published:    // IDE-managed Components
    00031         TPanel *PConfig;
    00032         TPanel *PEditor;
    00033         TBevel *Bevel1;
    00034         TPanel *PBottom;
    00035         TPanel *PRightSlider;
    00036         TPanel *PSpacer;
    00037         TPanel *PHistoArea;
    00038         TPanel *PHistoAreaBack;
    00042         TPaintBox *HistoArea;
    00046         TTrackBar *TBVertical;
    00047         TPanel *PBottomSlider;
    00052         TTrackBar *TBHorizontal;
    00053         TPanel *PSBVertical;
    00057         TScrollBar *SBVertical;
    00058         TPanel *PSBHorizontal;
    00062         TScrollBar *SBHorizontal;
    00063         TShape *SFGColor;
    00064         TShape *SBGColor;
    00065         TColorDialog *ColorDialog1;
    00066         TGroupBox *GBInfo;
    00067         TLabel *Label1;
    00068         TLabel *LZoomX;
    00069         TLabel *LZoomY;
    00070         TGroupBox *GBTools;
    00071         TSpeedButton *SBCursor;
    00072         TSpeedButton *SBCut;
    00073         TSpeedButton *SBMove;
    00074         TLabel *Label7;
    00075         TLabel *LHistoX;
    00076         TLabel *LHistoY;
    00077         TGroupBox *GBProperties;
    00078         TLabel *Label5;
    00079         TLabel *Label2;
    00080         TLabel *Label4;
    00081         TLabel *Label8;
    00082         TLabel *LStart;
    00083         TLabel *LEnd;
    00084         TEdit *EName;
    00085         TLabel *Label9;
    00086         TSpeedButton *SbNameOkay;
    00087         TSpeedButton *SbNameDel;
    00088         TListBox *LbName;
    00089         TShape *SStart;
    00090         TShape *SEnd;
    00091         TSpeedButton *SbLoad;
    00092         TSpeedButton *SbSave;
    00093         TOpenDialog *OpenDialog1;
    00094         TSaveDialog *SaveDialog1;
    00095         void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    00096         void __fastcall HistoAreaPaint(TObject *Sender);
    00097         void __fastcall FormCreate(TObject *Sender);
    00098         void __fastcall TBVerticalChange(TObject *Sender);
    00099         void __fastcall TBHorizontalChange(TObject *Sender);
    00100         void __fastcall PHistoAreaBackResize(TObject *Sender);
    00101         void __fastcall SBVerticalChange(TObject *Sender);
    00102         void __fastcall SBHorizontalChange(TObject *Sender);
    00103         void __fastcall SFGColorMouseUp(TObject *Sender,
    00104           TMouseButton Button, TShiftState Shift, int X, int Y);
    00105         void __fastcall HistoAreaMouseMove(TObject *Sender,
    00106           TShiftState Shift, int X, int Y);
    00107         void __fastcall SBGColorMouseUp(TObject *Sender,
    00108           TMouseButton Button, TShiftState Shift, int X, int Y);
    00109         void __fastcall SpeedButton1Click(TObject *Sender);
    00110         void __fastcall HistoAreaMouseDown(TObject *Sender,
    00111           TMouseButton Button, TShiftState Shift, int X, int Y);
    00112         void __fastcall HistoAreaMouseUp(TObject *Sender,
    00113           TMouseButton Button, TShiftState Shift, int X, int Y);
    00114         void __fastcall ENameKeyPress(TObject *Sender, char &Key);
    00115         void __fastcall SbNameOkayClick(TObject *Sender);
    00116         void __fastcall LbNameClick(TObject *Sender);
    00117         void __fastcall SbNameDelClick(TObject *Sender);
    00118         void __fastcall LbNameDblClick(TObject *Sender);
    00119         void __fastcall SbLoadClick(TObject *Sender);
    00120         void __fastcall SbSaveClick(TObject *Sender);
    00121 private:        // User declarations
    00122         TTransfer *_transe;
    00123         bool _created;
    00124         int _selLine;
    00125         int _selPoint;
    00126         int _lineNr;
    00127         int _endpoint;
    00128         bool _beginSelect;
    00129         bool _beginSelectEndpoint;
    00130         bool _beginCut;
    00131         bool _beginMove;
    00132
    00136         void __fastcall _setHistoArea();
    00140         void __fastcall _setHistoZoom();
    00144         void __fastcall _setValZoom();
    00148         void __fastcall _setHistoPos();
    00152         void __fastcall _setValPos();
    00156         void __fastcall _movePointTo(int x, int y, bool start);
    00163         void __fastcall _updateColor();
    00164 public:         // User declarations
    00165         __fastcall TTransferForm(TComponent* Owner, TTransfer *transe);
    00166 };
    00167 //---------------------------------------------------------------------------
    00168 extern PACKAGE TTransferForm *TransferForm;
    00169 //---------------------------------------------------------------------------
    00170 #endif