//-------------------------------------------------------------------------------------------------
//
//  Enumerations for WebImageViewer client scripts. 
//  Copyright 2003-2007 Atalasoft Inc. All Rights Reserved.
//  Version 5.0
//
//	This is a helper script intended only to mimic the Enumerations of the
//	server side controls in the Atalasoft.DotImage.WebControls namespace.
//-------------------------------------------------------------------------------------------------

var atalaEnumsLoaded = true;
var atalaEnumsVersion = "5.0";

var MouseToolType = new atalaMouseToolType();
var ScrollBarVisibility = new atalaScrollBarVisibility();
var AutoZoomMode = new atalaAutoZoomMode();
var AntialiasDisplayMode = new atalaAntialiasDisplayMode();
var AnnotationInteractMode = new atalaAnnotationInteractMode();

// Specifies the automatic zoom setting of the image displayed in the control.
function atalaAutoZoomMode(){
	/// Does not change the zoom of the image based on image size.
	this.None = 0;
	/// Fits the image by sizing the width or height to best fit the control.
	this.BestFit = 1;
	/// Fits the image by sizing the width or height to best fit the control.
	this.BestFitShrinkOnly = 2;
	/// Fits the image by sizing the width to fit the control.
	this.FitToWidth = 3;
	/// Fits the image by sizing the height to fit the control.
	this.FitToHeight = 4;
	/// Fits the image by sizing the control to the size of the image.
	this.FitToImage = 5;
}

// Specifies the antialis display mode that can be set to the control.
function atalaAntialiasDisplayMode(){
	/// Do not antialias (fastest performance)
	this.None = 0;
	/// Only antialias 1-bit document images for zoom levels less then 1.
	this.ScaleToGray = 1;
	/// Antialias all pixel formats when zoom level is less then 1.
	this.ReductionOnly = 2;
	/// Antialias all images for all zoom levels.
	this.Full = 3;
}

// Specifies the behavior of the mouse
function atalaMouseToolType(){
	// Specify no special mouse behavior.
	this.None = 0;
	// Clicking the mouse will center the area clicked.
	this.Center = 1;
	// Mouse will be set to crosshairs and can be used to drag and modify a selection rectangle on the image.
	this.Selection = 2;
	// Clicking will zoom in.
	this.ZoomIn = 3;
	// Clicking will zoom out.
	this.ZoomOut = 4;
	// Zoom in on a specified area defined by dragging a rectangle onto the image.
	this.ZoomArea = 5;
	// Clicking and dragging the mouse will scroll the image.
	this.Pan = 6;
	// Clicking on the image will postback the page, used for custom MouseTools.
	this.PassThrough = 7;
}

// Specifies the scrollbar visibility
function atalaScrollBarVisibility(){
	// Automatically show or hide the horizontal and vertical scrollbars as the control or image resizes.
	this.Dynamic = 0;
	// Never show scroll bars.
	this.None = 1;
	// Always show scroll bars.
	this.Always = 2;
}

// Specifies the annotation viewer interaction mode (with the mouse)
function atalaAnnotationInteractMode() {
	// Do not allow interaction with an annotation -- pass through to viewer
	this.None = 0;
	// Annotations can be selected, moved and resized using the mouse.
	this.Modify = 2;
	// Annotations can be created, selected, moved and resized using the mouse.
	this.Author = 3;
}
