transform.h

/* Affine transforms.
*/

/*

Copyright (C) 1991-2003 The National Gallery

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA

*/

/*

These files are distributed with VIPS – http://www.vips.ecs.soton.ac.uk

*/

#ifndef VIPS_TRANSFORM_H
#define VIPS_TRANSFORM_H

#ifdef __cplusplus
extern “C” {
#endif /__cplusplus/

/* Params for an affine transformation.
/
typedef struct {
/
Area of input we can use. This can be smaller than the real input
* image: we expand the input to add extra pixels for interpolation.
*/
VipsRect iarea;

/* The area of the output we’ve been asked to generate. left/top can
* be negative.
*/
VipsRect oarea;

/* The transform.
*/
double a, b, c, d;
double idx, idy;
double odx, ody;

double ia, ib, ic, id; /* Inverse of matrix abcd */
} VipsTransformation;

void vips__transform_init( VipsTransformation *trn );
int vips__transform_calc_inverse( VipsTransformation *trn );
int vips__transform_isidentity( const VipsTransformation *trn );
int vips__transform_add( const VipsTransformation *in1,
const VipsTransformation *in2,
VipsTransformation *out );
void vips__transform_print( const VipsTransformation *trn );

void vips__transform_forward_point( const VipsTransformation *trn,
const double x, const double y, double *ox, double *oy );
void vips__transform_invert_point( const VipsTransformation *trn,
const double x, const double y, double *ox, double *oy );
void vips__transform_forward_rect( const VipsTransformation *trn,
const VipsRect *in, VipsRect *out );
void vips__transform_invert_rect( const VipsTransformation *trn,
const VipsRect *in, VipsRect *out );

void vips__transform_set_area( VipsTransformation * );

int vips__affine( VipsImage *in, VipsImage *out, VipsTransformation *trn );

#ifdef __cplusplus
}
#endif /__cplusplus/

#endif /VIPS_TRANSFORM_H/

reversion-history-20160413

/**
* Attempt to re-color SVG icons used in the admin menu or the toolbar
*
*/

window.wp = window.wp || {};

wp.svgPainter = ( function( $, window, document, undefined ) {
‘use strict’;
var selector, base64, painter,
colorscheme = {},
elements = [];

$(document).ready( function() {
// detection for browser SVG capability
if ( document.implementation.hasFeature( ‘http://www.w3.org/TR/SVG11/feature#Image’, ‘1.1’ ) ) {
$( document.body ).removeClass( ‘no-svg’ ).addClass( ‘svg’ );
wp.svgPainter.init();
}
});

/**
* Needed only for IE9
*
* Based on jquery.base64.js 0.0.3
*
*
* Copyright (c) 2012 Micheal Jones (http://plainwareblog.com)
* Licensed under the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/
base64 = ( function() {
var c,
b64 = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/’,
a256 = ”,
r64 = [256],
r256 = [256],
i = 0;

function init() {
while( i < 256 ) {
c = String.fromCharCode(i);
a256 += c;
r256[i] = i;
r64[i] = b64.indexOf(c);
++i;
}
}

    function code( s, discard, alpha, beta, w1, w2 ) {
        var tmp, length,
            buffer = 0,
            i = 0,
            result = '',
            bitsInBuffer = 0;

        s = String(s);
        length = s.length;

        while( i &lt; length ) {
            c = s.charCodeAt(i);
            c = c &lt; 256 ? alpha[c] : -1;

            buffer = ( buffer &lt;&lt; w1 ) + c;
            bitsInBuffer += w1;

            while( bitsInBuffer &gt;= w2 ) {

bitsInBuffer -= w2;
tmp = buffer >> bitsInBuffer;
result += beta.charAt(tmp);
buffer ^= tmp << bitsInBuffer;
}
++i;
}

        if ( ! discard &amp;&amp; bitsInBuffer &gt; 0 ) {

result += beta.charAt( buffer << ( w2 – bitsInBuffer ) );
}

        return result;
    }

    function btoa( plain ) {
        if ( ! c ) {
            init();
        }

        plain = code( plain, false, r256, b64, 8, 6 );
        return plain + '===='.slice( ( plain.length % 4 ) || 4 );
    }

    function atob( coded ) {
        var i;

        if ( ! c ) {
            init();
        }

        coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' );
        coded = String(coded).split('=');
        i = coded.length;

        do {
            --i;
            coded[i] = code( coded[i], true, r64, a256, 6, 8 );
        } while ( i &gt; 0 );

coded = coded.join(”);
return coded;
}

return {
atob: atob,
btoa: btoa
};
})();

return {
init: function() {
painter = this;
selector = $( ‘#adminmenu .wp-menu-image, #wpadminbar .ab-item’ );

this.setColors();
this.findElements();
this.paint();
},

setColors: function( colors ) {
if ( typeof colors === ‘undefined’ && typeof window._wpColorScheme !== ‘undefined’ ) {
colors = window._wpColorScheme;
}

if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) {
colorscheme = colors.icons;
}
},

findElements: function() {
selector.each( function() {
var $this = $(this), bgImage = $this.css( ‘background-image’ );

if ( bgImage && bgImage.indexOf( ‘data:image/svg+xml;base64’ ) != -1 ) {
elements.push( $this );
}
});
},

paint: function() {
// loop through all elements
$.each( elements, function( index, $element ) {
var $menuitem = $element.parent().parent();

if ( $menuitem.hasClass( ‘current’ ) || $menuitem.hasClass( ‘wp-has-current-submenu’ ) ) {
// paint icon in ‘current’ color
painter.paintElement( $element, ‘current’ );
} else {
// paint icon in base color
painter.paintElement( $element, ‘base’ );

// set hover callbacks
$menuitem.hover(
function() {
painter.paintElement( $element, ‘focus’ );
},
function() {
// Match the delay from hoverIntent
window.setTimeout( function() {
painter.paintElement( $element, ‘base’ );
}, 100 );
}
);
}
});
},

paintElement: function( $element, colorType ) {
var xml, encoded, color;

if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
return;
}

color = colorscheme[ colorType ];

// only accept hex colors: #101 or #101010
if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
return;
}

xml = $element.data( ‘wp-ui-svg-‘ + color );

if ( xml === ‘none’ ) {
return;
}

if ( ! xml ) {
encoded = $element.css( ‘background-image’ ).match( /.+data:image\/svg+xml;base64,([A-Za-z0-9+\/\=]+)/ );

if ( ! encoded || ! encoded[1] ) {
$element.data( ‘wp-ui-svg-‘ + color, ‘none’ );
return;
}

try {
if ( ‘atob’ in window ) {
xml = window.atob( encoded[1] );
} else {
xml = base64.atob( encoded[1] );
}
} catch ( error ) {}

if ( xml ) {
// replace fill attributes
xml = xml.replace( /fill=”(.+?)”/g, ‘fill=”‘ + color + ‘”‘);

// replace style attributes
xml = xml.replace( /style=”(.+?)”/g, ‘style=”fill:’ + color + ‘”‘);

// replace fill properties in `

jquery.blockui.min[1].js

/*!
* jQuery blockUI plugin
* Version 2.70.0-2014.11.23
* Requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 * Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks for some excellent contributions!
*/
!function(){“use strict”;function e(e){function t(t,n){var s,h,k=t==window,y=n&&void 0!==n.message?n.message:void 0;if(n=e.extend({},e.blockUI.defaults,n||{}),!n.ignoreIfBlocked||!e(t).data(“blockUI.isBlocked”)){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor=”pointer”),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=void 0===y?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&”string”!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,v={};e(t).data(“blockUI.history”,v),v.el=m,v.parent=m.parentNode,v.display=m.style.display,v.position=m.style.position,v.parent&&v.parent.removeChild(m)}e(t).data(“blockUI.onUnblock”,n.onUnblock);var g,I,w,U,x=n.baseZ;g=e(r||n.forceIframe?’

‘:’

‘),I=e(n.theme?’

‘:’

‘),n.theme&&k?(U=’

“):n.theme?(U=’

“):U=k?’

‘:’

‘,w=e(U),y&&(n.theme?(w.css(h),w.addClass(“ui-widget-content”)):w.css(s)),n.theme||I.css(n.overlayCSS),I.css(“position”,k?”fixed”:”absolute”),(r||n.forceIframe)&&g.css(“opacity”,0);var C=[g,I,w],S=e(k?”body”:t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:”.ui-dialog-titlebar”,cancel:”li”});var O=f&&(!e.support.boxModel||e(“object,embed”,k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e(“html,body”).css(“height”,”100%”),(u||!e.support.boxModel)&&!k)var E=d(t,”borderTopWidth”),T=d(t,”borderLeftWidth”),M=E?”(0 – “+E+”)”:0,B=T?”(0 – “+T+”)”:0;e.each(C,function(e,t){var o=t[0].style;if(o.position=”absolute”,2>e)k?o.setExpression(“height”,”Math.max(document.body.scrollHeight, document.body.offsetHeight) – (jQuery.support.boxModel?0:”+n.quirksmodeOffsetHack+’) + “px”‘):o.setExpression(“height”,’this.parentNode.offsetHeight + “px”‘),k?o.setExpression(“width”,’jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + “px”‘):o.setExpression(“width”,’this.parentNode.offsetWidth + “px”‘),B&&o.setExpression(“left”,B),M&&o.setExpression(“top”,M);else if(n.centerY)k&&o.setExpression(“top”,'(document.documentElement.clientHeight || document.body.clientHeight) / 2 – (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + “px”‘),o.marginTop=0;else if(!n.centerY&&k){var i=n.css&&n.css.top?parseInt(n.css.top,10):0,s=”((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + “+i+’) + “px”‘;o.setExpression(“top”,s)}})}if(y&&(n.theme?w.find(“.ui-widget-content”).append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&g.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):a(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data(“blockUI.timeout”,W)}}}function o(t,o){var s,l=t==window,a=e(t),d=a.data(“blockUI.history”),c=a.data(“blockUI.timeout”);c&&(clearTimeout(c),a.removeData(“blockUI.timeout”)),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data(“blockUI.onUnblock”),a.removeData(“blockUI.onUnblock”));var r;r=l?e(“body”).children().filter(“.blockUI”).add(“body > .blockUI”):a.find(“>.blockUI”),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0===–s&&n(r,d,o,t)})):n(r,d,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data(“blockUI.isBlocked”)){t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor=”default”,o.parent&&o.parent.appendChild(o.el),s.removeData(“blockUI.history”)),s.data(“blockUI.static”)&&s.css(“position”,”static”),”function”==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),a=l.width(),d=l[0].style.width;l.width(a-1).width(a),l[0].style.width=d}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data(“blockUI.isBlocked”)))&&(l.data(“blockUI.isBlocked”,t),i&&n.bindEvents&&(!t||n.showOverlay))){var a=”mousedown mouseup keydown keypress keyup touchstart touchend touchmove”;t?e(document).bind(a,n,s):e(document).unbind(a,s)}}function s(t){if(“keydown”===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,a=e(t.target);return a.hasClass(“blockOverlay”)&&s.onOverlayClick&&s.onOverlayClick(t),a.parents(“div.”+s.blockMsgClass).length>0?!0:0===a.parents().children().filter(“div.blockUI”).length}function l(e){if(b){var t=b[e===!0?b.length-1:0];t&&t.focus()}}function a(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-d(n,”borderLeftWidth”),l=(n.offsetHeight-e.offsetHeight)/2-d(n,”borderTopWidth”);t&&(i.left=s>0?s+”px”:”0″),o&&(i.top=l>0?l+”px”:”0″)}function d(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode||0,e.isFunction(document.createElement(“div”).style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e(‘

‘);t&&s.append(”

“+t+”

“),o&&s.append(”

“+o+”

“),void 0===n&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:”undefined”!=typeof t.fadeIn?t.fadeIn:700,fadeOut:”undefined”!=typeof t.fadeOut?t.fadeOut:1e3,timeout:”undefined”!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css(“opacity”);s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(“.blockMsg”);t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(“.blockMsg”).fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data(“blockUI.isBlocked”)||t.unblock({fadeOut:0})}),this.each(function(){“static”==e.css(this,”position”)&&(this.style.position=”relative”,e(this).data(“blockUI.static”,!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:”

Please wait…

“,title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:”30%”,top:”40%”,left:”35%”,textAlign:”center”,color:”#000″,border:”3px solid #aaa”,backgroundColor:”#fff”,cursor:”wait”},themedCSS:{width:”30%”,top:”40%”,left:”35%”},overlayCSS:{backgroundColor:”#000″,opacity:.6,cursor:”wait”},cursorReset:”default”,growlCSS:{width:”350px”,top:”10px”,left:””,right:”10px”,border:”none”,padding:”5px”,opacity:.6,cursor:”default”,color:”#fff”,backgroundColor:”#000″,”-webkit-border-radius”:”10px”,”-moz-border-radius”:”10px”,”border-radius”:”10px”},iframeSrc:/^https/i.test(window.location.href||””)?”javascript:false”:”about:blank”,forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:”:input:enabled:visible”,onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:”blockMsg”,ignoreIfBlocked:!1};var p=null,b=[]}”function”==typeof define&&define.amd&&define.amd.jQuery?define([“jquery”],e):e(jQuery)}();

Scripts

Type.registerNamespace(“aw”);_aw.$CN=function(n,t,i){_aw.$CN.initializeBase(this);this.$81=n;this.$1dy=t;this.$131=i};function $6HK(n,t){n.set$R4(t)}aw.$CN.prototype={$1dy:!1,$131:!1,$81:null,$mZ:null,$1O7:null,get$58O:function(){if(this.$1dy){if(!this.$mZ){a.$5.$1U(_aw.$CN.$D,”GetWacIFrameUrl”);this.$mZ=”about:blank”;var n=new _aw.$11f(this.$81);var t=this;n.add$2j(function(i){if(js.$8.$c(n.$3Du))$6HK(t,_u.Strings.l_WacIFrameUrlGenerationFailed_Text);else{_js.Trace.logInfo(_a.$0.$1e,”WAC iframe URL: {0}”,n.$3Du);t.$mZ=n.$3Du;$6(t,”IframeUrl”)}});OwaApplication.$1R.$x(n)}return this.$mZ}if(this.$131){this.$mZ||(this.$mZ=String.format(_g.$5r.get$678(),encodeURIComponent(this.$81)));return this.$mZ}return””},get_$R4:function(){return this.$1O7},set_$R4:function(n){if(this.$1O7!==n){this.$1O7=n;$6(this,”Error”)}return n}};aw.$fw=function(){};_aw.$fw.prototype={$I:function(n,t,i){return new _aw.$CN(n,t,i)}};function DocumentAttachmentViewModelsComponent(){}DocumentAttachmentViewModelsComponent.prototype={$1Qp:function(n,t,i){var r=this;n.$9h(_aw.$fw).$9NY(IDocumentAttachmentViewModelFactory).$9Na(function(){return new _aw.$fw})},$7M9:function(){return[]}};_aw.$11f=function(n){_aw.$11f.initializeBase(this);this.$81=n};_aw.$11f.prototype={$81:null,$3Du:null,$7ai:function(n){var t=new _g.$11g(this.$26);n.$3cp(this.$81,t,this.$$d$9P1,this.$$d_$9P2)},$8s9:function(n,t,i){this.$3Du=n;t();a.$5.$1C(null,”GetWacIFrameUrl”)}};_aw.$kq=function(n){_aw.$kq.initializeBase(this,[n]);this.set$7(“DocumentAttachmentView”)};aw.$kq.prototype={$3Z:null,$4M:function(){_js.$6.prototype.$4M.call(this);if(!$9(this.$e)){this.$3Z=this.$e.$11(“LegacyOfficeDocumentBody”);this.$3Z.get$J()[0].id=”LegacyOfficeDocumentBody”}}};aw._TI=function(){};_aw._TI.$$cctor=function(){new _A(“DocumentAttachmentView”,function(){var t=_aw._TI._hf.childNodes[0].cloneNode(!0);var n=new _b.$Hf(t.children[0]);n.$0(_E.$1([“IframeUrl”],[_aw._TI.$7pr],null,”Source”,null,_aw._TI.$CJ,1));n.set$3(“_aw_2”);return new _B(t,[n]).R({LegacyOfficeDocumentBody:n})},_aw.$CN,_aw.$kq,!1,!1,!1,0)};_aw._TI.$Bc=function(){var n=window.document.createElement(“DIV”);n.innerHTML=”

“;js.$F.get$B6().appendChild(n);return n};aw._TI.$7pr=function(n){return n.get$58O()};aw._TI.$CJ=function(n,t){n.set$ES(t)};_aw.$CN.registerClass(“_aw.$CN”,_a.$EW,IDocumentAttachmentViewModel);_aw.$fw.registerClass(“_aw.$fw”,null,IDocumentAttachmentViewModelFactory);DocumentAttachmentViewModelsComponent.registerClass(“DocumentAttachmentViewModelsComponent”,null,_a.$1Cm);_aw.$11f.registerClass(“_aw.$11f”,_h.$J4.$$(String));_aw.$kq.registerClass(“_aw.$kq”,_js.$6);_aw._TI.registerClass(“_aw._TI”);_aw.$CN.$D=_a.$0.$1e;_aw._TI._hf=_aw._TI.$Bc();_aw._TI.$$cctor()

Tech Mortal

As young generation is flexible using the mouse pointer and old generation feels uncomforted while using them, there is a need of introduction of human computer interface that may provide a smooth platform for them.

Human Computer Interaction is the way where we can solve these issues. Human Computer Interaction is the relationship between human and user. It provides interfaces between user and human. It is used in many areas like as, behavioral sciences, computer science, and design. Some of models were derived from need and it handles some collaboration to achieve goal.

Collaboration means a process of two modules work together to achieve some specific goal.

Using this human interface would come into following advantages-
1) It can be used by novice user to skilled domain worker.(Old person would easily accept this)
2) It has some advanced knowledge such as
• Knowledge about problem
• Knowledge about communication
• Knowledge about modules