HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/webslicer_create_group.pyo
�
��Yc@sXdZddlTddlZdefd��YZedkrTe�Zej�ndS(s�
Copyright (C) 2010 Aurelio A. Heckert, aurium (a) gmail dot com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU 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 General Public License for more details.

You should have received a copy of the GNU 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.
i����(t*NtWebSlicer_CreateGroupcBs,eZd�Zd�Zd�Zd�ZRS(c
Cstj|�|jjddddddddd	�|jjd
dddddddd	�|jjddddddd
dd	�|jjddddddddd	�|jjddddddddd	�|jjddddddddd�dS(Ns	--html-idtactiontstorettypetstringtdestthtml_idthelpts--html-classt
html_classs
--width-unitytwidth_unitys--height-unitytheight_unitys
--bg-colortbg_colors--tabttabs'The selected UI-tab when OK was pressed(tWebSlicer_Effectt__init__tOptionParsert
add_option(tself((s8/usr/share/inkscape/extensions/webslicer_create_group.pyRs2
cCsW|j�|_t|j�r>tjtd��td�n|j|j�|_dS(NsKYou must create and select some "Slicer rectangles" before trying to group.i(	tget_slicer_layertlayertis_emptytinkexterrormsgt_texittget_descendants_in_arraytlayer_descendants(R((s8/usr/share/inkscape/extensions/webslicer_create_group.pytget_base_elements4s

cCs7|j�}x$|D]}|j|j|��qW|S(N(tgetchildrentextendR(Rteltdescendantste((s8/usr/share/inkscape/extensions/webslicer_create_group.pyR<s
cCs |j�t|j�dkr?tjtd��td�nxP|jj�D]?\}}||jkrOtjtd�|�td�qOqOW|j	|�}tj
j|d�}tj
j|d�}|jdd	d
ddg�|_
x-|jj�D]\}}|jd|�q�WdS(
NisEYou must to select some "Slicer rectangles" or other "Layout groups".is7Oops... The element "%s" is not in the Web Slicer layeritgtdescRR
RRR
(RtlentselectedRRRRt	iteritemsRt
getParentNodetetreet
SubElementtget_conf_text_from_listttexttinsert(Rtidtnodetg_parenttgroupR$((s8/usr/share/inkscape/extensions/webslicer_create_group.pyteffectCs"

(t__name__t
__module__RRRR2(((s8/usr/share/inkscape/extensions/webslicer_create_group.pyRs			t__main__(t__doc__twebslicer_effectRRRR3R"taffect(((s8/usr/share/inkscape/extensions/webslicer_create_group.pyt<module>s
A