git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@21 05c56307-c608-d34a-929d-697000501d7a
121 lines
4.0 KiB
C++
121 lines
4.0 KiB
C++
//---------------------------------------------------------------------------
|
|
#ifndef MainH
|
|
#define MainH
|
|
//---------------------------------------------------------------------------
|
|
#include <vcl\Classes.hpp>
|
|
#include <vcl\Controls.hpp>
|
|
#include <vcl\StdCtrls.hpp>
|
|
#include <vcl\Forms.hpp>
|
|
#include "dxorgchr.hpp"
|
|
#include <vcl\Menus.hpp>
|
|
#include "dxdborgc.hpp"
|
|
#include <vcl\DBGrids.hpp>
|
|
#include "Grids.hpp"
|
|
#include <vcl\DBTables.hpp>
|
|
#include <vcl\DB.hpp>
|
|
#include <vcl\ComCtrls.hpp>
|
|
#include <vcl\Dialogs.hpp>
|
|
#include "options.h"
|
|
#include <vcl\ExtCtrls.hpp>
|
|
#include <Db.hpp>
|
|
//---------------------------------------------------------------------------
|
|
class TMainForm : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TMainMenu *MainMenu;
|
|
TMenuItem *File1;
|
|
TMenuItem *Exit1;
|
|
TMenuItem *Edit1;
|
|
TMenuItem *AddNode1;
|
|
TMenuItem *AddChildeNode1;
|
|
TMenuItem *RenameNode1;
|
|
TMenuItem *DeleteNode1;
|
|
TMenuItem *View1;
|
|
TMenuItem *ItZoom;
|
|
TMenuItem *ItRotated;
|
|
TMenuItem *ItAnimated;
|
|
TMenuItem *It3D;
|
|
TMenuItem *N1;
|
|
TMenuItem *FullExpand1;
|
|
TMenuItem *FullCollapse1;
|
|
TMenuItem *Options1;
|
|
TTable *Table;
|
|
TDataSource *DataSource;
|
|
TPageControl *PC;
|
|
TTabSheet *tsDBTree;
|
|
TTabSheet *tsTree;
|
|
TdxDbOrgChart *DBTree;
|
|
TDBGrid *DBGrid;
|
|
TImageList *ImageList;
|
|
TdxOrgChart *Tree;
|
|
TColorDialog *ColorDialog;
|
|
TAutoIncField *TableID;
|
|
TIntegerField *TablePARENT;
|
|
TStringField *TableNAME;
|
|
TDateField *TableCDATE;
|
|
TStringField *TableCBY;
|
|
TIntegerField *TableWIDTH;
|
|
TIntegerField *TableHEIGHT;
|
|
TStringField *TableTYPE;
|
|
TIntegerField *TableCOLOR;
|
|
TIntegerField *TableIMAGE;
|
|
TStringField *TableIMAGEALIGN;
|
|
TIntegerField *TableORDER;
|
|
TStringField *TableALIGN;
|
|
TPanel *Panel1;
|
|
TLabel *Label1;
|
|
TEdit *NameEdit;
|
|
TLabel *Label2;
|
|
TLabel *Label3;
|
|
TLabel *Label4;
|
|
TComboBox *cbShape;
|
|
TPanel *PColor;
|
|
TLabel *Label5;
|
|
TLabel *Label8;
|
|
TComboBox *cbAlign;
|
|
TLabel *Label7;
|
|
TComboBox *cbImageAlignment;
|
|
TEdit *seWidth;
|
|
TEdit *seHeight;
|
|
TLabel *Label6;
|
|
TEdit *seImageIndex;
|
|
void __fastcall DBGridDrawColumnCell(TObject *Sender, const TRect &Rect,
|
|
int DataCol, TColumn *Column, TGridDrawState State);
|
|
void __fastcall DBGridColEnter(TObject *Sender);
|
|
void __fastcall Exit1Click(TObject *Sender);
|
|
void __fastcall AddNode1Click(TObject *Sender);
|
|
void __fastcall AddChildeNode1Click(TObject *Sender);
|
|
void __fastcall RenameNode1Click(TObject *Sender);
|
|
void __fastcall DeleteNode1Click(TObject *Sender);
|
|
void __fastcall FormCreate(TObject *Sender);
|
|
void __fastcall PCChange(TObject *Sender);
|
|
void __fastcall ItZoomClick(TObject *Sender);
|
|
void __fastcall ItRotatedClick(TObject *Sender);
|
|
void __fastcall ItAnimatedClick(TObject *Sender);
|
|
void __fastcall It3DClick(TObject *Sender);
|
|
void __fastcall FullExpand1Click(TObject *Sender);
|
|
void __fastcall FullCollapse1Click(TObject *Sender);
|
|
void __fastcall DBTreeCreateNode(TObject *Sender, TdxOcNode *Node);
|
|
void __fastcall TableAfterInsert(TDataSet *DataSet);
|
|
void __fastcall DBGridDblClick(TObject *Sender);
|
|
void __fastcall DBGridKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
|
|
void __fastcall TableTYPEChange(TField *Sender);
|
|
void __fastcall TableALIGNChange(TField *Sender);
|
|
void __fastcall TableIMAGEALIGNChange(TField *Sender);
|
|
void __fastcall Options1Click(TObject *Sender);
|
|
void __fastcall TreeChanging(TObject *Sender, TdxOcNode *Node, bool &Allow);
|
|
void __fastcall NameEditChange(TObject *Sender);
|
|
void __fastcall PColorClick(TObject *Sender);
|
|
void __fastcall TreeCreateNode(TObject *Sender, TdxOcNode *Node);
|
|
private: // User declarations
|
|
public: // User declarations
|
|
__fastcall TMainForm(TComponent* Owner);
|
|
TdxOcShape __fastcall GetShape(AnsiString ShapeName);
|
|
TdxOcNodeAlign __fastcall GetNodeAlign(AnsiString AlignName);
|
|
TdxOcImageAlign __fastcall GetImageAlign(AnsiString AlignName);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern TMainForm *MainForm;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|