git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@31 05c56307-c608-d34a-929d-697000501d7a
64 lines
2.5 KiB
C++
64 lines
2.5 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef SummaryFooterDemoEditSummaryH
|
|
#define SummaryFooterDemoEditSummaryH
|
|
//---------------------------------------------------------------------------
|
|
#include <Classes.hpp>
|
|
#include <Controls.hpp>
|
|
#include <StdCtrls.hpp>
|
|
#include <Forms.hpp>
|
|
#include "cxButtons.hpp"
|
|
#include "cxContainer.hpp"
|
|
#include "cxControls.hpp"
|
|
#include "cxDropDownEdit.hpp"
|
|
#include "cxEdit.hpp"
|
|
#include "cxImageComboBox.hpp"
|
|
#include "cxLookAndFeelPainters.hpp"
|
|
#include "cxMaskEdit.hpp"
|
|
#include "cxTextEdit.hpp"
|
|
#include "cxGridDBTableView.hpp"
|
|
#include "cxListBox.hpp"
|
|
#include <ExtCtrls.hpp>
|
|
//---------------------------------------------------------------------------
|
|
class TSummaryFooterDemoEditSummaryForm : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TPanel *Panel2;
|
|
TLabel *Label1;
|
|
TLabel *Label2;
|
|
TLabel *Label3;
|
|
TBevel *Bevel1;
|
|
TcxButton *btnAdd;
|
|
TcxButton *btnExit;
|
|
TcxButton *btnDelete;
|
|
TcxComboBox *cbCalculatedColumn;
|
|
TcxComboBox *cbFooterSummaryColumn;
|
|
TcxImageComboBox *cbSummaryKind;
|
|
TGroupBox *gbSummaries;
|
|
TPanel *Panel4;
|
|
TcxListBox *lbSummaries;
|
|
void __fastcall btnAddClick(TObject *Sender);
|
|
void __fastcall FormShow(TObject *Sender);
|
|
void __fastcall cbCalculatedColumnPropertiesChange(
|
|
TObject *Sender);
|
|
void __fastcall cbFooterSummaryColumnPropertiesChange(
|
|
TObject &Sender);
|
|
void __fastcall btnDeleteClick(TObject *Sender);
|
|
private: // User declarations
|
|
void AddSummaryKind(TcxSummaryKind AKind);
|
|
void SetItemProperties(AnsiString ADescription, int AImageIndex,
|
|
int AValue, TcxImageComboBoxItem* AItem);
|
|
void UpdateSummaryKinds(TField* AField = NULL);
|
|
void UpdateSummaryList(bool AFirstItemActive);
|
|
public: // User declarations
|
|
__fastcall TSummaryFooterDemoEditSummaryForm(TComponent* Owner);
|
|
inline TcxDataFooterSummaryItems* GetFooterSummaryItems();
|
|
inline TcxGridDBTableView* GetFocusedView();
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
typedef Set<TFieldType, ftUnknown, ftDataSet> TcxFieldTypes;
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TSummaryFooterDemoEditSummaryForm *SummaryFooterDemoEditSummaryForm;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|