127 return 'Type: separator';
141 public static function getItemConsoleZ($caption, $glyph, $id =
null, $title =
null, $initDir =
null, $command =
null)
143 global $bearsamppTools;
147 $args .=
' -t ""' . $id .
'""';
149 if ($title !=
null) {
150 $args .=
' -w ""' . $title .
'""';
152 if ($initDir !=
null) {
153 $args .=
' -d ""' . $initDir .
'""';
155 if ($command !=
null) {
156 $args .=
' -r ""' . $command .
'""';
161 $bearsamppTools->getConsoleZ()->getExe(),
176 public static function getItemLink($caption, $link, $local =
false, $glyph = self::GLYPH_WEB_PAGE)
220 public static function getItemExe($caption, $exe, $glyph, $params =
null)
222 return 'Type: item; ' .
223 'Caption: "' . $caption .
'"; ' .
225 'FileName: "' . $exe .
'"; ' .
226 (!empty($params) ?
'Parameters: "' . $params .
'"; ' :
'') .
239 return 'Type: item; ' .
240 'Caption: "' . $caption .
'"; ' .
241 'Action: shellexecute; ' .
242 'FileName: "' . $path .
'"; ' .
243 'Glyph: ' . self::GLYPH_FOLDER_OPEN;
257 $result =
'Action: ' . $action;
259 if ($service !=
null) {
260 $result =
'Action: service; ' .
261 'Service: ' . $service .
'; ' .
262 'ServiceAction: ' . $action;
267 if ($action == self::SERVICE_START) {
269 '; Glyph: ' . self::GLYPH_START;
270 } elseif ($action == self::SERVICE_STOP) {
272 '; Glyph: ' . self::GLYPH_STOP;
273 } elseif ($action == self::SERVICE_RESTART) {
275 '; Glyph: ' . self::GLYPH_RELOAD;
277 } elseif ($action != self::SERVICES_CLOSE) {
278 $result .=
'; Flags: ignoreerrors waituntilterminated';
379 return '[Messages]' . PHP_EOL .
393 return '[Config]' . PHP_EOL .
394 'ImageList=' . self::IMG_GLYPH_SPRITES . PHP_EOL .
395 'ServiceCheckInterval=1' . PHP_EOL .
396 'TrayIconAllRunning=' . self::GLYPH_SERVICE_ALL_RUNNING . PHP_EOL .
397 'TrayIconSomeRunning=' . self::GLYPH_SERVICE_SOME_RUNNING . PHP_EOL .
398 'TrayIconNoneRunning=' . self::GLYPH_SERVICE_NONE_RUNNING . PHP_EOL .
399 'ID={' . strtolower(
APP_TITLE) .
'}' . PHP_EOL .
401 'AboutVersion=Version ' .
$bearsamppCore->getAppVersion() . PHP_EOL;
411 return '[Menu.Right.Settings]' . PHP_EOL .
412 'BarVisible=no' . PHP_EOL .
413 'SeparatorsAlignment=center' . PHP_EOL .
414 'SeparatorsFade=yes' . PHP_EOL .
415 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
416 'SeparatorsFlatLines=yes' . PHP_EOL .
417 'SeparatorsGradientEnd=clSilver' . PHP_EOL .
418 'SeparatorsGradientStart=clGray' . PHP_EOL .
419 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
420 'SeparatorsSeparatorStyle=shortline' . PHP_EOL;
431 return '[Menu.Left.Settings]' . PHP_EOL .
432 'AutoLineReduction=no' . PHP_EOL .
433 'BarVisible=yes' . PHP_EOL .
434 'BarCaptionAlignment=bottom' . PHP_EOL .
435 'BarCaptionCaption=' . $caption . PHP_EOL .
436 'BarCaptionDepth=1' . PHP_EOL .
437 'BarCaptionDirection=downtoup' . PHP_EOL .
438 'BarCaptionFont=Tahoma,14,clWhite' . PHP_EOL .
439 'BarCaptionHighlightColor=clNone' . PHP_EOL .
440 'BarCaptionOffsetY=0' . PHP_EOL .
441 'BarCaptionShadowColor=clNone' . PHP_EOL .
442 'BarPictureHorzAlignment=center' . PHP_EOL .
443 'BarPictureOffsetX=0' . PHP_EOL .
444 'BarPictureOffsetY=0' . PHP_EOL .
445 'BarPicturePicture=' . self::IMG_BAR_PICTURE . PHP_EOL .
446 'BarPictureTransparent=yes' . PHP_EOL .
447 'BarPictureVertAlignment=bottom' . PHP_EOL .
448 'BarBorder=clNone' . PHP_EOL .
449 'BarGradientEnd=$00c07840' . PHP_EOL .
450 'BarGradientStart=$00c07840' . PHP_EOL .
451 'BarGradientStyle=horizontal' . PHP_EOL .
452 'BarSide=left' . PHP_EOL .
453 'BarSpace=0' . PHP_EOL .
454 'BarWidth=32' . PHP_EOL .
455 'SeparatorsAlignment=center' . PHP_EOL .
456 'SeparatorsFade=yes' . PHP_EOL .
457 'SeparatorsFadeColor=clBtnShadow' . PHP_EOL .
458 'SeparatorsFlatLines=yes' . PHP_EOL .
459 'SeparatorsFont=Arial,8,clWhite,bold' . PHP_EOL .
460 'SeparatorsGradientEnd=$00FFAA55' . PHP_EOL .
461 'SeparatorsGradientStart=$00550000' . PHP_EOL .
462 'SeparatorsGradientStyle=horizontal' . PHP_EOL .
463 'SeparatorsSeparatorStyle=caption' . PHP_EOL;
const MENU_RESTART_SERVICE
static getActionService($service, $action, $item=false)
static getActionServiceStop($service)
const GLYPH_SERVICE_SOME_RUNNING
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 getItemConsoleZ($caption, $glyph, $id=null, $title=null, $initDir=null, $command=null)
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)