PageRenderTime 58ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/fb/cuentas/php-jpgraph/jpgraph_gantt.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 3803 lines | 2788 code | 460 blank | 555 comment | 395 complexity | ccdb6de3d2450e9c5f0dbebb5fa67b40 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*=======================================================================
  3. // File: JPGRAPH_GANTT.PHP
  4. // Description: JpGraph Gantt plot extension
  5. // Created: 2001-11-12
  6. // Ver: $Id: jpgraph_gantt.php 956 2007-11-17 13:19:20Z ljp $
  7. //
  8. // Copyright (c) Aditus Consulting. All rights reserved.
  9. //========================================================================
  10. */
  11. require_once('jpgraph_plotband.php');
  12. require_once('jpgraph_iconplot.php');
  13. require_once('jpgraph_plotmark.inc.php');
  14. // Maximum size for Automatic Gantt chart
  15. DEFINE('MAX_GANTTIMG_SIZE_W',4000);
  16. DEFINE('MAX_GANTTIMG_SIZE_H',5000);
  17. // Scale Header types
  18. DEFINE("GANTT_HDAY",1);
  19. DEFINE("GANTT_HWEEK",2);
  20. DEFINE("GANTT_HMONTH",4);
  21. DEFINE("GANTT_HYEAR",8);
  22. DEFINE("GANTT_HHOUR",16);
  23. DEFINE("GANTT_HMIN",32);
  24. // Bar patterns
  25. DEFINE("GANTT_RDIAG",BAND_RDIAG); // Right diagonal lines
  26. DEFINE("GANTT_LDIAG",BAND_LDIAG); // Left diagonal lines
  27. DEFINE("GANTT_SOLID",BAND_SOLID); // Solid one color
  28. DEFINE("GANTT_VLINE",BAND_VLINE); // Vertical lines
  29. DEFINE("GANTT_HLINE",BAND_HLINE); // Horizontal lines
  30. DEFINE("GANTT_3DPLANE",BAND_3DPLANE); // "3D" Plane
  31. DEFINE("GANTT_HVCROSS",BAND_HVCROSS); // Vertical/Hor crosses
  32. DEFINE("GANTT_DIAGCROSS",BAND_DIAGCROSS); // Diagonal crosses
  33. // Conversion constant
  34. DEFINE("SECPERDAY",3600*24);
  35. // Locales. ONLY KEPT FOR BACKWARDS COMPATIBILITY
  36. // You should use the proper locale strings directly
  37. // from now on.
  38. DEFINE("LOCALE_EN","en_UK");
  39. DEFINE("LOCALE_SV","sv_SE");
  40. // Layout of bars
  41. DEFINE("GANTT_EVEN",1);
  42. DEFINE("GANTT_FROMTOP",2);
  43. // Style for minute header
  44. DEFINE("MINUTESTYLE_MM",0); // 15
  45. DEFINE("MINUTESTYLE_CUSTOM",2); // Custom format
  46. // Style for hour header
  47. DEFINE("HOURSTYLE_HM24",0); // 13:10
  48. DEFINE("HOURSTYLE_HMAMPM",1); // 1:10pm
  49. DEFINE("HOURSTYLE_H24",2); // 13
  50. DEFINE("HOURSTYLE_HAMPM",3); // 1pm
  51. DEFINE("HOURSTYLE_CUSTOM",4); // User defined
  52. // Style for day header
  53. DEFINE("DAYSTYLE_ONELETTER",0); // "M"
  54. DEFINE("DAYSTYLE_LONG",1); // "Monday"
  55. DEFINE("DAYSTYLE_LONGDAYDATE1",2); // "Monday 23 Jun"
  56. DEFINE("DAYSTYLE_LONGDAYDATE2",3); // "Monday 23 Jun 2003"
  57. DEFINE("DAYSTYLE_SHORT",4); // "Mon"
  58. DEFINE("DAYSTYLE_SHORTDAYDATE1",5); // "Mon 23/6"
  59. DEFINE("DAYSTYLE_SHORTDAYDATE2",6); // "Mon 23 Jun"
  60. DEFINE("DAYSTYLE_SHORTDAYDATE3",7); // "Mon 23"
  61. DEFINE("DAYSTYLE_SHORTDATE1",8); // "23/6"
  62. DEFINE("DAYSTYLE_SHORTDATE2",9); // "23 Jun"
  63. DEFINE("DAYSTYLE_SHORTDATE3",10); // "Mon 23"
  64. DEFINE("DAYSTYLE_SHORTDATE4",11); // "23"
  65. DEFINE("DAYSTYLE_CUSTOM",12); // "M"
  66. // Styles for week header
  67. DEFINE("WEEKSTYLE_WNBR",0);
  68. DEFINE("WEEKSTYLE_FIRSTDAY",1);
  69. DEFINE("WEEKSTYLE_FIRSTDAY2",2);
  70. DEFINE("WEEKSTYLE_FIRSTDAYWNBR",3);
  71. DEFINE("WEEKSTYLE_FIRSTDAY2WNBR",4);
  72. // Styles for month header
  73. DEFINE("MONTHSTYLE_SHORTNAME",0);
  74. DEFINE("MONTHSTYLE_LONGNAME",1);
  75. DEFINE("MONTHSTYLE_LONGNAMEYEAR2",2);
  76. DEFINE("MONTHSTYLE_SHORTNAMEYEAR2",3);
  77. DEFINE("MONTHSTYLE_LONGNAMEYEAR4",4);
  78. DEFINE("MONTHSTYLE_SHORTNAMEYEAR4",5);
  79. DEFINE("MONTHSTYLE_FIRSTLETTER",6);
  80. // Types of constrain links
  81. DEFINE('CONSTRAIN_STARTSTART',0);
  82. DEFINE('CONSTRAIN_STARTEND',1);
  83. DEFINE('CONSTRAIN_ENDSTART',2);
  84. DEFINE('CONSTRAIN_ENDEND',3);
  85. // Arrow direction for constrain links
  86. DEFINE('ARROW_DOWN',0);
  87. DEFINE('ARROW_UP',1);
  88. DEFINE('ARROW_LEFT',2);
  89. DEFINE('ARROW_RIGHT',3);
  90. // Arrow type for constrain type
  91. DEFINE('ARROWT_SOLID',0);
  92. DEFINE('ARROWT_OPEN',1);
  93. // Arrow size for constrain lines
  94. DEFINE('ARROW_S1',0);
  95. DEFINE('ARROW_S2',1);
  96. DEFINE('ARROW_S3',2);
  97. DEFINE('ARROW_S4',3);
  98. DEFINE('ARROW_S5',4);
  99. // Activity types for use with utility method CreateSimple()
  100. DEFINE('ACTYPE_NORMAL',0);
  101. DEFINE('ACTYPE_GROUP',1);
  102. DEFINE('ACTYPE_MILESTONE',2);
  103. DEFINE('ACTINFO_3D',1);
  104. DEFINE('ACTINFO_2D',0);
  105. // Check if array_fill() exists
  106. if (!function_exists('array_fill')) {
  107. function array_fill($iStart, $iLen, $vValue) {
  108. $aResult = array();
  109. for ($iCount = $iStart; $iCount < $iLen + $iStart; $iCount++) {
  110. $aResult[$iCount] = $vValue;
  111. }
  112. return $aResult;
  113. }
  114. }
  115. //===================================================
  116. // CLASS GanttActivityInfo
  117. // Description:
  118. //===================================================
  119. class GanttActivityInfo {
  120. public $iShow=true;
  121. public $iLeftColMargin=4,$iRightColMargin=1,$iTopColMargin=1,$iBottomColMargin=3;
  122. public $vgrid = null;
  123. private $iColor='black';
  124. private $iBackgroundColor='lightgray';
  125. private $iFFamily=FF_FONT1,$iFStyle=FS_NORMAL,$iFSize=10,$iFontColor='black';
  126. private $iTitles=array();
  127. private $iWidth=array(),$iHeight=-1;
  128. private $iTopHeaderMargin = 4;
  129. private $iStyle=1;
  130. private $iHeaderAlign='center';
  131. function GanttActivityInfo() {
  132. $this->vgrid = new LineProperty();
  133. }
  134. function Hide($aF=true) {
  135. $this->iShow=!$aF;
  136. }
  137. function Show($aF=true) {
  138. $this->iShow=$aF;
  139. }
  140. // Specify font
  141. function SetFont($aFFamily,$aFStyle=FS_NORMAL,$aFSize=10) {
  142. $this->iFFamily = $aFFamily;
  143. $this->iFStyle = $aFStyle;
  144. $this->iFSize = $aFSize;
  145. }
  146. function SetStyle($aStyle) {
  147. $this->iStyle = $aStyle;
  148. }
  149. function SetColumnMargin($aLeft,$aRight) {
  150. $this->iLeftColMargin = $aLeft;
  151. $this->iRightColMargin = $aRight;
  152. }
  153. function SetFontColor($aFontColor) {
  154. $this->iFontColor = $aFontColor;
  155. }
  156. function SetColor($aColor) {
  157. $this->iColor = $aColor;
  158. }
  159. function SetBackgroundColor($aColor) {
  160. $this->iBackgroundColor = $aColor;
  161. }
  162. function SetColTitles($aTitles,$aWidth=null) {
  163. $this->iTitles = $aTitles;
  164. $this->iWidth = $aWidth;
  165. }
  166. function SetMinColWidth($aWidths) {
  167. $n = min(count($this->iTitles),count($aWidths));
  168. for($i=0; $i < $n; ++$i ) {
  169. if( !empty($aWidths[$i]) ) {
  170. if( empty($this->iWidth[$i]) ) {
  171. $this->iWidth[$i] = $aWidths[$i];
  172. }
  173. else {
  174. $this->iWidth[$i] = max($this->iWidth[$i],$aWidths[$i]);
  175. }
  176. }
  177. }
  178. }
  179. function GetWidth($aImg) {
  180. $txt = new TextProperty();
  181. $txt->SetFont($this->iFFamily,$this->iFStyle,$this->iFSize);
  182. $n = count($this->iTitles) ;
  183. $rm=$this->iRightColMargin;
  184. $w = 0;
  185. for($h=0, $i=0; $i < $n; ++$i ) {
  186. $w += $this->iLeftColMargin;
  187. $txt->Set($this->iTitles[$i]);
  188. if( !empty($this->iWidth[$i]) ) {
  189. $w1 = max($txt->GetWidth($aImg)+$rm,$this->iWidth[$i]);
  190. }
  191. else {
  192. $w1 = $txt->GetWidth($aImg)+$rm;
  193. }
  194. $this->iWidth[$i] = $w1;
  195. $w += $w1;
  196. $h = max($h,$txt->GetHeight($aImg));
  197. }
  198. $this->iHeight = $h+$this->iTopHeaderMargin;
  199. $txt='';
  200. return $w;
  201. }
  202. function GetColStart($aImg,&$aStart,$aAddLeftMargin=false) {
  203. $n = count($this->iTitles) ;
  204. $adj = $aAddLeftMargin ? $this->iLeftColMargin : 0;
  205. $aStart=array($aImg->left_margin+$adj);
  206. for( $i=1; $i < $n; ++$i ) {
  207. $aStart[$i] = $aStart[$i-1]+$this->iLeftColMargin+$this->iWidth[$i-1];
  208. }
  209. }
  210. // Adjust headers left, right or centered
  211. function SetHeaderAlign($aAlign) {
  212. $this->iHeaderAlign=$aAlign;
  213. }
  214. function Stroke($aImg,$aXLeft,$aYTop,$aXRight,$aYBottom,$aUseTextHeight=false) {
  215. if( !$this->iShow ) return;
  216. $txt = new TextProperty();
  217. $txt->SetFont($this->iFFamily,$this->iFStyle,$this->iFSize);
  218. $txt->SetColor($this->iFontColor);
  219. $txt->SetAlign($this->iHeaderAlign,'top');
  220. $n=count($this->iTitles);
  221. if( $n == 0 )
  222. return;
  223. $x = $aXLeft;
  224. $h = $this->iHeight;
  225. $yTop = $aUseTextHeight ? $aYBottom-$h-$this->iTopColMargin-$this->iBottomColMargin : $aYTop ;
  226. if( $h < 0 ) {
  227. JpGraphError::RaiseL(6001);
  228. //('Internal error. Height for ActivityTitles is < 0');
  229. }
  230. $aImg->SetLineWeight(1);
  231. // Set background color
  232. $aImg->SetColor($this->iBackgroundColor);
  233. $aImg->FilledRectangle($aXLeft,$yTop,$aXRight,$aYBottom-1);
  234. if( $this->iStyle == 1 ) {
  235. // Make a 3D effect
  236. $aImg->SetColor('white');
  237. $aImg->Line($aXLeft,$yTop+1,
  238. $aXRight,$yTop+1);
  239. }
  240. for($i=0; $i < $n; ++$i ) {
  241. if( $this->iStyle == 1 ) {
  242. // Make a 3D effect
  243. $aImg->SetColor('white');
  244. $aImg->Line($x+1,$yTop,$x+1,$aYBottom);
  245. }
  246. $x += $this->iLeftColMargin;
  247. $txt->Set($this->iTitles[$i]);
  248. // Adjust the text anchor position according to the choosen alignment
  249. $xp = $x;
  250. if( $this->iHeaderAlign == 'center' ) {
  251. $xp = (($x-$this->iLeftColMargin)+($x+$this->iWidth[$i]))/2;
  252. }
  253. elseif( $this->iHeaderAlign == 'right' ) {
  254. $xp = $x +$this->iWidth[$i]-$this->iRightColMargin;
  255. }
  256. $txt->Stroke($aImg,$xp,$yTop+$this->iTopHeaderMargin);
  257. $x += $this->iWidth[$i];
  258. if( $i < $n-1 ) {
  259. $aImg->SetColor($this->iColor);
  260. $aImg->Line($x,$yTop,$x,$aYBottom);
  261. }
  262. }
  263. $aImg->SetColor($this->iColor);
  264. $aImg->Line($aXLeft,$yTop, $aXRight,$yTop);
  265. // Stroke vertical column dividers
  266. $cols=array();
  267. $this->GetColStart($aImg,$cols);
  268. $n=count($cols);
  269. for( $i=1; $i < $n; ++$i ) {
  270. $this->vgrid->Stroke($aImg,$cols[$i],$aYBottom,$cols[$i],
  271. $aImg->height - $aImg->bottom_margin);
  272. }
  273. }
  274. }
  275. //===================================================
  276. // CLASS GanttGraph
  277. // Description: Main class to handle gantt graphs
  278. //===================================================
  279. class GanttGraph extends Graph {
  280. public $scale; // Public accessible
  281. public $hgrid=null;
  282. private $iObj=array(); // Gantt objects
  283. private $iLabelHMarginFactor=0.2; // 10% margin on each side of the labels
  284. private $iLabelVMarginFactor=0.4; // 40% margin on top and bottom of label
  285. private $iLayout=GANTT_FROMTOP; // Could also be GANTT_EVEN
  286. private $iSimpleFont = FF_FONT1,$iSimpleFontSize=11;
  287. private $iSimpleStyle=GANTT_RDIAG,$iSimpleColor='yellow',$iSimpleBkgColor='red';
  288. private $iSimpleProgressBkgColor='gray',$iSimpleProgressColor='darkgreen';
  289. private $iSimpleProgressStyle=GANTT_SOLID;
  290. //---------------
  291. // CONSTRUCTOR
  292. // Create a new gantt graph
  293. function GanttGraph($aWidth=0,$aHeight=0,$aCachedName="",$aTimeOut=0,$aInline=true) {
  294. // Backward compatibility
  295. if( $aWidth == -1 ) $aWidth=0;
  296. if( $aHeight == -1 ) $aHeight=0;
  297. if( $aWidth< 0 || $aHeight < 0 ) {
  298. JpgraphError::RaiseL(6002);
  299. //("You can't specify negative sizes for Gantt graph dimensions. Use 0 to indicate that you want the library to automatically determine a dimension.");
  300. }
  301. Graph::Graph($aWidth,$aHeight,$aCachedName,$aTimeOut,$aInline);
  302. $this->scale = new GanttScale($this->img);
  303. // Default margins
  304. $this->img->SetMargin(15,17,25,15);
  305. $this->hgrid = new HorizontalGridLine();
  306. $this->scale->ShowHeaders(GANTT_HWEEK|GANTT_HDAY);
  307. $this->SetBox();
  308. }
  309. //---------------
  310. // PUBLIC METHODS
  311. //
  312. function SetSimpleFont($aFont,$aSize) {
  313. $this->iSimpleFont = $aFont;
  314. $this->iSimpleFontSize = $aSize;
  315. }
  316. function SetSimpleStyle($aBand,$aColor,$aBkgColor) {
  317. $this->iSimpleStyle = $aBand;
  318. $this->iSimpleColor = $aColor;
  319. $this->iSimpleBkgColor = $aBkgColor;
  320. }
  321. // A utility function to help create basic Gantt charts
  322. function CreateSimple($data,$constrains=array(),$progress=array()) {
  323. $num = count($data);
  324. for( $i=0; $i < $num; ++$i) {
  325. switch( $data[$i][1] ) {
  326. case ACTYPE_GROUP:
  327. // Create a slightly smaller height bar since the
  328. // "wings" at the end will make it look taller
  329. $a = new GanttBar($data[$i][0],$data[$i][2],$data[$i][3],$data[$i][4],'',8);
  330. $a->title->SetFont($this->iSimpleFont,FS_BOLD,$this->iSimpleFontSize);
  331. $a->rightMark->Show();
  332. $a->rightMark->SetType(MARK_RIGHTTRIANGLE);
  333. $a->rightMark->SetWidth(8);
  334. $a->rightMark->SetColor('black');
  335. $a->rightMark->SetFillColor('black');
  336. $a->leftMark->Show();
  337. $a->leftMark->SetType(MARK_LEFTTRIANGLE);
  338. $a->leftMark->SetWidth(8);
  339. $a->leftMark->SetColor('black');
  340. $a->leftMark->SetFillColor('black');
  341. $a->SetPattern(BAND_SOLID,'black');
  342. $csimpos = 6;
  343. break;
  344. case ACTYPE_NORMAL:
  345. $a = new GanttBar($data[$i][0],$data[$i][2],$data[$i][3],$data[$i][4],'',10);
  346. $a->title->SetFont($this->iSimpleFont,FS_NORMAL,$this->iSimpleFontSize);
  347. $a->SetPattern($this->iSimpleStyle,$this->iSimpleColor);
  348. $a->SetFillColor($this->iSimpleBkgColor);
  349. // Check if this activity should have a constrain line
  350. $n = count($constrains);
  351. for( $j=0; $j < $n; ++$j ) {
  352. if( empty($constrains[$j]) || (count($constrains[$j]) != 3) ) {
  353. JpGraphError::RaiseL(6003,$j);
  354. //("Invalid format for Constrain parameter at index=$j in CreateSimple(). Parameter must start with index 0 and contain arrays of (Row,Constrain-To,Constrain-Type)");
  355. }
  356. if( $constrains[$j][0]==$data[$i][0] ) {
  357. $a->SetConstrain($constrains[$j][1],$constrains[$j][2],'black',ARROW_S2,ARROWT_SOLID);
  358. }
  359. }
  360. // Check if this activity have a progress bar
  361. $n = count($progress);
  362. for( $j=0; $j < $n; ++$j ) {
  363. if( empty($progress[$j]) || (count($progress[$j]) != 2) ) {
  364. JpGraphError::RaiseL(6004,$j);
  365. //("Invalid format for Progress parameter at index=$j in CreateSimple(). Parameter must start with index 0 and contain arrays of (Row,Progress)");
  366. }
  367. if( $progress[$j][0]==$data[$i][0] ) {
  368. $a->progress->Set($progress[$j][1]);
  369. $a->progress->SetPattern($this->iSimpleProgressStyle,
  370. $this->iSimpleProgressColor);
  371. $a->progress->SetFillColor($this->iSimpleProgressBkgColor);
  372. //$a->progress->SetPattern($progress[$j][2],$progress[$j][3]);
  373. break;
  374. }
  375. }
  376. $csimpos = 6;
  377. break;
  378. case ACTYPE_MILESTONE:
  379. $a = new MileStone($data[$i][0],$data[$i][2],$data[$i][3]);
  380. $a->title->SetFont($this->iSimpleFont,FS_NORMAL,$this->iSimpleFontSize);
  381. $a->caption->SetFont($this->iSimpleFont,FS_NORMAL,$this->iSimpleFontSize);
  382. $csimpos = 5;
  383. break;
  384. default:
  385. die('Unknown activity type');
  386. break;
  387. }
  388. // Setup caption
  389. $a->caption->Set($data[$i][$csimpos-1]);
  390. // Check if this activity should have a CSIM target ?
  391. if( !empty($data[$i][$csimpos]) ) {
  392. $a->SetCSIMTarget($data[$i][$csimpos]);
  393. $a->SetCSIMAlt($data[$i][$csimpos+1]);
  394. }
  395. if( !empty($data[$i][$csimpos+2]) ) {
  396. $a->title->SetCSIMTarget($data[$i][$csimpos+2]);
  397. $a->title->SetCSIMAlt($data[$i][$csimpos+3]);
  398. }
  399. $this->Add($a);
  400. }
  401. }
  402. // Set what headers should be shown
  403. function ShowHeaders($aFlg) {
  404. $this->scale->ShowHeaders($aFlg);
  405. }
  406. // Specify the fraction of the font height that should be added
  407. // as vertical margin
  408. function SetLabelVMarginFactor($aVal) {
  409. $this->iLabelVMarginFactor = $aVal;
  410. }
  411. // Synonym to the method above
  412. function SetVMarginFactor($aVal) {
  413. $this->iLabelVMarginFactor = $aVal;
  414. }
  415. // Add a new Gantt object
  416. function Add($aObject) {
  417. if( is_array($aObject) && count($aObject) > 0 ) {
  418. $cl = $aObject[0];
  419. if( class_exists('IconPlot',false) && ($cl instanceof IconPlot) ) {
  420. $this->AddIcon($aObject);
  421. }
  422. else {
  423. $n = count($aObject);
  424. for($i=0; $i < $n; ++$i)
  425. $this->iObj[] = $aObject[$i];
  426. }
  427. }
  428. else {
  429. if( class_exists('IconPlot',false) && ($aObject instanceof IconPlot) ) {
  430. $this->AddIcon($aObject);
  431. }
  432. else {
  433. $this->iObj[] = $aObject;
  434. }
  435. }
  436. }
  437. // Override inherit method from Graph and give a warning message
  438. function SetScale($aAxisType,$aYMin=1,$aYMax=1,$aXMin=1,$aXMax=1) {
  439. JpGraphError::RaiseL(6005);
  440. //("SetScale() is not meaningfull with Gantt charts.");
  441. }
  442. // Specify the date range for Gantt graphs (if this is not set it will be
  443. // automtically determined from the input data)
  444. function SetDateRange($aStart,$aEnd) {
  445. // Adjust the start and end so that the indicate the
  446. // begining and end of respective start and end days
  447. if( strpos($aStart,':') === false )
  448. $aStart = date('Y-m-d 00:00',strtotime($aStart));
  449. if( strpos($aEnd,':') === false )
  450. $aEnd = date('Y-m-d 23:59',strtotime($aEnd));
  451. $this->scale->SetRange($aStart,$aEnd);
  452. }
  453. // Get the maximum width of the activity titles columns for the bars
  454. // The name is lightly misleading since we from now on can have
  455. // multiple columns in the label section. When this was first written
  456. // it only supported a single label, hence the name.
  457. function GetMaxLabelWidth() {
  458. $m=10;
  459. if( $this->iObj != null ) {
  460. $marg = $this->scale->actinfo->iLeftColMargin+$this->scale->actinfo->iRightColMargin;
  461. $n = count($this->iObj);
  462. for($i=0; $i < $n; ++$i) {
  463. if( !empty($this->iObj[$i]->title) ) {
  464. if( $this->iObj[$i]->title->HasTabs() ) {
  465. list($tot,$w) = $this->iObj[$i]->title->GetWidth($this->img,true);
  466. $m=max($m,$tot);
  467. }
  468. else
  469. $m=max($m,$this->iObj[$i]->title->GetWidth($this->img));
  470. }
  471. }
  472. }
  473. return $m;
  474. }
  475. // Get the maximum height of the titles for the bars
  476. function GetMaxLabelHeight() {
  477. $m=10;
  478. if( $this->iObj != null ) {
  479. $n = count($this->iObj);
  480. for($i=0; $i < $n; ++$i) {
  481. if( !empty($this->iObj[$i]->title) ) {
  482. $m=max($m,$this->iObj[$i]->title->GetHeight($this->img));
  483. }
  484. }
  485. }
  486. return $m;
  487. }
  488. function GetMaxBarAbsHeight() {
  489. $m=0;
  490. if( $this->iObj != null ) {
  491. $m = $this->iObj[0]->GetAbsHeight($this->img);
  492. $n = count($this->iObj);
  493. for($i=1; $i < $n; ++$i) {
  494. $m=max($m,$this->iObj[$i]->GetAbsHeight($this->img));
  495. }
  496. }
  497. return $m;
  498. }
  499. // Get the maximum used line number (vertical position) for bars
  500. function GetBarMaxLineNumber() {
  501. $m=1;
  502. if( $this->iObj != null ) {
  503. $m = $this->iObj[0]->GetLineNbr();
  504. $n = count($this->iObj);
  505. for($i=1; $i < $n; ++$i) {
  506. $m=max($m,$this->iObj[$i]->GetLineNbr());
  507. }
  508. }
  509. return $m;
  510. }
  511. // Get the minumum and maximum used dates for all bars
  512. function GetBarMinMax() {
  513. $start = 0 ;
  514. $n = count($this->iObj);
  515. while( $start < $n && $this->iObj[$start]->GetMaxDate() === false )
  516. ++$start;
  517. if( $start >= $n ) {
  518. JpgraphError::RaiseL(6006);
  519. //('Cannot autoscale Gantt chart. No dated activities exist. [GetBarMinMax() start >= n]');
  520. }
  521. $max=$this->scale->NormalizeDate($this->iObj[$start]->GetMaxDate());
  522. $min=$this->scale->NormalizeDate($this->iObj[$start]->GetMinDate());
  523. for($i=$start+1; $i < $n; ++$i) {
  524. $rmax = $this->scale->NormalizeDate($this->iObj[$i]->GetMaxDate());
  525. if( $rmax != false )
  526. $max=Max($max,$rmax);
  527. $rmin = $this->scale->NormalizeDate($this->iObj[$i]->GetMinDate());
  528. if( $rmin != false )
  529. $min=Min($min,$rmin);
  530. }
  531. $minDate = date("Y-m-d",$min);
  532. $min = strtotime($minDate);
  533. $maxDate = date("Y-m-d 23:59",$max);
  534. $max = strtotime($maxDate);
  535. return array($min,$max);
  536. }
  537. // Create a new auto sized canvas if the user hasn't specified a size
  538. // The size is determined by what scale the user has choosen and hence
  539. // the minimum width needed to display the headers. Some margins are
  540. // also added to make it better looking.
  541. function AutoSize() {
  542. if( $this->img->img == null ) {
  543. // The predefined left, right, top, bottom margins.
  544. // Note that the top margin might incease depending on
  545. // the title.
  546. $lm = $this->img->left_margin;
  547. $rm = $this->img->right_margin;
  548. $rm += 2 ;
  549. $tm = $this->img->top_margin;
  550. $bm = $this->img->bottom_margin;
  551. $bm += 1;
  552. if( BRAND_TIMING ) $bm += 10;
  553. // First find out the height
  554. $n=$this->GetBarMaxLineNumber()+1;
  555. $m=max($this->GetMaxLabelHeight(),$this->GetMaxBarAbsHeight());
  556. $height=$n*((1+$this->iLabelVMarginFactor)*$m);
  557. // Add the height of the scale titles
  558. $h=$this->scale->GetHeaderHeight();
  559. $height += $h;
  560. // Calculate the top margin needed for title and subtitle
  561. if( $this->title->t != "" ) {
  562. $tm += $this->title->GetFontHeight($this->img);
  563. }
  564. if( $this->subtitle->t != "" ) {
  565. $tm += $this->subtitle->GetFontHeight($this->img);
  566. }
  567. // ...and then take the bottom and top plot margins into account
  568. $height += $tm + $bm + $this->scale->iTopPlotMargin + $this->scale->iBottomPlotMargin;
  569. // Now find the minimum width for the chart required
  570. // If day scale or smaller is shown then we use the day font width
  571. // as the base size unit.
  572. // If only weeks or above is displayed we use a modified unit to
  573. // get a smaller image.
  574. if( $this->scale->IsDisplayHour() || $this->scale->IsDisplayMinute() ) {
  575. // Add 2 pixel margin on each side
  576. $fw=$this->scale->day->GetFontWidth($this->img)+4;
  577. }
  578. elseif( $this->scale->IsDisplayWeek() ) {
  579. $fw = 8;
  580. }
  581. elseif( $this->scale->IsDisplayMonth() ) {
  582. $fw = 4;
  583. }
  584. else {
  585. $fw = 2;
  586. }
  587. $nd=$this->scale->GetNumberOfDays();
  588. if( $this->scale->IsDisplayDay() ) {
  589. // If the days are displayed we also need to figure out
  590. // how much space each day's title will require.
  591. switch( $this->scale->day->iStyle ) {
  592. case DAYSTYLE_LONG :
  593. $txt = "Monday";
  594. break;
  595. case DAYSTYLE_LONGDAYDATE1 :
  596. $txt = "Monday 23 Jun";
  597. break;
  598. case DAYSTYLE_LONGDAYDATE2 :
  599. $txt = "Monday 23 Jun 2003";
  600. break;
  601. case DAYSTYLE_SHORT :
  602. $txt = "Mon";
  603. break;
  604. case DAYSTYLE_SHORTDAYDATE1 :
  605. $txt = "Mon 23/6";
  606. break;
  607. case DAYSTYLE_SHORTDAYDATE2 :
  608. $txt = "Mon 23 Jun";
  609. break;
  610. case DAYSTYLE_SHORTDAYDATE3 :
  611. $txt = "Mon 23";
  612. break;
  613. case DAYSTYLE_SHORTDATE1 :
  614. $txt = "23/6";
  615. break;
  616. case DAYSTYLE_SHORTDATE2 :
  617. $txt = "23 Jun";
  618. break;
  619. case DAYSTYLE_SHORTDATE3 :
  620. $txt = "Mon 23";
  621. break;
  622. case DAYSTYLE_SHORTDATE4 :
  623. $txt = "88";
  624. break;
  625. case DAYSTYLE_CUSTOM :
  626. $txt = date($this->scale->day->iLabelFormStr,
  627. strtotime('2003-12-20 18:00'));
  628. break;
  629. case DAYSTYLE_ONELETTER :
  630. default:
  631. $txt = "M";
  632. break;
  633. }
  634. $fw = $this->scale->day->GetStrWidth($this->img,$txt)+6;
  635. }
  636. // If we have hours enabled we must make sure that each day has enough
  637. // space to fit the number of hours to be displayed.
  638. if( $this->scale->IsDisplayHour() ) {
  639. // Depending on what format the user has choose we need different amount
  640. // of space. We therefore create a typical string for the choosen format
  641. // and determine the length of that string.
  642. switch( $this->scale->hour->iStyle ) {
  643. case HOURSTYLE_HMAMPM:
  644. $txt = '12:00pm';
  645. break;
  646. case HOURSTYLE_H24:
  647. // 13
  648. $txt = '24';
  649. break;
  650. case HOURSTYLE_HAMPM:
  651. $txt = '12pm';
  652. break;
  653. case HOURSTYLE_CUSTOM:
  654. $txt = date($this->scale->hour->iLabelFormStr,strtotime('2003-12-20 18:00'));
  655. break;
  656. case HOURSTYLE_HM24:
  657. default:
  658. $txt = '24:00';
  659. break;
  660. }
  661. $hfw = $this->scale->hour->GetStrWidth($this->img,$txt)+6;
  662. $mw = $hfw;
  663. if( $this->scale->IsDisplayMinute() ) {
  664. // Depending on what format the user has choose we need different amount
  665. // of space. We therefore create a typical string for the choosen format
  666. // and determine the length of that string.
  667. switch( $this->scale->minute->iStyle ) {
  668. case HOURSTYLE_CUSTOM:
  669. $txt2 = date($this->scale->minute->iLabelFormStr,strtotime('2005-05-15 18:55'));
  670. break;
  671. case MINUTESTYLE_MM:
  672. default:
  673. $txt2 = '15';
  674. break;
  675. }
  676. $mfw = $this->scale->minute->GetStrWidth($this->img,$txt2)+6;
  677. $n2 = ceil(60 / $this->scale->minute->GetIntervall() );
  678. $mw = $n2 * $mfw;
  679. }
  680. $hfw = $hfw < $mw ? $mw : $hfw ;
  681. $n = ceil(24*60 / $this->scale->TimeToMinutes($this->scale->hour->GetIntervall()) );
  682. $hw = $n * $hfw;
  683. $fw = $fw < $hw ? $hw : $fw ;
  684. }
  685. // We need to repeat this code block here as well.
  686. // THIS iS NOT A MISTAKE !
  687. // We really need it since we need to adjust for minutes both in the case
  688. // where hour scale is shown and when it is not shown.
  689. if( $this->scale->IsDisplayMinute() ) {
  690. // Depending on what format the user has choose we need different amount
  691. // of space. We therefore create a typical string for the choosen format
  692. // and determine the length of that string.
  693. switch( $this->scale->minute->iStyle ) {
  694. case HOURSTYLE_CUSTOM:
  695. $txt = date($this->scale->minute->iLabelFormStr,strtotime('2005-05-15 18:55'));
  696. break;
  697. case MINUTESTYLE_MM:
  698. default:
  699. $txt = '15';
  700. break;
  701. }
  702. $mfw = $this->scale->minute->GetStrWidth($this->img,$txt)+6;
  703. $n = ceil(60 / $this->scale->TimeToMinutes($this->scale->minute->GetIntervall()) );
  704. $mw = $n * $mfw;
  705. $fw = $fw < $mw ? $mw : $fw ;
  706. }
  707. // If we display week we must make sure that 7*$fw is enough
  708. // to fit up to 10 characters of the week font (if the week is enabled)
  709. if( $this->scale->IsDisplayWeek() ) {
  710. // Depending on what format the user has choose we need different amount
  711. // of space
  712. $fsw = strlen($this->scale->week->iLabelFormStr);
  713. if( $this->scale->week->iStyle==WEEKSTYLE_FIRSTDAY2WNBR ) {
  714. $fsw += 8;
  715. }
  716. elseif( $this->scale->week->iStyle==WEEKSTYLE_FIRSTDAYWNBR ) {
  717. $fsw += 7;
  718. }
  719. else {
  720. $fsw += 4;
  721. }
  722. $ww = $fsw*$this->scale->week->GetFontWidth($this->img);
  723. if( 7*$fw < $ww ) {
  724. $fw = ceil($ww/7);
  725. }
  726. }
  727. if( !$this->scale->IsDisplayDay() && !$this->scale->IsDisplayHour() &&
  728. !( ($this->scale->week->iStyle==WEEKSTYLE_FIRSTDAYWNBR ||
  729. $this->scale->week->iStyle==WEEKSTYLE_FIRSTDAY2WNBR) && $this->scale->IsDisplayWeek() ) ) {
  730. // If we don't display the individual days we can shrink the
  731. // scale a little bit. This is a little bit pragmatic at the
  732. // moment and should be re-written to take into account
  733. // a) What scales exactly are shown and
  734. // b) what format do they use so we know how wide we need to
  735. // make each scale text space at minimum.
  736. $fw /= 2;
  737. if( !$this->scale->IsDisplayWeek() ) {
  738. $fw /= 1.8;
  739. }
  740. }
  741. $cw = $this->GetMaxActInfoColWidth() ;
  742. $this->scale->actinfo->SetMinColWidth($cw);
  743. if( $this->img->width <= 0 ) {
  744. // Now determine the width for the activity titles column
  745. // Firdst find out the maximum width of each object column
  746. $titlewidth = max(max($this->GetMaxLabelWidth(),
  747. $this->scale->tableTitle->GetWidth($this->img)),
  748. $this->scale->actinfo->GetWidth($this->img));
  749. // Add the width of the vertivcal divider line
  750. $titlewidth += $this->scale->divider->iWeight*2;
  751. // Now get the total width taking
  752. // titlewidth, left and rigt margin, dayfont size
  753. // into account
  754. $width = $titlewidth + $nd*$fw + $lm+$rm;
  755. }
  756. else {
  757. $width = $this->img->width;
  758. }
  759. $width = round($width);
  760. $height = round($height);
  761. // Make a sanity check on image size
  762. if( $width > MAX_GANTTIMG_SIZE_W || $height > MAX_GANTTIMG_SIZE_H ) {
  763. JpgraphError::RaiseL(6007,$width,$height);
  764. //("Sanity check for automatic Gantt chart size failed. Either the width (=$width) or height (=$height) is larger than MAX_GANTTIMG_SIZE. This could potentially be caused by a wrong date in one of the activities.");
  765. }
  766. $this->img->CreateImgCanvas($width,$height);
  767. $this->img->SetMargin($lm,$rm,$tm,$bm);
  768. }
  769. }
  770. // Return an array width the maximum width for each activity
  771. // column. This is used when we autosize the columns where we need
  772. // to find out the maximum width of each column. In order to do that we
  773. // must walk through all the objects, sigh...
  774. function GetMaxActInfoColWidth() {
  775. $n = count($this->iObj);
  776. if( $n == 0 ) return;
  777. $w = array();
  778. $m = $this->scale->actinfo->iLeftColMargin + $this->scale->actinfo->iRightColMargin;
  779. for( $i=0; $i < $n; ++$i ) {
  780. $tmp = $this->iObj[$i]->title->GetColWidth($this->img,$m);
  781. $nn = count($tmp);
  782. for( $j=0; $j < $nn; ++$j ) {
  783. if( empty($w[$j]) )
  784. $w[$j] = $tmp[$j];
  785. else
  786. $w[$j] = max($w[$j],$tmp[$j]);
  787. }
  788. }
  789. return $w;
  790. }
  791. // Stroke the gantt chart
  792. function Stroke($aStrokeFileName="") {
  793. // If the filename is the predefined value = '_csim_special_'
  794. // we assume that the call to stroke only needs to do enough
  795. // to correctly generate the CSIM maps.
  796. // We use this variable to skip things we don't strictly need
  797. // to do to generate the image map to improve performance
  798. // a best we can. Therefor you will see a lot of tests !$_csim in the
  799. // code below.
  800. $_csim = ($aStrokeFileName===_CSIM_SPECIALFILE);
  801. // Should we autoscale dates?
  802. if( !$this->scale->IsRangeSet() ) {
  803. list($min,$max) = $this->GetBarMinMax();
  804. $this->scale->SetRange($min,$max);
  805. }
  806. $this->scale->AdjustStartEndDay();
  807. // Check if we should autoscale the image
  808. $this->AutoSize();
  809. // Should we start from the top or just spread the bars out even over the
  810. // available height
  811. $this->scale->SetVertLayout($this->iLayout);
  812. if( $this->iLayout == GANTT_FROMTOP ) {
  813. $maxheight=max($this->GetMaxLabelHeight(),$this->GetMaxBarAbsHeight());
  814. $this->scale->SetVertSpacing($maxheight*(1+$this->iLabelVMarginFactor));
  815. }
  816. // If it hasn't been set find out the maximum line number
  817. if( $this->scale->iVertLines == -1 )
  818. $this->scale->iVertLines = $this->GetBarMaxLineNumber()+1;
  819. $maxwidth=max($this->scale->actinfo->GetWidth($this->img),
  820. max($this->GetMaxLabelWidth(),
  821. $this->scale->tableTitle->GetWidth($this->img)));
  822. $this->scale->SetLabelWidth($maxwidth+$this->scale->divider->iWeight);//*(1+$this->iLabelHMarginFactor));
  823. if( !$_csim ) {
  824. $this->StrokePlotArea();
  825. if( $this->iIconDepth == DEPTH_BACK ) {
  826. $this->StrokeIcons();
  827. }
  828. }
  829. $this->scale->Stroke();
  830. if( !$_csim ) {
  831. // Due to a minor off by 1 bug we need to temporarily adjust the margin
  832. $this->img->right_margin--;
  833. $this->StrokePlotBox();
  834. $this->img->right_margin++;
  835. }
  836. // Stroke Grid line
  837. $this->hgrid->Stroke($this->img,$this->scale);
  838. $n = count($this->iObj);
  839. for($i=0; $i < $n; ++$i) {
  840. //$this->iObj[$i]->SetLabelLeftMargin(round($maxwidth*$this->iLabelHMarginFactor/2));
  841. $this->iObj[$i]->Stroke($this->img,$this->scale);
  842. }
  843. $this->StrokeTitles();
  844. if( !$_csim ) {
  845. $this->StrokeConstrains();
  846. $this->footer->Stroke($this->img);
  847. if( $this->iIconDepth == DEPTH_FRONT) {
  848. $this->StrokeIcons();
  849. }
  850. // Should we do any final image transformation
  851. if( $this->iImgTrans ) {
  852. if( !class_exists('ImgTrans',false) ) {
  853. require_once('jpgraph_imgtrans.php');
  854. }
  855. $tform = new ImgTrans($this->img->img);
  856. $this->img->img = $tform->Skew3D($this->iImgTransHorizon,$this->iImgTransSkewDist,
  857. $this->iImgTransDirection,$this->iImgTransHighQ,
  858. $this->iImgTransMinSize,$this->iImgTransFillColor,
  859. $this->iImgTransBorder);
  860. }
  861. // If the filename is given as the special "__handle"
  862. // then the image handler is returned and the image is NOT
  863. // streamed back
  864. if( $aStrokeFileName == _IMG_HANDLER ) {
  865. return $this->img->img;
  866. }
  867. else {
  868. // Finally stream the generated picture
  869. $this->cache->PutAndStream($this->img,$this->cache_name,$this->inline,
  870. $aStrokeFileName);
  871. }
  872. }
  873. }
  874. function StrokeConstrains() {
  875. $n = count($this->iObj);
  876. // Stroke all constrains
  877. for($i=0; $i < $n; ++$i) {
  878. // Some gantt objects may not have constraints associated with them
  879. // for example we can add IconPlots which doesn't have this property.
  880. if( empty($this->iObj[$i]->constraints) ) continue;
  881. $numConstrains = count($this->iObj[$i]->constraints);
  882. for( $k = 0; $k < $numConstrains; $k++ ) {
  883. $vpos = $this->iObj[$i]->constraints[$k]->iConstrainRow;
  884. if( $vpos >= 0 ) {
  885. $c1 = $this->iObj[$i]->iConstrainPos;
  886. // Find out which object is on the target row
  887. $targetobj = -1;
  888. for( $j=0; $j < $n && $targetobj == -1; ++$j ) {
  889. if( $this->iObj[$j]->iVPos == $vpos ) {
  890. $targetobj = $j;
  891. }
  892. }
  893. if( $targetobj == -1 ) {
  894. JpGraphError::RaiseL(6008,$this->iObj[$i]->iVPos,$vpos);
  895. //('You have specifed a constrain from row='.$this->iObj[$i]->iVPos.' to row='.$vpos.' which does not have any activity.');
  896. }
  897. $c2 = $this->iObj[$targetobj]->iConstrainPos;
  898. if( count($c1) == 4 && count($c2 ) == 4) {
  899. switch( $this->iObj[$i]->constraints[$k]->iConstrainType ) {
  900. case CONSTRAIN_ENDSTART:
  901. if( $c1[1] < $c2[1] ) {
  902. $link = new GanttLink($c1[2],$c1[3],$c2[0],$c2[1]);
  903. }
  904. else {
  905. $link = new GanttLink($c1[2],$c1[1],$c2[0],$c2[3]);
  906. }
  907. $link->SetPath(3);
  908. break;
  909. case CONSTRAIN_STARTEND:
  910. if( $c1[1] < $c2[1] ) {
  911. $link = new GanttLink($c1[0],$c1[3],$c2[2],$c2[1]);
  912. }
  913. else {
  914. $link = new GanttLink($c1[0],$c1[1],$c2[2],$c2[3]);
  915. }
  916. $link->SetPath(0);
  917. break;
  918. case CONSTRAIN_ENDEND:
  919. if( $c1[1] < $c2[1] ) {
  920. $link = new GanttLink($c1[2],$c1[3],$c2[2],$c2[1]);
  921. }
  922. else {
  923. $link = new GanttLink($c1[2],$c1[1],$c2[2],$c2[3]);
  924. }
  925. $link->SetPath(1);
  926. break;
  927. case CONSTRAIN_STARTSTART:
  928. if( $c1[1] < $c2[1] ) {
  929. $link = new GanttLink($c1[0],$c1[3],$c2[0],$c2[1]);
  930. }
  931. else {
  932. $link = new GanttLink($c1[0],$c1[1],$c2[0],$c2[3]);
  933. }
  934. $link->SetPath(3);
  935. break;
  936. default:
  937. JpGraphError::RaiseL(6009,$this->iObj[$i]->iVPos,$vpos);
  938. //('Unknown constrain type specified from row='.$this->iObj[$i]->iVPos.' to row='.$vpos);
  939. break;
  940. }
  941. $link->SetColor($this->iObj[$i]->constraints[$k]->iConstrainColor);
  942. $link->SetArrow($this->iObj[$i]->constraints[$k]->iConstrainArrowSize,
  943. $this->iObj[$i]->constraints[$k]->iConstrainArrowType);
  944. $link->Stroke($this->img);
  945. }
  946. }
  947. }
  948. }
  949. }
  950. function GetCSIMAreas() {
  951. if( !$this->iHasStroked )
  952. $this->Stroke(_CSIM_SPECIALFILE);
  953. $csim = $this->title->GetCSIMAreas();
  954. $csim .= $this->subtitle->GetCSIMAreas();
  955. $csim .= $this->subsubtitle->GetCSIMAreas();
  956. $n = count($this->iObj);
  957. for( $i=$n-1; $i >= 0; --$i )
  958. $csim .= $this->iObj[$i]->GetCSIMArea();
  959. return $csim;
  960. }
  961. }
  962. //===================================================
  963. // CLASS PredefIcons
  964. // Description: Predefined icons for use with Gantt charts
  965. //===================================================
  966. DEFINE('GICON_WARNINGRED',0);
  967. DEFINE('GICON_TEXT',1);
  968. DEFINE('GICON_ENDCONS',2);
  969. DEFINE('GICON_MAIL',3);
  970. DEFINE('GICON_STARTCONS',4);
  971. DEFINE('GICON_CALC',5);
  972. DEFINE('GICON_MAGNIFIER',6);
  973. DEFINE('GICON_LOCK',7);
  974. DEFINE('GICON_STOP',8);
  975. DEFINE('GICON_WARNINGYELLOW',9);
  976. DEFINE('GICON_FOLDEROPEN',10);
  977. DEFINE('GICON_FOLDER',11);
  978. DEFINE('GICON_TEXTIMPORTANT',12);
  979. class PredefIcons {
  980. private $iBuiltinIcon = null, $iLen = -1 ;
  981. function GetLen() {
  982. return $this->iLen ;
  983. }
  984. function GetImg($aIdx) {
  985. if( $aIdx < 0 || $aIdx >= $this->iLen ) {
  986. JpGraphError::RaiseL(6010,$aIdx);
  987. //('Illegal icon index for Gantt builtin icon ['.$aIdx.']');
  988. }
  989. return Image::CreateFromString(base64_decode($this->iBuiltinIcon[$aIdx][1]));
  990. }
  991. function PredefIcons() {
  992. //==========================================================
  993. // warning.png
  994. //==========================================================
  995. $this->iBuiltinIcon[0][0]= 1043 ;
  996. $this->iBuiltinIcon[0][1]=
  997. 'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAA'.
  998. 'B3RJTUUH0wgKFSgilWPhUQAAA6BJREFUeNrtl91rHFUYh5/3zMx+Z5JNUoOamCZNaqTZ6IWIkqRiQWmi1IDetHfeiCiltgXBP8AL'.
  999. '0SIUxf/AvfRSBS9EKILFFqyIH9CEmFZtPqrBJLs7c+b1YneT3WTTbNsUFPLCcAbmzPt73o9zzgzs2Z793231UOdv3w9k9Z2uzOdA'.
  1000. '5+2+79yNeL7Hl7hw7oeixRMZ6PJM26W18DNAm/Vh7lR8fqh97NmMF11es1iFpMATqdirwMNA/J4DpIzkr5YsAF1PO6gIMYHRdPwl'.
  1001. 'oO2elmB+qH3sm7XozbkgYvy8SzYnZPtcblyM6I+5z3jQ+0vJfgpEu56BfI9vUkbyi2HZd1QJoeWRiAjBd4SDCW8SSAOy6wBHMzF7'.
  1002. 'YdV2A+ROuvRPLfHoiSU0EMY/cDAIhxJeGngKaN1VgHyPL7NBxI1K9P4QxBzw3K1zJ/zkG8B9uwaQ7/HNsRZv9kohBGD0o7JqMYS/'.
  1003. '/ynPidQw/LrBiPBcS/yFCT95DvB2BWAy4575PaQbQKW+tPd3GCItu2odKI++YxiKu0d26oWmAD7paZU/rLz37VqIijD2YbnzNBBE'.
  1004. 'IBHf8K8qjL7vYhCGErEU8CTg3xXAeMp96GrJEqkyXkm9Bhui1xfsunjdGhcYLq+IzjsGmBt5YH/cmJkFq6gIqlon3u4LxdKGuCIo'.
  1005. 'Qu41g0E41po+2R33Xt5uz9kRIB2UTle7PnfKrROP1HD4sRjZlq0lzhwoZ6rDNeTi3nEg1si/7FT7kYQbXS6E5E65tA5uRF9tutq0'.
  1006. 'K/VwAF+/FbIYWt6+tjQM/AqUms7A4Wy6d7YSfSNxgMmzi0ycWWworio4QJvj4LpuL5BqugTnXzzqJsJwurrlNhJXFaavW67NRw3F'.
  1007. 'q+aJcCQVe9fzvJGmAY7/dPH0gi0f64OveGxa+usCuQMeZ0+kt8BVrX+qPO9Bzx0MgqBvs+a2PfDdYIf+WAjXU1ub4tqNaPPzRs8A'.
  1008. 'blrli+WVn79cXn0cWKl+tGx7HLc7pu3CSmnfitL+l1UihAhwjFkPQev4K/fSABjBM8JCaFuurJU+rgW41SroA8aNMVNAFtgHJCsn'.
  1009. 'XGy/58QVxAC9MccJtZ5kIzNlW440WrJ2ea4YPA9cAooA7i0A/gS+iqLoOpB1HOegqrYB3UBmJrAtQAJwpwPr1Ry92wVlgZsiYlW1'.
  1010. 'uX1gU36dymgqYxJIJJNJT1W9QqHgNwFQBGYqo94OwHZQUuPD7ACglSvc+5n5T9m/wfJJX4U9qzEAAAAASUVORK5CYII=' ;
  1011. //==========================================================
  1012. // edit.png
  1013. //==========================================================
  1014. $this->iBuiltinIcon[1][0]= 959 ;
  1015. $this->iBuiltinIcon[1][1]=
  1016. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAFgAWABY9j+ZuwAAAAlwSFlz'.
  1017. 'AAALEAAACxABrSO9dQAAAAd0SU1FB9AKDAwbIEXOA6AAAAM8SURBVHicpdRPaBxlHMbx76ZvsmOTmm1dsEqQSIIsEmGVBAQjivEQ'.
  1018. 'PAUJngpWsAWlBw8egpQepKwplN4ULEG9CjkEyUFKlSJrWTG0IU51pCsdYW2ncUPjdtp9Z+f3vuNhu8nKbmhaf5cZeGc+PO8zf1Lc'.
  1019. 'm0KhkACICCKCMeaBjiLC0tLSnjNvPmuOHRpH0TZTU1M8zBi9wakzn7OFTs5sw8YYACYmJrre7HkeuVyu69qPF77hlT1XmZ0eQ03O'.
  1020. 'wOLJTvhBx1rLz18VmJ0eY+jVd2FxDkKXnvYLHgb97OgLzE4ON9Hzc1B1QaQzsed5O0Lta3Ec89OnR5h5McfQ+Mw2qgQUnfBOPbZ3'.
  1021. 'bK3l+xOvMT0+3ERLp5FNF6UEjcL32+DdVmGt5WLhDYYPZrbRqreFumXwql0S3w9tnDvLWD5PZigPpdOwuYpSCo3C8wU3UHxQdHbf'.
  1022. 'cZIkNM6dxcnlUM4k1eUFMlUPpUADbpkttFarHe6oYqeOr6yt4RzMQHYUcUsQVtGicHDwKprViuLDkkOtVnsHCHZVRVy/zcj1i5Af'.
  1023. 'h8AjdIts+hUcGcYPK3iBtKM3gD/uAzf/AdY2mmmVgy6X8YNNKmGIvyloPcB8SUin07RQ4EZHFdsdG0wkJEnEaHAJxvKEpSLeaokV'.
  1024. 'r4zWmhUZYLlY4b1D03y5eIEWCtS7vsciAgiIxkQRabWOrlQor66y4pUphoJb1jiO4uO5o0S3q6RSqVbiOmC7VCEgAhLSaDQ48dH7'.
  1025. 'vD46REY0iysegSjKQciRt99ib7qXwX0O+pG4teM6YKHLB9JMq4mTmF9/+AKA4wvLZByH7OgYL7+UY2qvw/7Bfg5kHiXjJFyv3CGO'.
  1026. 'Y1rof+BW4t/XLiPG0DCGr79d4XzRxRnIMn98huXSTYyJ6et1UNYQhRvcinpJq86H3wGPPPM0iBDd+QffD1g4eZjLvuG7S1Wef26E'.
  1027. 'J7L7eSx7gAHVg7V3MSbi6m/r93baBd6qQjerAJg/9Ql/XrvG0ON1+vv7GH3qSfY5fahUnSTpwZgIEQesaVXRPbHRG/xyJSAxMYlp'.
  1028. 'EOm71HUINiY7mGb95l/8jZCyQmJjMDGJjUmsdCROtZ0n/P/Z8v4Fs2MTUUf7vYoAAAAASUVORK5CYII=' ;
  1029. //==========================================================
  1030. // endconstrain.png
  1031. //==========================================================
  1032. $this->iBuiltinIcon[2][0]= 666 ;
  1033. $this->iBuiltinIcon[2][1]=
  1034. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlz'.
  1035. 'AAALDwAACw8BkvkDpQAAAAd0SU1FB9ALEREILkh0+eQAAAIXSURBVHictZU9aFNRFMd/N81HX77aptJUWmp1LHRpIcWhg5sIDlUQ'.
  1036. 'LAXB4t7RRUpwEhy7iQ46CCIoSHcl0CFaoVARU2MFMYktadLXJNok7x2HtCExvuYFmnO4w/3gx+Gc/z1HKRTdMEdXqHbB/sgc/sic'.
  1037. 'nDoYAI8XwDa8o1RMLT+2hAsigtTvbIGVqhX46szUifBGswUeCPgAGB7QeLk0X4Ork+HOxo1VgSqGASjMqkn8W4r4vVtEgI/RRQEL'.
  1038. 'vaoGD85cl5V3nySR/S1mxWxab7f35PnntNyMJeRr9kCMqiHTy09EoeToLwggx6ymiMOD/VwcD7Oa/MHkcIiQx026WGYto5P/U+ZZ'.
  1039. '7gD0QwDuT5z9N3LrVPi0Xs543eQPKkRzaS54eviJIp4tMFQFMllAWN2qcRZHBnixNM8NYD162xq8u7ePSQ+GX2Pjwxc2dB2cLtB8'.
  1040. '7GgamCb0anBYBeChMtl8855CarclxU1gvViiUK4w2OMkNDnGeJ8bt9fH90yOnOkCwLFTwhzykhvtYzOWoBBbY//R3dbaNTYhf2RO'.
  1041. 'QpeuUMzv188MlwuHy0H13HnE48UzMcL0WAtUHX8OxZHoG1URiFw7rnLLCswuSPD1ulze/iWjT2PSf+dBXRFtVVGIvzqph0pQL7VE'.
  1042. 'avXYaXXxPwsnt0imdttCocMmZBdK7YU9D8wuNOW0nXc6QWzPsSa5naZ1beb9BbGB6dxGtMnXAAAAAElFTkSuQmCC' ;
  1043. //==========================================================
  1044. // mail.png
  1045. //==========================================================
  1046. $this->iBuiltinIcon[3][0]= 1122 ;
  1047. $this->iBuiltinIcon[3][1]=
  1048. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlz'.
  1049. 'AAALEAAACxABrSO9dQAAAAd0SU1FB9AJHAMfFvL9OU8AAAPfSURBVHictZRdaBRXFMd/987H7tbNx8aYtGCrEexDsOBDaKHFxirb'.
  1050. 'h0qhsiY0ykppKq1osI99C4H2WSiFFMHWUhXBrjRi0uCmtSEUGgP1QWqhWjGkoW7M1kTX3WRn5p4+TJJNGolQ6IXDnDtz+N0z/3PP'.
  1051. 'UWBIpdpYa23b9g09PZ2kUrOrvmUyGVKp1Ao/mUyi56YnVgWfO/P1CihAd/dJMpmaNROIRq8BkM1m0bH6TasC3j6QXgFdXI+DR6PR'.
  1052. 'JX/Pno8B+KLnMKqlpUU8z8MYs2RBEDzWf9J+0RcRbMdxGBsbw/fmCXwPMUEYID4iAVp8wIRmDIHMo4yHSIBSASKC+CWE0C/PF9jU'.
  1053. '3B6Cp+4M07C5FUtKGNvGwQJctPgIsgD2wRhEIqAMGB+UQYkHJgYYZD7P1HwVlmWhHcfhyk83KeRGUW4t6CgoG5SNUS4KBWgQDUov'.
  1054. '7AGlwYASBVqH0Bk49dXpCviVV3dw/tI1Bvr7kMIIlh0NYUpjlF0BAYvcxSXmEVLKceHSCJm+PnbueBHbtkNwTXUNBzo6aGpq4sSZ'.
  1055. 'GwT5H7BsF6Wdf1GWHQAoM0upeI9PT1yioS7B7tdaSdSuw7KsUGMAy7HYsmUztTW1nMwM0txssX1rlHjjS5jy/Uq2YkK/eJuLl6/z'.
  1056. 'x+1xkslW6mrixGIODx8EFSlEBC0+tmXT0NhA2763iEUjnLv4C8XpUbSbAB1mKkGJ3J83Od77HW5EszvZSqK2iljMIeJaRGNuJePF'.
  1057. '6mspY7BJ1DXwQnCd2fxGRq5OUCz8xt72dyhMZcn++Cu3xu9SKhdp2b4ZHWnAtTSxmIWlhcIjlksR3lNBYzlxZsb7+f7ne+xtSzOd'.
  1058. 'u83szH1OnThOPp/n+a0beeP1l4mvq+PU2Qyd+5PY1RuwlAqLYFaBfbTbyPSdfgaH77A//QF4f1O/vpr6RJyq+C5Kc/M8FbFxXItY'.
  1059. 'xOHDrvfo/fxLDnbsJBp5BowBReVWYAzabeTh5ABDw7cWoNNL3YYYNtSv57lnn6Z+Qx01VeuIuBa2DV1HD3H63BAPZu4u1WGpeLHq'.
  1060. 'Rh7+NcjA0O+0p4+CNwXigwnbWlQQdpuEpli+n+PIkcOc//YKuckJJFh2K2anrjFw+QZt6S6kPImIF/b+cqAJD1LihWAxC61twBTo'.
  1061. 'fPcQF/oGsVW5ovHQlavs2/8+uYnRVSOUgHAmmAClBIOBwKC0gPjhIRgEIX2wg7NnwpZW3d3d4vs+vu8TBMGK51rvPM9b8hdteZxd'.
  1062. 'LBbVR8feJDs0Rlv6GFKeXJ21rNRXESxMPR+CBUl0nN7PjtO+dye7Up/8v1I88bf/ixT/AO1/hZsqW+C6AAAAAElFTkSuQmCC' ;
  1063. //==========================================================
  1064. // startconstrain.png
  1065. //==========================================================
  1066. $this->iBuiltinIcon[4][0]= 725 ;
  1067. $this->iBuiltinIcon[4][1]=
  1068. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlz'.
  1069. 'AAALDgAACw4BQL7hQQAAAAd0SU1FB9ALEREICJp5fBkAAAJSSURBVHic3dS9a1NRGMfx77kxtS+xqS9FG6p1ER3qVJpBQUUc3CRU'.
  1070. 'BwURVLB1EAuKIP0THJQiiNRJBK3iJl18AyeltRZa0bbaJMbUNmlNSm5e7s25j0NqpSSmyag/OMM9POdzDuflwn8djz8gClVRrVEV'.
  1071. 'ur4Bl1FTNSzLrSS6vbml0jUUwSXj8Qfk3PkLtLW2AeBIybmrgz3+gFzpucjlE4f4btuFTuWuCF5XDr3a3UPf6cM8GQvxzbsRAJdh'.
  1072. 'ScfxSywml5j7mVypN0eGEJ0tebIre+zxB6Tv7jPReS2hREpOvpmUXU+H5eC913JnNCSRVE60pUVbWoZjprR39Yq70bdqj4pW7PEH'.
  1073. '5FpvL9e79jOTTHM7ssDL6CJZ08LbvAGnrpZg2mI2Z/MlZfN8IkxuSwu4V9+WIrj7zFlOHfXzKrLIi2SGh5ECKjnNVNxkQEc55vOw'.
  1074. 'rb6O8JLFdHyJ+ayFElUeHvjwkfteL/V7fKTSkFvIQE4DoLI2Mz/muTkTApcBKIwaN8pwIUrKw+ajWwDknAO0d/r4zFaMuRS63sWm'.
  1075. 'RoOdm+vRIriUYjKexrQV+t1o0YEVwfZSVJmD/dIABJuO0LG3lRFx0GOfiAELE9OgCrfU0XnIp5FwGLEy5WEAOxlR5uN+ARhP7GN3'.
  1076. '5w7Gv4bQI2+xpt4jjv2nWBmIlcExE2vDAHYioszBZXw6CPE4ADoWVHmd/tuwlZR9eXYyoszBfpiNQqaAOU5+TXRN+DeeenADPT9b'.
  1077. 'EVgKVsutKPl0TGWGhwofoquaoKK4apsq/tH/e/kFwBMXLgAEKK4AAAAASUVORK5CYII=' ;
  1078. //==========================================================
  1079. // calc.png
  1080. //==========================================================
  1081. $this->iBuiltinIcon[5][0]= 589 ;
  1082. $this->iBuiltinIcon[5][1]=
  1083. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAA4AIwBbgMF12wAAAAlwSFlz'.
  1084. 'AAALEQAACxEBf2RfkQAAAAd0SU1FB9AHBxQeFsqn0wQAAAHKSURBVHicnZWff+RAGIef3U/gcOEgUAgUCgcLhYXCwsHBQeGgUDgs'.
  1085. 'FgMHB4VA/4Bg4XChWFgIFIqBwkJhsRAYeOGF+TQHmWSTTbKd9pU37/x45jvfTDITXEynAbdWKVQB0NazcVm0alcL4rJaRVzm+w/e'.
  1086. '3iwAkzbYRcnnYgI04GCvsxxSPabYaEdt2Ra6D0atcvvvDmyrMWBX1zPq2ircP/Tk98DiJtjV/fim6ziOCL6dDHZNhxQ3arIMsox4'.
  1087. 'vejleL2Ay9+jaw6A+4OSICG2cacGKhsGxg+CxeqAQS0Y7BYJvowq7iGMOhXHEfzpvpQkA9bLKgOgWKt+4Lo1mM9hs9m17QNsJ70P'.
  1088. 'Fjc/O52joogoX8MZKiBiAFxd9Z1vcj9wfSpUlDRNMcYQxzFpmnJ0FPH8nDe1MQaWSz9woQpWSZKEojDkeaWoKAyr1tlu+s48wfVx'.
  1089. 'u7n5i7jthmGIiEGcT+36PP+gFeJrxWLhb0UA/lb4ggGs1T0rZs0zwM/ZjNfilcIY5tutPxgOW3F6dUX464LrKILLiw+A7WErrl+2'.
  1090. 'rABG1EL/BilZP8DjU2uR4U+2E49P1Z8QJmNXUzl24A9GBT0IruCfi86d9x+D12RGzt+pNAAAAABJRU5ErkJggg==' ;
  1091. //==========================================================
  1092. // mag.png
  1093. //==========================================================
  1094. $this->iBuiltinIcon[6][0]= 1415 ;
  1095. $this->iBuiltinIcon[6][1]=
  1096. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlz'.
  1097. 'AAALDAAACwwBP0AiyAAAAAd0SU1FB9ALDxEWDY6Ul+UAAAUESURBVHicdZVrbFRFGIafsyyF0nalV1R6WiggaAptlzsr1OgEogmC'.
  1098. '0IgoBAsBgkIrBAPEhBj/AP6xRTCUFEwRI4jcgsitXMrFCJptJWvBNpXYbbXtbtttt6e7e86ec/yxadlCfZPJZDIz73zzzjfvR2VL'.
  1099. 'F7U+hf0HD2JduIzTFy6SlJRkPtkcDgdCCE65OxFC8NPV6wghyM7OptankJ2dzbSC5QghEEIgCSHog9PpNAF27dlN6miZuPgElB4/'.
  1100. 'nmY3O7ZtByA1NVUCkGWZweD1eklJScESTbqxuIjrd+/x6uIl5M19hSy7nfGOeUxf+g7VjU1sKi7C4/GYsiyz7tAJAD4/cRaA1tZW'.
  1101. 'AHIPnECUVGD1+/3U19ebG4uLeHf1akamjsIwoVnVCOvQEdLoVILYYmMo3PIxSBJflpSaDX5FAmju1QAYv/8k/s8+wLVxOU0jR2LZ'.
  1102. '8sMFAApWrCApbRRDrRZirBYSLBKaoRPQw3SFernf2sav7T0Ubt4KwL4FMwF4Vu8FoHBCKgCzDhwHwLIhZ7y5a89u4m2JhA0wTdDC'.
  1103. 'OrphEjJMNElCHxKDEjaobmvlfo/Krj27CQQCJsCGJW8C0KXqAMxMiosQA8hZWcTFx9OsaniDKh1qmG7VoFsL0x0K06kbeAMhWpRe'.
  1104. '/KpG+gwHAKUnz7Dz3BUMw6DK18nuw99wt0Nh6VdHI8RJicmETQgFg7SFwjSrGv+oKp6ghldV6dZ0ugJBlF6FmCESQ2w2AIqXLsan'.
  1105. 'BrFYLJTnTCBrdBqveeopWZiPFaBHUegJhegMqGgxEkHDwB/UaQ9rdIV06v0+TD2EEQjQFtAY0dsNgNvt5sialQAIIXh7wQKuVf6J'.
  1106. 'gTsSccPDWlQstClBGjr9eHpVWvUQncEwdYEedF8noQ4vmYmpZMTH0nTvDn25vLbrNmu7bvfnsYEbAMnhcPDgwQPzUo2LJusw/mhp'.
  1107. 'QwlHNO0KBAnoIfxtrcQMT2De1Mm891wyUzNlUlJSpIyMDBobGzlzr5rFM/Koq6vrP8ASGxsLwPmKcvIShjPGZiPOakE3VFB8hHwd'.
  1108. 'vJAxhrk5L7Ly+RQuH/sWgPdXrwFg/6HDFBUsIj09nehfbAWwPWOT9n5RYhqGwarNWxkRM5TRCfF4U1PQsDDJFk9uYhwXvzvKjm3b'.
  1109. 'KSsro3DJInNW5RXp7u2bAKSlpeH1esnPz6eqqgqLpmmcr3Fht9ulfaV7mZk1Bs+lM6T1djM9fhg5egDPpTNMy5TZsW07kydPYdWM'.
  1110. 'aXx96ixOp9O8cfUa80srmDpjOgAulytiQqZpMnvObLbt/JTtHxXj9/tRVdU0DGOAufRpevPDTeac0hJyc3NxOOawfv161lVWS6eX'.
  1111. 'z+9/UOCxu1VWVvaTRGv16NFfjB2bNeAQp9NpTpmSM4DcbrdL0WsGDKLRR+52uwe1yP8jb2lpYfikyY9t80n03UCWZeaXVjw1f+zs'.
  1112. 'Oen+/d+pqanhzp2fKSsrw+l0mi6XiyPl5ZGITdN8fAVJwjRNJEmi1qfw1kw7siyTnJxMe3s71dXV3GpoZO64DG41NPJylvxU5D/e'.
  1113. 'qJKsfWQD9IkaZ2RmUvr9aV4aGYcQgjfO3aWoYBF5eXm4ewIsu/CbdPz1aWb0/p1bNoOrQxlUiuiaFo3c3FyEEOx9+C9CCD6paaTW'.
  1114. 'p/TXyYkTJ0Xe59jf7QOyAKDWp/QXxcFQ61P4pT3ShBBcvnUHIQTjxmX19/8BCeVg+/GPpskAAAAASUVORK5CYII=' ;
  1115. //==========================================================
  1116. // lock.png
  1117. //==========================================================
  1118. $this->iBuiltinIcon[7][0]= 963 ;
  1119. $this->iBuiltinIcon[7][1]=
  1120. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlz'.
  1121. 'AAALCwAACwsBbQSEtwAAAAd0SU1FB9AKAw0XDmwMOwIAAANASURBVHic7ZXfS1t3GMY/3+PprI7aisvo2YU6h6ATA8JW4rrlsF4U'.
  1122. 'qiAsF9mhl0N2cYTRy9G/wptAYWPD9iJtRy5asDe7cYFmyjaXOLaMImOrmkRrjL9yTmIS3120JybWQgfb3R74wuc8Lzw858vLOUpE'.
  1123. 'OK6pqSm2trbY39+nu7tbPHYch7m5OcLhMIA67kWj0aMQEWk6tm17rNm2LSIie3t7ksvlJJ1OSyqVkls3Z8SyLMnlcqTTaVKpFLdu'.
  1124. 'zmBZVj1HeY2VUti2TSQSQSml2bZdi0QirK2tMT09zerqKtlslqGhISYnJ4nHv2N+foFsNquOe9FotLlxOBwmk8lgWRbhcFgymYxY'.
  1125. 'liUi0mqaJoAuIi2macrdO7fFsizx3to0Te7euV1vrXtXEgqFmJmZYWVlhXK5LB4/U9kwDL784kYV0A3DYHd3m4sXRymXywKoRi8U'.
  1126. 'Ch01DgQCJBIJLMsiEAhIIpHw2uLz+eqtYrEYIqKZpimxWEyCwaCMjY01zYPBIJpXqVQqsby8TLVabWKA/v5+RkZGMAyDrq4ulFKH'.
  1127. 'HsfjcWZnZ+ns7KTRqwcnk0mKxSKFQqGJlVKtruuSTCYB6O3trW9UI/v9/iZPB/j8s2HOnX0FgHfeXpeffnzK+fWf+fijvhLs0PtG'.
  1128. 'D/n1OJ9+MsrlSwb3733DwMCAt1EyPj6uACYmJp56168NU6nUqFSE9nZdPE7+WqC/r4NKTagcCJVqDaUUB5VDAA4Pa9x7sMLlSwan'.
  1129. 'WjRmv13D7/erpaWlo604qOp88OF7LC48rPNosMq5Th+Dgxd4/XyA1rbzADi7j8jnf2P++wdcvSr8MJ/i8eomAKlUqn41OsDAQDeD'.
  1130. 'g++yuPCwzm/2vU8+n2a7sMFfj79mp7BBuVzioFSiXHJx3SKuW2Rzy0Up9dxnQVvODALQerqNRn4ZKe0Mvtc6TpzpmqbxalcY9Ato'.
  1131. '2v06t515C73YQftZB9GLnDrt4LoujuPgOA4Ui+C6yOpXJwZrJ7r/gv4P/u+D9W7fLxTz+1ScQxrZ3atRLaVxdjbY2d184R6/sLHe'.
  1132. 'opHP7/Do90Ua+WWUyezzZHObP/7cfX54/dowE1d66s8TV3oE+Mfn+L/zb4XmHPjRG9YjAAAAAElFTkSuQmCC' ;
  1133. //==========================================================
  1134. // stop.png
  1135. //==========================================================
  1136. $this->iBuiltinIcon[8][0]= 889 ;
  1137. $this->iBuiltinIcon[8][1]=
  1138. 'iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlz'.
  1139. 'AAALDwAACw8BkvkDpQAAAAd0SU1FB9AJDwEvNyD6M/0AAAL2SURBVHic1ZTLaxVnGIefb2bO5OScHJN4oWrFNqcUJYoUEgU3/Qf6'.
  1140. 'F7gwCkIrvdBLUtqqiLhSg9bgBduFSHZdiG5ctkJ3xRDbUFwUmghNzBDanPGMkzOX79LFJGPMOSd204U/+Bbzvd/78F4H/ieJdoad'.
  1141. 'pZKxRFszAI/DcP0HazXY22v+HB01kee1PA/v3zfnjx4xgGnHcNZe7OvuNj+cOEF1ZATv5nUA4jhBSgmADCVWo8Ge2Of9wb18P/G7'.
  1142. 'oUXmYi30zqlTVEdGWLh1g2D6MYlKkXGE0Vl8aa2GEB149+4xXSzyoOIw/mimiZV/DPb25pFOj13A9gOMEChhUEqhVYqWKUk9QAUp'.
  1143. 'sT/P4s8PmKlUmNhQaIJbkDVqBbpw6wZ2zUc4Nm+ePku5p4eOrgpueQOFUoVCVxcD4+N07dpF9+5tVJeWGPBjhvr7WF1zC8ASgtcP'.
  1144. 'H8a7eZ1odh4sh50nzwCw9ZNh3M4Stutiu0X2nB/LyjZ6lcIbVTpdQU/jWVPzLADM8+ZGBRdtC7wrF/O7bR99iu26VL86iU4SAH4b'.
  1145. 'Po5d6AQhstMSvGyI4wS5FJBKSRwnzF8byx/u+PjzzMF1mfryQ1K/jnCahqp1xEopjFLoNEFJSRJHzF799gWHqa+/QKcSUXBI609f'.
  1146. 'Al5W4teQSiHDOipNUKnMI13RvnOXAIEKQixvGWya98SC560MFwPiqEG86JM8q79Q06lvhnOndy5/B6GPCUOMUu3BQgg8z0M3GmBZ'.
  1147. 'iGJn3v2VmsqnfzNx7FDueODuj8ROCFpjtG5TCmOYv32bJ09msP0ISydMfnAUgF8/O45RAA6WTPjlvXcB+Gn7FuRf/zAnNX6x3ARe'.
  1148. 'PSdmqL+P/YHkwMGDOGWDZTlQcNBRhPEComgB/YeHfq2InF1kLlXUOkpMbio1bd7aATRD/X0M1lPeSlM2vt2X1XBZjZnpLG2tmZO6'.
  1149. 'LbQVOIcP+HG2UauH3xgwBqOz9Cc3l1tC24Fz+MvUDroeGNb5if9H/1dM/wLPCYMw9fryKgAAAABJRU5ErkJggg==' ;
  1150. //==========================================================
  1151. // error.png
  1152. //==========================================================
  1153. $this->iBuiltinIcon[9][0]= 541 ;
  1154. $this->iBuiltinIcon[9][1]=
  1155. 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAaVBMVEX//////2Xy8mLl5V/Z2VvMzFi/v1WyslKlpU+ZmUyMjEh/'.
  1156. 'f0VyckJlZT9YWDxMTDjAwMDy8sLl5bnY2K/MzKW/v5yyspKlpYiYmH+MjHY/PzV/f2xycmJlZVlZWU9MTEXY2Ms/PzwyMjLFTjea'.
  1157. 'AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAHdElNRQfTCAkUMSj9wWSOAAABLUlEQVR4'.
  1158. '2s2U3ZKCMAxGjfzJanFAXFkUle/9H9JUKA1gKTN7Yy6YMjl+kNPK5rlZVSuxf1ZRnlZxFYAm93NnIKvR+MEHUgqBXx93wZGIUrSe'.
  1159. 'h+ctEgbpiMo3iQ4kioHCGxir/ZYUbr7AgPXs9bX0BCYM8vN/cPe8oQYzom3tVsSBMVHEoOJ5dm5F1RsIe9CtqGgRacCAkUvRtevT'.
  1160. 'e2pd6vOWF+gCuc/brcuhyARakBU9FgK5bUBWdHEH8tHpDsZnRTZQGzdLVvQ3CzyYZiTAmSIODEwzFCAdJopuvbpeZDisJ4pKEcjD'.
  1161. 'ijWPJhU1MjCo9dkYfiUVjQNTDKY6CVbR6A0niUSZjRwFanR0l9i/TyvGnFdqwStq5axMfDbyBksld/FUumvxS/Bd9VyJvQDWiiMx'.
  1162. 'iOsCHgAAAABJRU5ErkJggg==' ;
  1163. //==========================================================
  1164. // openfolder.png
  1165. //====…

Large files files are truncated, but you can click here to view the full file