git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@31 05c56307-c608-d34a-929d-697000501d7a
118 lines
4.0 KiB
C++
118 lines
4.0 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef StylesMultiDemoMainH
|
|
#define StylesMultiDemoMainH
|
|
//---------------------------------------------------------------------------
|
|
#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 "cxDBData.hpp"
|
|
#include "cxEdit.hpp"
|
|
#include "cxFilter.hpp"
|
|
#include "cxGraphics.hpp"
|
|
#include "cxGrid.hpp"
|
|
#include "cxGridCustomTableView.hpp"
|
|
#include "cxGridCustomView.hpp"
|
|
#include "cxGridDBTableView.hpp"
|
|
#include "cxGridLevel.hpp"
|
|
#include "cxGridTableView.hpp"
|
|
#include "cxStyles.hpp"
|
|
#include <ActnList.hpp>
|
|
#include <ComCtrls.hpp>
|
|
#include <DB.hpp>
|
|
#include <ImgList.hpp>
|
|
#include <Menus.hpp>
|
|
#include "cxButtons.hpp"
|
|
#include "cxGridCustomPopupMenu.hpp"
|
|
#include "cxGridPopupMenu.hpp"
|
|
#include "cxLookAndFeelPainters.hpp"
|
|
#include "cxStyleSheetEditor.hpp"
|
|
#include "cxRadioGroup.hpp"
|
|
#include "cxListBox.hpp"
|
|
#include <Dialogs.hpp>
|
|
#include <ExtCtrls.hpp>
|
|
#include "cxContainer.hpp"
|
|
#include "cxGroupBox.hpp"
|
|
#include "cxLookAndFeels.hpp"
|
|
#include "cxGridStyleSheetsPreview.hpp"
|
|
//---------------------------------------------------------------------------
|
|
class TStylesMultiDemoMainForm : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TLabel *lbDescrip;
|
|
TSplitter *Splitter;
|
|
TStatusBar *sbMain;
|
|
TcxGrid *cxGrid;
|
|
TcxGridDBTableView *tvProjects;
|
|
TcxGridDBColumn *tvProjectsID;
|
|
TcxGridDBColumn *tvProjectsNAME;
|
|
TcxGridDBColumn *tvProjectsMANAGERID;
|
|
TcxGridDBTableView *tvTeam;
|
|
TcxGridDBColumn *tvTeamPROJECTID;
|
|
TcxGridDBColumn *tvTeamFUNCTION;
|
|
TcxGridDBColumn *tvTeamUSERID;
|
|
TcxGridLevel *lvProjects;
|
|
TcxGridLevel *lvTeam;
|
|
TPanel *pnlLeft;
|
|
TGroupBox *gbUserDefined;
|
|
TComboBox *cbUserStyleSheets;
|
|
TcxButton *btnLoad;
|
|
TcxButton *btnSave;
|
|
TcxButton *btnEdit;
|
|
TcxRadioGroup *RadioGroup;
|
|
TGroupBox *gbPredefined;
|
|
TcxListBox *lbPredefinedStyleSheets;
|
|
TPanel *pnlCurrentStyleSheet;
|
|
TMainMenu *mmMain;
|
|
TMenuItem *miFile;
|
|
TMenuItem *miExit;
|
|
TMenuItem *miOptions;
|
|
TMenuItem *miLookAndFeel;
|
|
TMenuItem *miKind;
|
|
TMenuItem *miFlat;
|
|
TMenuItem *miStandard;
|
|
TMenuItem *miUltraFlat;
|
|
TMenuItem *miNativeStyle;
|
|
TMenuItem *miAbout;
|
|
TcxGridPopupMenu *cxGridPopupMenu1;
|
|
TOpenDialog *OpenDialog;
|
|
TSaveDialog *SaveDialog;
|
|
TcxLookAndFeelController *LookAndFeelController;
|
|
void __fastcall miAboutClick(TObject *Sender);
|
|
void __fastcall miExitClick(TObject *Sender);
|
|
void __fastcall FormCreate(TObject *Sender);
|
|
void __fastcall btnSaveClick(TObject *Sender);
|
|
void __fastcall btnLoadClick(TObject *Sender);
|
|
void __fastcall RadioGroupClick(TObject *Sender);
|
|
void __fastcall cbUserStyleSheetsChange(TObject *Sender);
|
|
void __fastcall lbPredefinedStyleSheetsClick(TObject *Sender);
|
|
void __fastcall btnEditClick(TObject *Sender);
|
|
void __fastcall FormActivate(TObject *Sender);
|
|
void __fastcall miNativeStyleClick(TObject *Sender);
|
|
void __fastcall miLookAndFeelKindClick(TObject *Sender);
|
|
private: // User declarations
|
|
TcxGridTableViewStyleSheet* GetCurrentStyleSheet() ;
|
|
void CreateUserStyleSheetsList();
|
|
void CreatePredefinedStyleSheetsList();
|
|
void UpdateGridStyleSheets(TcxGridTableViewStyleSheet *AStyleSheet);
|
|
void UpdateView(TcxGridDBTableView *AView,
|
|
TcxGridTableViewStyleSheet *AStyleSheet);
|
|
void ChangeVisibility(int AType);
|
|
void SetPredefinedStyleSheets();
|
|
void SetUserDefinedStyleSheets();
|
|
void ClearUserDefinedStyleSheets();
|
|
void LoadUserDefinedStyleSheets(TFileName AFileName);
|
|
void SaveUserDefinedStyleSheets(TFileName AFileName);
|
|
public: // User declarations
|
|
__fastcall TStylesMultiDemoMainForm(TComponent* Owner);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TStylesMultiDemoMainForm *StylesMultiDemoMainForm;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|