127 return 'Type: separator';
141 public static function getItemPowerShell($caption, $glyph, $id =
null, $title =
null, $initDir =
null, $command =
null)
143 global $bearsamppTools;
149 $launchExe = $bearsamppTools->getPowerShell()->getLaunchExe();
155 if ($title !=
null) {
156 $params .=
'--title ""' . $title .
'""';
160 if ($initDir !=
null) {
161 if (!empty($params)) $params .=
' ';
162 $params .=
'--startingDirectory ""' . $initDir .
'""';
166 if ($command !=
null) {
167 if (!empty($params)) $params .=
' ';
168 $params .=
'--command ""' . $command .
'""';
188 public static function getItemLink($caption, $link, $local =
false, $glyph = self::GLYPH_WEB_PAGE)
232 public static function getItemExe($caption, $exe, $glyph, $params =
null)
234 return 'Type: item; ' .
235 'Caption: "' . $caption .
'"; ' .
237 'FileName: "' . $exe .
'"; ' .
238 (!empty($params) ?
'Parameters: "' . $params .
'"; ' :
'') .
251 return 'Type: item; ' .
252 'Caption: "' . $caption .
'"; ' .
253 'Action: shellexecute; ' .
254 'FileName: "' . $path .
'"; ' .
255 'Glyph: ' . self::GLYPH_FOLDER_OPEN;
269 $result =
'Action: ' . $action;
271 if ($service !=
null) {
272 $result =
'Action: service; ' .
273 'Service: ' . $service .
'; ' .
274 'ServiceAction: ' . $action;
279 if ($action == self::SERVICE_START) {
281 '; Glyph: ' . self::GLYPH_START;
282 } elseif ($action == self::SERVICE_STOP) {
284 '; Glyph: ' . self::GLYPH_STOP;
285 } elseif ($action == self::SERVICE_RESTART) {
287 '; Glyph: ' . self::GLYPH_RELOAD;
289 } elseif ($action != self::SERVICES_CLOSE) {
290 $result .=
'; Flags: ignoreerrors waituntilterminated';
391 return '[Messages]' . PHP_EOL .
405 return '[Config]' . PHP_EOL .
406 'ImageList=' . self::IMG_GLYPH_SPRITES . PHP_EOL .
407 'ServiceCheckInterval=1' . PHP_EOL .
408 'TrayIconAllRunning=' . self::GLYPH_SERVICE_ALL_RUNNING . PHP_EOL .
409 'TrayIconSomeRunning=' . self::GLYPH_SERVICE_SOME_RUNNING . PHP_EOL .
410 'TrayIconNoneRunning=' . self::GLYPH_SERVICE_NONE_RUNNING . PHP_EOL .
411 'ID={' . strtolower(
APP_TITLE) .
'}' . PHP_EOL .
413 'AboutVersion=Version ' .
$bearsamppCore->getAppVersion() . PHP_EOL;
423 return '[Menu.Right.Settings]' . PHP_EOL .
424 'BarVisible=no' . PHP_EOL .
425 'SeparatorsAlignment=center' . PHP_EOL .
426 'SeparatorsFade=yes' . PHP_EOL .
427 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
428 'SeparatorsFlatLines=yes' . PHP_EOL .
429 'SeparatorsGradientEnd=clSilver' . PHP_EOL .
430 'SeparatorsGradientStart=clGray' . PHP_EOL .
431 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
432 'SeparatorsSeparatorStyle=shortline' . PHP_EOL;
443 return '[Menu.Left.Settings]' . PHP_EOL .
444 'AutoLineReduction=no' . PHP_EOL .
445 'BarVisible=yes' . PHP_EOL .
446 'BarCaptionAlignment=bottom' . PHP_EOL .
447 'BarCaptionCaption=' . $caption . PHP_EOL .
448 'BarCaptionDepth=1' . PHP_EOL .
449 'BarCaptionDirection=downtoup' . PHP_EOL .
450 'BarCaptionFont=Tahoma,14,clWhite' . PHP_EOL .
451 'BarCaptionHighlightColor=clNone' . PHP_EOL .
452 'BarCaptionOffsetY=0' . PHP_EOL .
453 'BarCaptionShadowColor=clNone' . PHP_EOL .
454 'BarPictureHorzAlignment=center' . PHP_EOL .
455 'BarPictureOffsetX=0' . PHP_EOL .
456 'BarPictureOffsetY=0' . PHP_EOL .
457 'BarPicturePicture=' . self::IMG_BAR_PICTURE . PHP_EOL .
458 'BarPictureTransparent=yes' . PHP_EOL .
459 'BarPictureVertAlignment=bottom' . PHP_EOL .
460 'BarBorder=clNone' . PHP_EOL .
461 'BarGradientEnd=$00c07840' . PHP_EOL .
462 'BarGradientStart=$00c07840' . PHP_EOL .
463 'BarGradientStyle=horizontal' . PHP_EOL .
464 'BarSide=left' . PHP_EOL .
465 'BarSpace=0' . PHP_EOL .
466 'BarWidth=32' . PHP_EOL .
467 'SeparatorsAlignment=center' . PHP_EOL .
468 'SeparatorsFade=yes' . PHP_EOL .
469 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
470 'SeparatorsFlatLines=yes' . PHP_EOL .
471 'SeparatorsFont=Arial,8,clWhite,bold' . PHP_EOL .
472 'SeparatorsGradientEnd=$00FFAA55' . PHP_EOL .
473 'SeparatorsGradientStart=$00550000' . PHP_EOL .
474 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
475 'SeparatorsSeparatorStyle=caption' . PHP_EOL;
const MENU_RESTART_SERVICE
static getActionService($service, $action, $item=false)
static getActionServiceStop($service)
const GLYPH_SERVICE_SOME_RUNNING
static getItemPowerShell($caption, $glyph, $id=null, $title=null, $initDir=null, $command=null)
static getItemExe($caption, $exe, $glyph, $params=null)
const GLYPH_SERVICE_NONE_RUNNING
static getSectionConfig()
const GLYPH_SERVICES_STOP
const GLYPH_FOLDER_DISABLED
const GLYPH_SERVICES_RESTART
const GLYPH_SERVICE_REMOVE
static getItemActionServicesClose()
static getGlyphFlah($lang)
static getActionServiceStart($service)
const GLYPH_FOLDER_ENABLED
static getSectionMessages()
static getItemActionServiceStop($service)
const GLYPH_SERVICES_START
const GLYPH_SERVICE_ALL_RUNNING
static getActionServiceRestart($service)
static getSectionMenuLeftSettings($caption)
static getItemExplore($caption, $path)
const GLYPH_SERVICE_INSTALL
static getItemLink($caption, $link, $local=false, $glyph=self::GLYPH_WEB_PAGE)
static getItemNotepad($caption, $path)
static getSectionMenuRightSettings()
const GLYPH_SSL_CERTIFICATE
static getActionServicesClose()
static getItemActionServiceStart($service)
static getItemSeparator()
static getItemActionServiceRestart($service)