//--------------------------------------------------------------------------- #ifndef ImportSegmentFormUnitH #define ImportSegmentFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include "GlobalUnit.h" #include "StyleItem.h" #include "ComboBoxComponent.h" #include "GeneralDialogPanel.h" #include "LineEdit.h" #include "TextButton.h" #include "PreStylePanel.h" #include //#include //--------------------------------------------------------------------------- class TImportSegmentForm : public TForm { __published: // IDE-managed Components TLabel *m_lblFileName; TLabel *m_lblSegType; TGeneralDialogPanel *m_panelBk; TLineEdit *m_editFileName; TTextButton *m_btnBrowse; TTextButton *m_btnCancel; TTextButton *m_btnOk; TLabel *m_lblTips; TComboBoxComponent *m_cbSegType; void __fastcall OkClick(TObject *Sender); void __fastcall BrowseClick(TObject *Sender); void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); void __fastcall FormCreate(TObject *Sender); private: // User declarations // TStyleItem* m_pStyItem; // TSegmentItem* m_pSegItem; TPreStylePanel* m_pStylePanel; vector m_aParams; void SetSegType(); public: // User declarations __fastcall TImportSegmentForm(TComponent* Owner, TPreStylePanel* pStylePanel ); // TSegmentItem* GetTempSegment() { return m_pSegItem; }; }; //--------------------------------------------------------------------------- extern PACKAGE TImportSegmentForm *ImportSegmentForm; //--------------------------------------------------------------------------- #endif