blob: cb03cab2e5c8aa56efb23ab07ed57600bb31bd5b [file] [log] [blame]
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/"); require_once($_SERVER['DOCUMENT_ROOT'] . "/"); require_once($_SERVER['DOCUMENT_ROOT'] . "/"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
# picture.php
# Author: Angelo Zerr
# Date: 2012-05-22
# Description: Describes the Picture control.
# Begin: page-specific settings. Change these.
$pageTitle = "Nebula Picture Control";
$pageKeywords = "Nebula, SWT, Widgets, Controls";
$pageAuthor = "Angelo Zerr";
# Add page-specific Nav bars here
# Format is Link text, link URL (can be, target (_self, _blank), level (1, 2 or 3)
# $Nav->addNavSeparator("My Page Links", "downloads.php");
# $Nav->addCustomNav("My Link", "mypage.php", "_self", 3);
# $Nav->addCustomNav("Google", "", "_blank", 3);
# End: page-specific settings
# Paste your HTML content between the EOHTML markers!
$html = <<<EOHTML
<div id="midcolumn">
<h2>Picture Control</h2>
The Picture control is a control that allows you to display an image, remove and modify it.
This control is useful to manage photo, logo, gravatar, etc in a SWT, RCP and RAP Application.
<img src='images/picture.png'>
<li>Modify image: the Modify link is used to upload a new image.</li>
<li>Delete image: the Delete link is used to delete the image.</li>
<li>Default image: set a default image.</li>
<li>RCP/RAP: can be used in a SWT standalone application, RCP and RAP Application both.</li>
<li>SWT/FormToolkit: supports SWT (use org.eclipse.nebula.widgets.picture.PictureControl)
and FormToolkit (use org.eclipse.nebula.widgets.picture.FormPictureControl).</li>
<li>JFace Databinding: stores the image as byte array and fires events to tell that image has changed.
You can bind with JFace Databinding the image byte array with a Model object</li>
<li>Internationalization: use Locale to set links label with well language</li>
For more explanation, documentation, etc, please read <a href=''>Eclipse Nebula Picture Control</a> article.
<hr class="clearer"/>
# Generate the web page
$App->generatePage ( $theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html );