00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef INCLUDE_CUBEDOCK_H
00024 #define INCLUDE_CUBEDOCK_H
00025
00026 #include "control.h"
00027 #include "linedock.h"
00028 #include "dock.h"
00029
00034 class CubeDock
00035 {
00036 public:
00037 Control *parent;
00038 LineDock frontTop,frontBottom,frontLeft,frontRight;
00039 Dock frontTopRight,frontTopLeft,frontBottomLeft,frontBottomRight;
00040 LineDock backTop,backBottom,backLeft,backRight;
00041 Dock backTopRight,backTopLeft,backBottomLeft,backBottomRight;
00042
00043 CubeDock()
00044 {
00045 parent=NULL;
00046 }
00047
00048 void Config(Control *_parent,double width=-1)
00049 {
00050 parent=_parent;
00051 frontTop.Set(0,0,0, 1,0,0,width);
00052 frontBottom.Set(0,1,0, 1,1,0,width);
00053 frontLeft.Set(0,0,0, 0,1,0,width);
00054 frontRight.Set(1,0,0, 1,1,0, width);
00055 frontTopLeft.Set(0,0,0,width);
00056 frontTopRight.Set(1,0,0,width);
00057 frontBottomLeft.Set(0,1,0,width);
00058 frontBottomRight.Set(1,1,0,width);
00059 backTop.Set(0,0,1, 1,0,1,width);
00060 backBottom.Set(0,1,1, 1,1,1,width);
00061 backLeft.Set(0,0,1, 0,1,1,width);
00062 backRight.Set(1,0,1, 1,1,1,width);
00063 backTopLeft.Set(0,0,1,width);
00064 backTopRight.Set(1,0,1,width);
00065 backBottomLeft.Set(0,1,1,width);
00066 backBottomRight.Set(1,1,1,width);
00067 }
00068 ~CubeDock()
00069 {
00070 }
00071 };
00072
00073 #endif