//--------------------------------------------------------------------------- #ifndef IssueListStylesH #define IssueListStylesH //--------------------------------------------------------------------------- #include #include #include #include #include "cxButtons.hpp" #include "cxLookAndFeelPainters.hpp" #include "cxGrid.hpp" #include #include "IssueListStyleData.h" #include "cxListBox.hpp" //--------------------------------------------------------------------------- class TIssueListStylesForm : public TForm { __published: // IDE-managed Components TcxListBox *lbPredefinedStyleSheets; TcxButton *btnEdit; TcxButton *cxButton1; TcxButton *cxButton2; TcxButton *btnClear; TOpenDialog *OpenDialog; TSaveDialog *SaveDialog; void __fastcall lbPredefinedStyleSheetsClick(TObject *Sender); void __fastcall btnClearClick(TObject *Sender); void __fastcall btnEditClick(TObject *Sender); void __fastcall cxButton1Click(TObject *Sender); void __fastcall cxButton2Click(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall FormCreate(TObject *Sender); void __fastcall FormDestroy(TObject *Sender); private: // User declarations TdmStyles* FStyleData; void __fastcall PopulateStylesList(); void __fastcall LoadStyleSheets(const TFileName AFileName); void __fastcall SaveStyleSheets(const TFileName AFileName); void __fastcall UpdateStyleAndController(); void __fastcall SetStyleSheet(); void __fastcall ResetStyleSheet(); void __fastcall SelectStyleFromList(); void __fastcall ResetStyleAndController(); public: // User declarations TcxGridTableViewStyleSheet* SelectedStyleSheet; __fastcall TIssueListStylesForm(TComponent* Owner); __property TdmStyles* StyleData = { read = FStyleData }; }; //--------------------------------------------------------------------------- extern PACKAGE TIssueListStylesForm *IssueListStylesForm; //--------------------------------------------------------------------------- #endif