Componentes.Terceros.DevExp.../internal/x.36/1/ExpressQuantumGrid 6/Demos/CBuilder/ViewBandedDemo/ViewBandedDemoMain.h
2008-09-04 11:31:51 +00:00

90 lines
3.2 KiB
C++

//---------------------------------------------------------------------------
#ifndef ViewBandedDemoMainH
#define ViewBandedDemoMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxClasses.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxEdit.hpp"
#include "cxFilter.hpp"
#include "cxGraphics.hpp"
#include "cxGrid.hpp"
#include "cxGridBandedTableView.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBBandedTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include "cxListBox.hpp"
#include <ActnList.hpp>
#include <ComCtrls.hpp>
#include <ImgList.hpp>
#include <Menus.hpp>
#include "cxLookAndFeels.hpp"
//---------------------------------------------------------------------------
class TViewBandedDemoMainForm : public TForm
{
__published: // IDE-managed Components
TLabel *lbDescription;
TcxGrid *cxGrid;
TcxGridDBBandedTableView *btvItems;
TcxGridDBBandedColumn *btvItemsNAME;
TcxGridDBBandedColumn *btvItemsTYPE;
TcxGridDBBandedColumn *btvItemsPRIORITY;
TcxGridDBBandedColumn *btvItemsPROJECTID;
TcxGridDBBandedColumn *btvItemsSTATUS;
TcxGridDBBandedColumn *btvItemsDESCRIPTION;
TcxGridDBBandedColumn *btvItemsFIXEDDATE;
TcxGridDBBandedColumn *btvItemsCREATEDDATE;
TcxGridDBBandedColumn *btvItemsCreatorName;
TcxGridDBBandedColumn *btvItemsCreatorPhone;
TcxGridDBBandedColumn *btvItemsOwnerName;
TcxGridDBBandedColumn *btvItemsOwnerPhone;
TcxGridLevel *glItems;
TStatusBar *sbMain;
TMainMenu *mmMain;
TMenuItem *miFile;
TMenuItem *miExit;
TMenuItem *miOptions;
TMenuItem *miBandSizing;
TMenuItem *miBandMoving;
TMenuItem *miCreateBand;
TMenuItem *miDeleteBand;
TMenuItem *N1;
TMenuItem *miShowPreviewRow;
TMenuItem *miColumnsCustomization;
TMenuItem *miAbout;
TImageList *ilMain;
TMenuItem *miShowNavigator;
TcxLookAndFeelController *LookAndFeelController;
void __fastcall FormShow(TObject *Sender);
void __fastcall miCreateBandClick(TObject *Sender);
void __fastcall miDeleteBandClick(TObject *Sender);
void __fastcall miColumnsCustomizationClick(TObject *Sender);
void __fastcall miAboutClick(TObject *Sender);
void __fastcall miExitClick(TObject *Sender);
void __fastcall miShowPreviewRowClick(TObject *Sender);
void __fastcall miBandMovingClick(TObject *Sender);
void __fastcall miBandSizingClick(TObject *Sender);
void __fastcall miShowNavigatorClick(TObject *Sender);
private: // User declarations
void __fastcall RemoveBands(TcxListBox* AListBox);
void __fastcall AddBands(TStrings* AStringList);
void __fastcall HideCoulmns();
TcxGridBand* __fastcall GetBandByCaption(String ABandCaption);
void __fastcall DeleteBand(String ABandCaption);
public: // User declarations
__fastcall TViewBandedDemoMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TViewBandedDemoMainForm *ViewBandedDemoMainForm;
//---------------------------------------------------------------------------
#endif