Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 Neb3ã@sndZdZddlmZddlmZmZmZmZddl m Z ddl m Z Gdd„de ƒZ d d „Zed krjeƒd S) z3.3.0zThis file is a é)Úcolors)ÚRectÚDrawingÚGroupÚString)ÚLabel)ÚWidgetc@sLeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dS)Ú EventCalendarcCsjd|_d|_d|_d|_d|_d|_g|_d|_d|_d|_ d|_ g|_ d|_ d|_ d|_g|_g|_dS)Nri,é–é)ÚxÚyÚwidthÚheightÚ timeColWidthÚtrackRowHeightÚdataZ trackNamesÚ startTimeÚendTimeÚdayÚ _talksVisibleÚ _startTimeÚ_endTimeÚ _trackCountÚ _colWidthsÚ _colLeftEdges)Úself©rúD/tmp/tmp4i9tl1d3/lib64/python/reportlab/graphics/widgets/eventcal.pyÚ__init__s"zEventCalendar.__init__cCsÜ|j|jƒ|_t|jƒƒ|_|jƒ|jg|_|j dkr†|j d|j}|gd|j|_ x|t |jƒD]}|jj |jd|ƒqfWnR|j g|_ |j |j |j}x4t |jƒD]&}|j j |ƒ|jj |jd|ƒq®WdS)z4Called at start of draw. Sets various column widthsNééÿÿÿÿr!)ÚgetRelevantTalksrrÚlenÚ getAllTracksrÚcomputeStartAndEndTimesr rrrrÚrangeÚappend)rÚwÚirrrÚ computeSize*s    zEventCalendar.computeSizecCs¬|jr|j|_n>x<|jD]2\}}}}}}|jdkr:||_q||jkr||_qW|jr^|j|_nJxH|jD]>\}}}}}}|jdkrŒ|||_qf|||jkrf|||_qfWdS)z(Work out first and last times to displayN)rrrrr)rÚtitleÚspeakerÚtrackIdrÚstartÚdurationrrrr%>s       z%EventCalendar.computeStartAndEndTimescCsFg}x4|jD]*\}}}}}}|dk r ||kr |j|ƒq W|jƒ|S)N)rr'Úsort)rZtracksr+r,r-rÚhoursr/rrrr$XszEventCalendar.getAllTracksc Csvg}xl|D]d}|\}}}}}} |dks.tdƒ‚||jkr |jdksP|| |jkr |jdksd||jkr |j|ƒq W|S)zScans for tracks actually usedrz2trackId must be None or 1,2,3... zero not allowed!N)ÚAssertionErrorrrrr') rZtalkListÚusedÚtalkr+r,r-rr1r/rrrr"as  zEventCalendar.getRelevantTalkscCs8|j|j}||j|j|j}|j|||}|S)z+Return y-value corresponding to times given)rrrrr )rZtheTimeZ axisHeightZ proportionUpr rrrÚ scaleTimems zEventCalendar.scaleTimec CsÎtƒ}|j||ƒ}|j|ƒ}||}|dkrJ|jd} |j|jd} n|j|} |j|} tƒ} | j|ƒ| j| d| |d|ƒd| _| | _|| _ d| _ t | || |t j d�} |j| ƒ|j| ƒ|S)z!Return shapes for a specific talkNr rgà?Úcé)Ú fillColor)rr5rrrrZsetTextZ setOriginZ boxAnchorrZfontSizerrZcyanÚadd) rrr/r-ÚtextÚgZy_bottomZy_topZy_heightr rZlabÚrrrrÚ getTalkRectvs(       zEventCalendar.getTalkRectcCs|jƒtƒ}|jt|j|j|jd|j|jt j d�ƒ|j|jd}|j|j|j}xnt |j ƒD]`}|j|d}t||||jt j d�}t|d||d|dd�}|j|ƒ|j|ƒ||}qhWx@|jD]6}|\} } } } } }|j| || | d| ƒ}|j|ƒqÔW|S) Nr)r8r gà?zTrack %dZmiddle)ZalignÚ )r*rr9rr r rrrrZcornsilkr&rZyellowrrr=)rr;r r ZtrkZwidr<Úsr4r+r,r-rr.r/rrrÚdraw—s",    zEventCalendar.drawN) Ú__name__Ú __module__Ú __qualname__rr*r%r$r"r5r=r@rrrrr s   !r cGCsôtddƒ}tƒ}d|_d|_dŽd�d�d‘d’d“d”d•d–d—d˜d™dšd›dœd�dždŸd d¡d¢d£d¤d¥d¦d§d¨d©dªd«d¬d­d®d¯d°d±d²d³d´dµd¶d·d¸d¹dºd»d¼d½d¾d¿dÀdÁdÂdÃdÄdÅdÆdÇdÈdÉdÊdËdÌdÍdÎdÏgB|_d|_|j|ƒx8dÐD]0}|j|ƒ}td‹|dŒƒj |ƒt d�|ƒ�q¼WdS)Ñz3Make a conference event for day 1 of UP Python 2003i�éÈé2éú1Keynote: Why design another programming language?úGuido van RossumNr ç"@çð?úSiena Web Service ArchitectureúMarc-Andre Lemburgç%@çø?úExtreme Programming in Pythonú Chris WitherséúPattern Experiences in C++ú Mark Radfordéú"What is the Type of std::toupper()úGabriel Dos Reiséú6Linguistic Variables: Clear Thinking with Fuzzy Logic ú Walter Bankséú0lunch, short presentations, vendor presentationsÚç(@ç@úCORBA? Isn't that obsoleteú Duncan Grisbyç,@úPython Design Patternsú Duncan Boothú*Inside Security Checks and Safe Exceptionsú Brandon BrayúStudying at a DistanceúCPanel Discussion, Panel to include Alan Lenton & Francis GlassborowúRCoding Standards - Given the ANSI C Standard why do I still need a coding Standardú Randy MarquesúRESTful Pythonú Hamish Lawsonç0@ú(Parsing made easier - a radical old ideaú Andrew KoenigúC++ & Multimethodsú Julian Smithú C++ Threadingú Kevlin HenneyúThe Organisation Strikes BackúAlan Griffiths & Sarah LeesúBirds of a Feather meetingç€1@úKeynote: In the Spirit of Cú Greg Colvinú6The Infinite Filing Cabinet - object storage in Pythonú Jacob Hallenú>Introduction to Python and Jython for C++ and Java Programmersú Alex Martelliú#Template metaprogramming in HaskellúSimon Peyton JonesúQPlenty People Programming: C++ Programming in a Group, Workshop with a differenceú Nico Josuttisú4Design and Implementation of the Boost Graph Libraryú Jeremy Siekú5Building GUI Applications with PythonCard and PyCrustú Andy ToddúIntegrating Python, C and C++ú!Secrets and Pitfalls of Templatesú$Nicolai Josuttis & David VandevoordeúBeing a MentorúThe Embedded C Extensions to Cú Willem WakkerúLightning Talksú Paul Brianú'Scripting Java Applications with Jythonú Anthony Edenú5Metaprogramming and the Boost Metaprogramming LibraryúDavid Abrahamsú6A Common Vendor ABI for C++ -- GCC's why, what and notú!Nathan Sidwell & Gabriel Dos ReisúThe Timing and Cost of ChoicesúHubert Matthewsú.Keynote: The Cost of C & C++ Compatibilityú Andy Koenigú4Prying Eyes: Generic Observer Implementations in C++úAndrei Alexandrescuú.The Roadmap to Generative Programming With C++úUlrich Eiseneckerú=Design Patterns in C++ and C# for the Common Language Runtimeú@Extreme Hour (XH): (workshop) - Jutta Eckstein and Nico Josuttisú Jutta Ecsteinú.The Lambda Library : Unnamed Functions for C++ú Jaako JarviúReflective MetaprogrammingúDaveed Vandevoordeú7Advanced Template Issues and Solutions (double session)ú Herb Sutterú/Concurrent Programming in Java (double session)úAngelika Langerú)What can MISRA-C (2nd Edition) do for us?ú Chris Hillsú(C++ Metaprogramming Concepts and ResultsúWalter E Brownú3Binding C++ to Python with the Boost Python LibraryúHUsing Aspect Oriented Programming for Enterprise Application IntegrationúArno Schmidmeierú Defective C++ú Marc Paternoú.Speakers' Banquet & Birds of a Feather meetingú=Keynote: The Internet, Software and Computers - A Report Cardú Alan LentonúEMulti-Platform Software Development; Lessons from the Boost librariesú Beman DawesúThe Stability of the C++ ABIú Steve ClamageúJGeneric Build Support - A Pragmatic Approach to the Software Build Processú0How to Handle Project Managers: a survival guideú Barb Byroúlunch, ACCU AGMúESauce: An OO recursive descent parser; its design and implementation.ú Jon JaggerúKGNIRTS ESAC REWOL - Bringing the UNIX filters to the C++ iostream library.ú JC van Winkelú Pattern Writing: Live and DirectúFrank Buschmann & Kevlin Henneyç@ú5The Future of Programming Languages - A Goldfish BowlúFrancis Glassborow and friendsúSHoney, I Shrunk the Threads: Compile-time checked multithreaded transactions in C++ú#Fun and Functionality with FunctorsúLois Goldthwaiteú Agile Enough?úAlan Griffithsú+Conference Closure: A brief plenary sessionçà?Úpdfz eventcal.%sÚwbzsaved eventcal.%s)rGrHNr rIrJ)rKrLr r rMrN)rOrPrQr rMrN)rRrSrTr rMrN)rUrVrWr rMrN)rXrYrZr rMrN)r[r\Nr r]r^)r_r`r r rarN)rbrcrQr rarN)rdrerTr rarN)rfrgrWr rarN)rhrirZr rarN)rjrkr r rlrN)rmrnrQr rlrN)rorprTr rlrN)rqrrrWr rlrN)rsrtrZr rlrN)rur\Nr rvr^)rwrxNrQrIrJ)ryrzr rQrMrN)r{r|rQrQrMrN)r}r~rTrQrMrN)rr€rWrQrMrN)r�r‚rZrQrMrN)r[r\NrQr]r^)rƒr„r rQrarN)r…rcrQrQrarN)r†r‡rTrQrarN)rˆrgrWrQrarN)r‰rŠrZrQrarN)r‹rŒr rQrlrN)r�rŽrQrQrlrN)r�r�rTrQrlrN)r‘r’rWrQrlrN)r“r”rZrQrlrN)rur\NrQrvr^)r•r–NrTrIrJ)r—r˜r rQrMrN)r™ršrQrQrMrN)r›rerTrQrMrN)rœr�rWrQrMrN)ržrŸrZrQrMrN)r[r\NrTr]r^)r r¡r rTrarN)r¢r£rQrTrarT)r¤r¥rTrTrarT)r¦r§rWrTrarN)r¨r©rZrTrarN)rªr�r rTrlrN)r«r¬rWrTrlrN)r­r®rZrTrlrN)r¯r\NrTrvr^)r°r±NrWrIrJ)r²r³r rZrMrN)r´rµrQrZrMrN)r¶rirTrZrMrN)r·r¸rWrZrMrN)r¹r\NrZr]r^)rºr»r rZrarN)r¼r½rQrZrarN)r¾r¿rTrZrarÀ)rÁrÂrTrZrarN)rÃr˜r rZrlrN)rÄrÅrQrZrlrN)rÆrÇrWrZrlrN)rÈr\NrZrvrÉ)rÊ) rr r r rrr9ÚasStringÚopenÚwriteÚprint)ÚdÚcalÚformatÚoutrrrÚtest´s˜    rÔÚ__main__N)Ú __version__Ú__doc__Z reportlab.librZreportlab.graphics.shapesrrrrZ$reportlab.graphics.charts.textlabelsrZreportlab.graphics.widgetbaserr rÔrArrrrÚs   %v