128 return 'Type: separator';
142 public static function getItemConsoleZ($caption, $glyph, $id =
null, $title =
null, $initDir =
null, $command =
null)
144 global $bearsamppTools;
148 $args .=
' -t ""' . $id .
'""';
150 if ($title !=
null) {
151 $args .=
' -w ""' . $title .
'""';
153 if ($initDir !=
null) {
154 $args .=
' -d ""' . $initDir .
'""';
156 if ($command !=
null) {
157 $args .=
' -r ""' . $command .
'""';
162 $bearsamppTools->getConsoleZ()->getExe(),
177 public static function getItemLink($caption, $link, $local =
false, $glyph = self::GLYPH_WEB_PAGE)
221 public static function getItemExe($caption, $exe, $glyph, $params =
null)
223 return 'Type: item; ' .
224 'Caption: "' . $caption .
'"; ' .
226 'FileName: "' . $exe .
'"; ' .
227 (!empty($params) ?
'Parameters: "' . $params .
'"; ' :
'') .
240 return 'Type: item; ' .
241 'Caption: "' . $caption .
'"; ' .
242 'Action: shellexecute; ' .
243 'FileName: "' . $path .
'"; ' .
258 $result =
'Action: ' . $action;
260 if ($service !=
null) {
261 $result =
'Action: service; ' .
262 'Service: ' . $service .
'; ' .
263 'ServiceAction: ' . $action;
268 if ($action == self::SERVICE_START) {
271 } elseif ($action == self::SERVICE_STOP) {
274 } elseif ($action == self::SERVICE_RESTART) {
278 } elseif ($action != self::SERVICES_CLOSE) {
279 $result .=
'; Flags: ignoreerrors waituntilterminated';
380 return '[Messages]' . PHP_EOL .
394 return '[Config]' . PHP_EOL .
395 'ImageList=' . self::IMG_GLYPH_SPRITES . PHP_EOL .
396 'ServiceCheckInterval=1' . PHP_EOL .
397 'TrayIconAllRunning=' . self::GLYPH_SERVICE_ALL_RUNNING . PHP_EOL .
398 'TrayIconSomeRunning=' . self::GLYPH_SERVICE_SOME_RUNNING . PHP_EOL .
399 'TrayIconNoneRunning=' . self::GLYPH_SERVICE_NONE_RUNNING . PHP_EOL .
400 'ID={' . strtolower(
APP_TITLE) .
'}' . PHP_EOL .
402 'AboutVersion=Version ' .
$bearsamppCore->getAppVersion() . PHP_EOL;
412 return '[Menu.Right.Settings]' . PHP_EOL .
413 'BarVisible=no' . PHP_EOL .
414 'SeparatorsAlignment=center' . PHP_EOL .
415 'SeparatorsFade=yes' . PHP_EOL .
416 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
417 'SeparatorsFlatLines=yes' . PHP_EOL .
418 'SeparatorsGradientEnd=clSilver' . PHP_EOL .
419 'SeparatorsGradientStart=clGray' . PHP_EOL .
420 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
421 'SeparatorsSeparatorStyle=shortline' . PHP_EOL;
432 return '[Menu.Left.Settings]' . PHP_EOL .
433 'AutoLineReduction=no' . PHP_EOL .
434 'BarVisible=yes' . PHP_EOL .
435 'BarCaptionAlignment=bottom' . PHP_EOL .
436 'BarCaptionCaption=' . $caption . PHP_EOL .
437 'BarCaptionDepth=1' . PHP_EOL .
438 'BarCaptionDirection=downtoup' . PHP_EOL .
439 'BarCaptionFont=Tahoma,14,clWhite' . PHP_EOL .
440 'BarCaptionHighlightColor=clNone' . PHP_EOL .
441 'BarCaptionOffsetY=0' . PHP_EOL .
442 'BarCaptionShadowColor=clNone' . PHP_EOL .
443 'BarPictureHorzAlignment=center' . PHP_EOL .
444 'BarPictureOffsetX=0' . PHP_EOL .
445 'BarPictureOffsetY=0' . PHP_EOL .
446 'BarPicturePicture=' . self::IMG_BAR_PICTURE . PHP_EOL .
447 'BarPictureTransparent=yes' . PHP_EOL .
448 'BarPictureVertAlignment=bottom' . PHP_EOL .
449 'BarBorder=clNone' . PHP_EOL .
450 'BarGradientEnd=$00c07840' . PHP_EOL .
451 'BarGradientStart=$00c07840' . PHP_EOL .
452 'BarGradientStyle=horizontal' . PHP_EOL .
453 'BarSide=left' . PHP_EOL .
454 'BarSpace=0' . PHP_EOL .
455 'BarWidth=32' . PHP_EOL .
456 'SeparatorsAlignment=center' . PHP_EOL .
457 'SeparatorsFade=yes' . PHP_EOL .
458 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
459 'SeparatorsFlatLines=yes' . PHP_EOL .
460 'SeparatorsFont=Arial,8,clWhite,bold' . PHP_EOL .
461 'SeparatorsGradientEnd=$00FFAA55' . PHP_EOL .
462 'SeparatorsGradientStart=$00550000' . PHP_EOL .
463 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
464 'SeparatorsSeparatorStyle=caption' . PHP_EOL;
const MENU_RESTART_SERVICE
static getItemActionServicesClose()
const GLYPH_SERVICES_START
const GLYPH_SERVICES_STOP
const GLYPH_FOLDER_DISABLED
const GLYPH_SERVICE_REMOVE
static getSectionMessages()
static getItemActionServiceStop($service)
static getItemSeparator()
static getActionService($service, $action, $item=false)
static getItemActionServiceStart($service)
static getItemConsoleZ($caption, $glyph, $id=null, $title=null, $initDir=null, $command=null)
const GLYPH_SERVICE_NONE_RUNNING
static getActionServiceRestart($service)
static getItemActionServiceRestart($service)
static getSectionMenuLeftSettings($caption)
static getActionServiceStart($service)
static getGlyphFlah($lang)
const GLYPH_SERVICES_RESTART
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)
const GLYPH_SSL_CERTIFICATE
static getSectionConfig()
static getActionServiceStop($service)
const GLYPH_SERVICE_ALL_RUNNING
static getActionServicesClose()
const GLYPH_FOLDER_ENABLED
static getItemExplore($caption, $path)
const GLYPH_SERVICE_SOME_RUNNING
static getSectionMenuRightSettings()
static getItemExe($caption, $exe, $glyph, $params=null)
const GLYPH_SERVICE_INSTALL
static getItemNotepad($caption, $path)