U
    ¤Yˆhb  ã                   @   s   d Z dd„ Zdd„ ZdS )ua  
/***************************************************************************
    QGIS Server Plugin Filters: Add a new request to print a specific atlas
    feature
    ---------------------
    Date                 : October 2017
    Copyright            : (C) 2017 by MichaÃ«l Douchin - 3Liz
    Email                : mdouchin at 3liz 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 script initializes the plugin, making it known to QGIS and QGIS Server.
c                    s&   ddl m‰  G ‡ fdd„dƒ}|| ƒS )Né    ©ÚQMessageBoxc                       s(   e Zd Zdd„ Z‡ fdd„Zdd„ ZdS )zclassFactory.<locals>.Nothingc                 S   s
   || _ d S ©N)Úiface)Úselfr   © r   ú5/var/www/lizmap/lizmap/plugins/atlasprint/__init__.pyÚ__init__   s    z&classFactory.<locals>.Nothing.__init__c                    s   ˆ   | j ¡ dd¡ d S )NzAtlasPrint pluginzGAtlasPrint is plugin for QGIS Server. There is nothing in QGIS Desktop.)Zwarningr   Z
mainWindow©r   r   r   r   ÚinitGui   s
    ýz%classFactory.<locals>.Nothing.initGuic                 S   s   d S r   r   r
   r   r   r   Úunload&   s    z$classFactory.<locals>.Nothing.unloadN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   ÚNothing   s   r   )Úqgis.PyQt.QtWidgetsr   )r   r   r   r   r   ÚclassFactory   s    r   c                 C   s   ddl m} || ƒS )z—Load atlasprint class from file atlasprint.

    :param server_iface: A QGIS Server interface instance.
    :type server_iface: QgsServerInterface
    é   )ÚAtlasPrintServer)Úserverr   )Zserver_ifacer   r   r   r   ÚserverClassFactory,   s    r   N)Ú__doc__r   r   r   r   r   r   Ú<module>   s   