%%
%% This is file `tikz-timing-interval.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tikz-timing.dtx  (with options: `lib,lib-interval')
%% 
%% Copyright (C) 2009-2011 by Martin Scharrer <martin@scharrer-online.de>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Martin Scharrer.
%% 
%% This work consists of the files tikz-timing.dtx, tikz-timing.ins
%% and the derived file tikz-timing.sty.
%% 
\RequirePackage{svn-prov}[2009/05/03]
\ProvidesPackageSVN[tikz-timing-interval]
  {$Id: tikz-timing.dtx 2038 2011-01-09 20:44:26Z martin $}
  [v0.7d
   TikZ-Timing Library for
   alternative Z transitions]
\GetFileInfoSVN*%
\RequirePackage{tikz-timing}[\filedate]%
\DefineFileInfoSVN

\let\tikztiming@linterval\relax
\let\tikztiming@rinterval\relax

\tikztimingdef{LZ}{
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,+\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{HZ}{%
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,-\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{TZ}{%
  \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZL}{%
  \tikztiming@linterval
  {\newdraw}
  {-- ++(\zslope,-\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZH}{%
  \tikztiming@linterval
  {\newdraw}
  {-- ++(\zslope,\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZT}{%
  \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
  \tikztiming@linterval
  {\newdraw [\style]}
  {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\def\tikztiming@onetwo#1#2{#1#2}
\def\tikztiming@twoone#1#2{#2#1}

\let\tikztiming@linterval\tikztiming@onetwo
\let\tikztiming@rinterval\tikztiming@onetwo

\tikzset{timing/interval/.code={\pgfqkeys{/tikz/timing/interval}{#1}}}
\tikzset{timing/interval/.cd,
   lo/.style={/tikz/timing/interval/left open},
   lc/.style={/tikz/timing/interval/left close},
   ro/.style={/tikz/timing/interval/right open},
   rc/.style={/tikz/timing/interval/right close},
   left close/.code={\let\tikztiming@linterval\tikztiming@onetwo},
   left open/.code={\let\tikztiming@linterval\tikztiming@twoone},
   right open/.code={\let\tikztiming@rinterval\tikztiming@onetwo},
   right close/.code={\let\tikztiming@rinterval\tikztiming@twoone},
}
\tikzset{
  timing/interval/normal/.style={/tikz/timing/interval/left close,/tikz/timing/interval/right open},
  timing/interval/verilog/.style={/tikz/timing/interval/normal},
  timing/interval/metachar/.style={/tikz/timing/metachar={#1}[2]{[timing/interval={##2}]}},
}

\endinput
%%
%% End of file `tikz-timing-interval.sty'.
